Skip to content

Random Invalid URL completion error on agents SDK #816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
maininformer opened this issue Jun 5, 2025 · 3 comments
Open

Random Invalid URL completion error on agents SDK #816

maininformer opened this issue Jun 5, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@maininformer
Copy link

maininformer commented Jun 5, 2025

I don't know how to reproduce this yet, I will update the thread as soon as I do.

In our application, randomly, we see agents raising an Invalid URL. So far it has only been on POST/v1/responses.

Image Image

This started happening yesterday and we don't know where it is coming from as we are only using the agents SDK.

Agents SDK version: 0.0.15
Python version 3.12.4

@maininformer maininformer added the bug Something isn't working label Jun 5, 2025
@chandlj
Copy link

chandlj commented Jun 5, 2025

Also seeing this error, also saw it using Codex CLI. Our hypothesis is that is coming from the underlying SDK somewhere, since it was seen across projects and across SDK languages.

@maininformer
Copy link
Author

I do have a sneaking suspicion this has to do with ModelSettings.truncation

@caenopy
Copy link

caenopy commented Jun 5, 2025

I'm seeing it for 4o as well
Error: Error code: 404 - {'error': {'message': 'Invalid URL (POST /v1/engines/gpt-4o-2024-08-06/completions)', 'type': 'invalid_request_error', 'param': None, 'code': None}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants