Common Issues
Authentication Problems
401 Unauthorized Error
401 Unauthorized Error
API Key Not Found
API Key Not Found
Problem: Environment variable not being loaded.Solutions:
-
Check environment variable:
-
Load environment variables:
-
Python environment:
Configuration Issues
Wrong Base URL
Wrong Base URL
Problem: Using incorrect base URL causing connection failures.Correct base URL:Common mistakes:
Model Parameter Issues
Model Parameter Issues
Problem: Nordlys model not working or model errors.Solutions:
-
Use default model ID for Nordlys model:
-
TypeScript type issues:
SSL/TLS Certificate Errors
SSL/TLS Certificate Errors
Problem: Certificate validation errors in some environments.Solutions:
-
Update certificates:
-
Node.js certificate issues:
-
Python certificate issues:
Request/Response Issues
Empty or No Response
Empty or No Response
Problem: Getting empty responses or no content.Diagnostic steps:
-
Check request format:
-
Verify response handling:
-
Check for API errors:
Streaming Not Working
Streaming Not Working
Problem: Streaming responses not appearing or failing.Solutions:
-
Check streaming syntax:
-
Browser streaming with fetch:
-
Server-sent events setup:
Rate Limiting Errors
Rate Limiting Errors
Problem: Getting 429 errors (rate limit exceeded).Solutions:
-
Implement exponential backoff:
-
Check your rate limits:
- Free tier: 100 requests/minute, 10,000 tokens/minute
- Pro tier: 1,000 requests/minute, 100,000 tokens/minute
- Enterprise: Custom limits
-
Implement request queuing:
Integration-Specific Issues
LangChain Integration Problems
LangChain Integration Problems
Problem: LangChain not working with Nordlys.Solutions:
-
Correct LangChain setup:
-
Handle LangChain-specific errors:
Vercel AI SDK Issues
Vercel AI SDK Issues
Problem: Vercel AI SDK not connecting properly.Solutions:
-
Using the OpenAI-compatible client:
-
TypeScript issues:
-
Environment variables in Next.js:
Nordlys Error Scenarios
Model Registry Errors (404)
Scenario: Model Not Found
Scenario: Model Not Found
Symptom:Common causes:
- Typo in model name
- Model not available in your region
- Model temporarily disabled
- Check for typos in your model ID
- Use the default model:
- Contact support if the model remains unavailable
Upstream Service Errors
Scenario: Upstream Service Errors
Scenario: Upstream Service Errors
Symptom:Solutions:
- Retry with exponential backoff
- Check rate limits in your dashboard
- Reduce request frequency or batch size
Error Investigation Checklist
When encountering errors:-
Capture Context
- Copy full error response
- Note the request_id
- Record timestamp
- Save request payload (redacted)
-
Check Error Details
- Error type and HTTP code
- Upstream error details (if present)
- Duration metrics
- Any retry-after headers
-
Verify Configuration
- API key is valid
- Base URL is correct
- Model identifier is valid
- Request payload structure
- Review Documentation
-
Contact Support (if needed)
- Include request_id
- Provide error reproduction steps
- Share redacted request/response
Performance Issues
Slow Response Times
Slow Response Times
Problem: Responses taking longer than expected.Diagnostic steps:
- Reduce prompt size: Keep prompts concise and trim long chat histories.
- Batch smaller requests: Split large documents into smaller chunks.
-
Check local network latency:
Test connectivity to
api.nordlyslabs.com.
High Latency
High Latency
Problem: Network latency issues.Solutions:
-
Check your network:
-
Implement timeout handling:
-
Use connection pooling:
Development Environment Issues
CORS Issues in Browser
CORS Issues in Browser
Problem: Cross-origin resource sharing errors.Solutions:
-
Never call API directly from browser:
-
Set up proxy in development:
-
Configure CORS for your backend:
TypeScript Compilation Errors
TypeScript Compilation Errors
Problem: TypeScript errors with Nordlys integration.Solutions:
-
Install correct types:
-
Type assertion for model parameter:
-
Create custom types if needed:
Module Import Errors
Module Import Errors
Problem: ES modules vs CommonJS issues.Solutions:
-
Use correct imports:
-
Package.json configuration:
-
Node.js version compatibility:
Getting Help
Debug Information to Collect
When reporting issues, please include:Support Channels
Documentation
Check our comprehensive guides and API reference for solutions
GitHub Issues
Report bugs and request features on our GitHub repository
Discord Community
Get help from the community and Nordlys team members
Email Support
Contact [email protected] for priority assistance
Best Practices for Debugging
Complete Error Handling Example
Here’s a production-ready error handling implementation:FAQ
How do I choose a Nordlys model?
How do I choose a Nordlys model?
Use the model ID in your request:
How do I see model metadata?
How do I see model metadata?
Check the
model field in the response:



