Open VectorZhao opened 1 year ago
Hello @VectorZhaoThe logs are a bit messy!! how would you replicate this?
what should I do?
When I run any agents, the error Request failed with status code 409
will always appear.
next | prisma:query BEGIN
next | prisma:query BEGIN
next | prisma:query BEGIN
next | prisma:query INSERT INTO `reworkd_platform`.`AgentTask` (`id`,`agentId`,`type`,`status`,`value`,`sort`,`createDate`) VALUES (?,?,?,?,?,?,?)
next | prisma:query INSERT INTO `reworkd_platform`.`AgentTask` (`id`,`agentId`,`type`,`status`,`value`,`sort`,`createDate`) VALUES (?,?,?,?,?,?,?)
next | prisma:query INSERT INTO `reworkd_platform`.`AgentTask` (`id`,`agentId`,`type`,`value`,`sort`,`createDate`) VALUES (?,?,?,?,?,?)
next | prisma:query SELECT `reworkd_platform`.`AgentTask`.`id`, `reworkd_platform`.`AgentTask`.`agentId`, `reworkd_platform`.`AgentTask`.`type`, `reworkd_platform`.`AgentTask`.`status`, `reworkd_platform`.`AgentTask`.`value`, `reworkd_platform`.`AgentTask`.`info`, `reworkd_platform`.`AgentTask`.`sort`, `reworkd_platform`.`AgentTask`.`deleteDate`, `reworkd_platform`.`AgentTask`.`createDate` FROM `reworkd_platform`.`AgentTask` WHERE `reworkd_platform`.`AgentTask`.`id` = ? LIMIT ? OFFSET ?
next | prisma:query SELECT `reworkd_platform`.`AgentTask`.`id`, `reworkd_platform`.`AgentTask`.`agentId`, `reworkd_platform`.`AgentTask`.`type`, `reworkd_platform`.`AgentTask`.`status`, `reworkd_platform`.`AgentTask`.`value`, `reworkd_platform`.`AgentTask`.`info`, `reworkd_platform`.`AgentTask`.`sort`, `reworkd_platform`.`AgentTask`.`deleteDate`, `reworkd_platform`.`AgentTask`.`createDate` FROM `reworkd_platform`.`AgentTask` WHERE `reworkd_platform`.`AgentTask`.`id` = ? LIMIT ? OFFSET ?
next | prisma:query SELECT `reworkd_platform`.`AgentTask`.`id`, `reworkd_platform`.`AgentTask`.`agentId`, `reworkd_platform`.`AgentTask`.`type`, `reworkd_platform`.`AgentTask`.`status`, `reworkd_platform`.`AgentTask`.`value`, `reworkd_platform`.`AgentTask`.`info`, `reworkd_platform`.`AgentTask`.`sort`, `reworkd_platform`.`AgentTask`.`deleteDate`, `reworkd_platform`.`AgentTask`.`createDate` FROM `reworkd_platform`.`AgentTask` WHERE `reworkd_platform`.`AgentTask`.`id` = ? LIMIT ? OFFSET ?
next | prisma:query COMMIT
next | prisma:query COMMIT
next | prisma:query COMMIT
next | prisma:query COMMIT
next | prisma:query COMMIT
platform | 2023-07-18 02:24:47.253 | INFO | logging:callHandlers:1706 - message='OpenAI API response' path=**https://azure_base_url/v1/chat/completions** processing_ms=12.7857 request_id=546fe5b2-937b-42c1-abd7-1e82bbe9288c response_code=400
platform | 2023-07-18 02:24:47.253 | INFO | logging:callHandlers:1706 - error_code=None error_message='Unrecognized request argument supplied: functions' error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False
platform | 2023-07-18 02:24:47.273 | ERROR | reworkd_platform.web.api.error_handling:platformatic_exception_handler:13 - Unrecognized request argument supplied: functions
platform | Traceback (most recent call last):
platform |
platform | File "/app/src/reworkd_platform/web/api/agent/helpers.py", line 32, in openai_error_handler
platform | return await func(*args, **kwargs)
platform | │ │ └ {'messages': [HumanMessage(content='\n High level objective: "Plan a detailed trip to Hawaii."\n Current task:
Hello @VectorZhao where may you be located ?? would you happen to have network restrictions??
I am in China, however VPN has been deployed. You can see my screenshot, I am able to chat with GPT normally.
I redeployed Oracle in Singapore and encountered the same error again.
Hello @VectorZhao the vpn is causing issues as there are to many "handshakes" between networks happening
I redeployed Oracle in Singapore and encountered the same error again.
@VectorZhao is there any way you could try this locally?
Please check that this issue hasn't been reported before.
Expected Behavior
.env
docker-compose.yml
Current behaviour
logs
Steps to reproduce
run a agent,![image](https://github.com/reworkd/AgentGPT/assets/16644993/fa7ea42d-31b8-4f6e-a86c-3268b410dc32)
Request failed with status code 409
but i can chat with gpt.Possible solution
No response
Which Operating Systems are you using?
Acknowledgements