nixtla
nixtla copied to clipboard
status_code: 400
nixtlats.core.api_error.ApiError: status_code: 400, body: {'data': None, 'message': None, 'details': None, 'code': None, 'requestID': 'DK974MT6N3', 'support': 'If you have questions or need support, please email [email protected]'}
hey @lihuang218, thanks for using TimeGPT
. we experienced some intermittency in previous days. could you try again? :)
I'm having the same problem now
Output of the script:
INFO:nixtlats.timegpt:Calling Forecast Endpoint...
INFO:nixtlats.timegpt:Attempt 1 failed...
INFO:nixtlats.timegpt:Attempt 2 failed...
INFO:nixtlats.timegpt:Attempt 3 failed...
INFO:nixtlats.timegpt:Attempt 4 failed...
INFO:nixtlats.timegpt:Attempt 5 failed...
INFO:nixtlats.timegpt:Attempt 6 failed...
Error:
ApiError: status_code: 400, body: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Bad Request</pre>
</body>
</html>
nixtlats.core.api_error.ApiError: status_code: 400, body: {'data': None, 'message': None, 'details': None, 'code': None, 'requestID': 'DK974MT6N3', 'support': 'If you have questions or need support, please email [email protected]'}
I also encountered the same problem. Have you solved it?
Me too. I've checked the network and my token validation. Still get the info :INFO:nixtlats.nixtla_client:Validating inputs... INFO:nixtlats.nixtla_client:Preprocessing dataframes... INFO:nixtlats.nixtla_client:Restricting input... INFO:nixtlats.nixtla_client:Calling Forecast Endpoint... INFO:nixtlats.nixtla_client:Attempt 1 failed... INFO:nixtlats.nixtla_client:Attempt 2 failed... INFO:nixtlats.nixtla_client:Attempt 3 failed... INFO:nixtlats.nixtla_client:Attempt 4 failed... INFO:nixtlats.nixtla_client:Attempt 5 failed... INFO:nixtlats.nixtla_client:Attempt 6 failed...
I've solved my problem. It was due to the incorrect form of the timestamp column ('ds' column). It should be in 'xxxx-xx-xx 00:00:00' but not 'xxxx/xx/xx 0:00'.
When using original data with 'ds' column of ''xxxx/xx/xx 0:00'', it reported error:
Exception: Could not infer frequency of ds column. . This could be due to inconsistent intervals. Please check your data for missing, duplicated or irregular timestamps
And then i specified the freq='M', it reported error likes:
INFO:nixtlats.nixtla_client:Attempt 1 failed.
Final i reform the 'ds' columns to 'xxxx/xx/xx 0:00' without specified the freq, it fixed.