cloudflare / cloudflare/ai

AI Gateway: Authentication Error - No Auth Credentials Found in Universal Endpoint

Open
#193 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
345
Avg merge
13h 31m
Merged PRs (30d)
1

Description

### Description
The universal endpoint in the AI Gateway is returning a "No auth credentials found" error when requests are made with proper authentication.

### Steps to Reproduce
1. Make a request to the AI Gateway's universal endpoint
2. Omit or provide valid authentication credentials
3. Observe the 401 Unauthorized response with "No auth credentials found" message

### Expected Behavior
- The endpoint should either:
- Accept properly authenticated requests
- Return a more descriptive error message about missing authentication

### Actual Behavior
- Request fails with: `"message": "No auth credentials found"`

![Image](https://github.com/user-attachments/assets/a5040f4c-5be3-4f99-b01e-ac4d6a56cbf0)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.