nixtla icon indicating copy to clipboard operation
nixtla copied to clipboard

status_code: 400

Open lihuang218 opened this issue 6 months ago • 3 comments

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]'} 1704179538174

lihuang218 avatar Jan 02 '24 07:01 lihuang218

hey @lihuang218, thanks for using TimeGPT. we experienced some intermittency in previous days. could you try again? :)

AzulGarza avatar Jan 05 '24 01:01 AzulGarza

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>

AlbertoLanaro avatar Jan 29 '24 14:01 AlbertoLanaro

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]'} 1704179538174 I also encountered the same problem. Have you solved it?

zhongguojunhun1 avatar Feb 28 '24 08:02 zhongguojunhun1

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...

Tingji2419 avatar May 07 '24 07:05 Tingji2419

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.

Tingji2419 avatar May 07 '24 08:05 Tingji2419