Closed persistz closed 10 months ago
Hi, the server was overloaded and I restarted it. There is likely a memory leak. Can you try again?
OK, thanks. I will try again and close the issue.
Hi Edoardo @dedeswim ,
I refresh the website and resent the corresponding post request, but the server still returned the same error.
Code | Details |
---|---|
Undocumented | Failed to fetch. Possible Reasons: CORS Network Failure URL scheme must be "http" or "https" for CORS request. |
Hi, can you please send what request you're sending? Remember to censor the API key
The request is:
curl -X 'POST' \
'https://ctf.spylab.ai/api/v1/defense/xxxxx/evaluate-utility' \
-H 'accept: application/json' \
-H 'X-API-Key: xxxxx' \
-H 'Content-Type: application/json' \
-d '{
"api_keys": {
},
"model": "openai/gpt-3.5-turbo-1106",
"small": true
}'
One detail is that even if the above error is returned, my account will be deducted (the amount of the deduction depends on how long the program is running), so this seems to be an error that occurred midway through the utility evaluation.
Can you please provide the defense ID? This won't be enough for competition participants to see your defense (they'll also need your API key)
Hi Edoardo, thank you for the timely reply. I currently suspect it caused by fluctuations in my local network, I'm closing the issue for local testing.
When I use the API to perform the evaluate-utility operation, the browser has a certain probability of returning the following error, which causes a lot of budget waste.
Failed to fetch. Possible Reasons:
CORS Network Failure URL scheme must be "http" or "https" for CORS request.