Replies: 1 comment
-
Hey there, @alexbsi! Back for more adventures with our not-so-cooperative bots, I see. Let's see what we can do about this pesky 404 this time. Based on the information provided, the "Request failed with status code 404" error indicates that the requested resource could not be found on the server. This error is not directly generated by the code within the
The client-side code making the request to the const response = await fetch('/api/chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
question,
history,
}),
}); If the error is consistently happening on the second attempt, it might be related to some state or data that is being changed or consumed during the first request. Without more information, it's hard to pinpoint the exact cause. Could you provide more details about the exact error message or response body returned when the "Request failed with status code 404" error occurs? Also, is there any pattern or specific sequence of actions that triggers the "Request failed with status code 404" error on the second attempt? This information could help in identifying the root cause of the issue. For reference, here are the sources: Sources
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
It bugs me that, the first time always works. The second time I am getting: Request failed with status code 404, always.
Got same results with gpt-3.5-turbo and got-4.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions