Skip to content
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

Deep research - Error code: 400 - Invalid 'messages[0].content': string too long #1196

Closed
davidromeo opened this issue Feb 24, 2025 · 1 comment

Comments

@davidromeo
Copy link

When running gpt-researcher with the following settings I'm getting an error when it's generating the report. Everything works fine up to this point.

Settings:

Image

Log Errors:

`[2025-02-24T22:13:23.804Z] Error parsing dimension value undefined: invalid literal for int() with base 10: 'undefined'

[2025-02-24T22:13:23.804Z] Error! : HTTPSConnectionPool(host='www.33rdsquare.com', port=443): Read timed out. (read timeout=4)

[2025-02-24T22:13:23.804Z] Error! : HTTPSConnectionPool(host='aiindepth.com', port=443): Read timed out. (read timeout=4)

[2025-02-24T22:13:23.804Z] Error! : HTTPSConnectionPool(host='inonx.com', port=443): Read timed out. (read timeout=4)

[2025-02-24T22:13:23.805Z] Error parsing dimension value 100%: invalid literal for int() with base 10: '100%'

[2025-02-24T22:13:23.805Z] Error parsing dimension value 100%: invalid literal for int() with base 10: '100%'

[2025-02-24T22:13:23.805Z] Error parsing dimension value 100%: invalid literal for int() with base 10: '100%'

[2025-02-24T22:13:23.805Z] Error parsing dimension value 100%: invalid literal for int() with base 10: '100%'

[2025-02-24T22:13:23.805Z] Error parsing dimension value 100%: invalid literal for int() with base 10: '100%'

[2025-02-24T22:13:23.805Z] Error parsing dimension value 100%: invalid literal for int() with base 10: '100%'

[2025-02-24T22:13:23.805Z] Error parsing dimension value 100%: invalid literal for int() with base 10: '100%'

[2025-02-24T22:13:23.805Z] Error parsing dimension value 100%: invalid literal for int() with base 10: '100%'

[2025-02-24T22:13:23.805Z] Error loading PDF : https://www.cell.com/trends/cancer/pdf/S2405-8033(24)00280-2.pdf 403 Client Error: Forbidden for url: https://www.cell.com/trends/cancer/pdf/S2405-8033(24)00280-2.pdf

[2025-02-24T22:13:23.805Z] Error! : HTTPSConnectionPool(host='api.tavily.com', port=443): Max retries exceeded with url: /extract (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)')))

[2025-02-24T22:13:23.805Z] Error loading PDF : https://www.diva-portal.org/smash/get/diva2:1772244/FULLTEXT01.pdf 403 Client Error: Forbidden for url: https://www.diva-portal.org/smash/get/diva2:1772244/FULLTEXT01.pdf

[2025-02-24T22:13:23.805Z] Error parsing dimension value undefined: invalid literal for int() with base 10: 'undefined'

[2025-02-24T22:13:23.805Z] Error in generate_report: Error code: 400 - {'error': {'message': "Invalid 'messages[0].content': string too long. Expected a string with maximum length 1048576, but got a string with length 1304783 instead.", 'type': 'invalid_request_error', 'param': 'messages[0].content', 'code': 'string_above_max_length'}}`

@assafelovic
Copy link
Owner

Resolved in latest release here: #1195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants