502 Error in Amp on VSCode

Hi all!

I’ve been using Cody for a while now and just switched to Amp. Oh my god! I absolutely love it!!!

I’ve been going strong, but earlier this afternoon, it started throwing the following error:

Error

502 {“type”:“error”,“error”:{“type”:“invalid_request_error”,“message”:“messages.119: tool_use ids were found without tool_result blocks immediately after: toolu_012tJAdf6LzAm1Paw5RDGX9L. Each tool_use block must have a corresponding tool_result block in the next message.”}}

Is this something that you can help me resolve? I’m currently unable to use the program and would love to get back up and running.

Thanks so much!

1 Like

Not certain what the issue was, but I rolled back a few steps and it fixed the problem. I’m back up and running now.

Hey @gopalmetro just saw this. I’m glad it worked itself out.

I’m really happy to hear you are loving Amp, the team will be too!