-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect error #230
Comments
Hi @zhongguojunhun1 please keep in mind that your token is private, so be mindful of that when sharing screenshoots that show part of it. I recommend using an environment variable for your token. You can learn how to use one here. Now, regarding your issue, can you share what the error is? Since the image is cropped, I can't see what it says at the end. Additionally, please make sure you have TimeGPT credits or a valid payment method. The |
Hi,dear developer, I have $1000 credits in my account, as shown in Figure 1 of the zip package. The full information about the connection error problem I encountered is shown in Figure 2-Figure 9. However, when I submit data using the officially recommended request method, I can receive a return from TimeGPT, as shown in Figure 10.Thank you for helping me with my questions.
…------------------ 原始邮件 ------------------
发件人: "Nixtla/nixtla" ***@***.***>;
发送时间: 2024年3月6日(星期三) 上午7:36
***@***.***>;
***@***.******@***.***>;
主题: Re: [Nixtla/nixtla] Connect error (Issue #230)
Hi @zhongguojunhun1 please keep in mind that your token is private, so be mindful of that when sharing screenshoots that show part of it. I recommend using an environment variable for your token. You can learn how to use one here.
Now, regarding your issue, can you share what the error is? Since the image is cropped, I can't see what it says at the end. Additionally, please make sure you have TimeGPT credits or a valid payment method. The validate_token method makes an API call, so you need to have credits to do so. You can check this in your dashboard.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
sorry, what zip package? Here I can see that you sent something at 7:36 AM, but I'm not sure to where or whom. |
Hi @zhongguojunhun1, thanks for sharing the screenshots here on GitHub. I see now that you're trying to make an API request. Is there a specific reason you're not using nixtlats? The idea behind nixtlats is to avoid making direct API requests. Instead, you can simply instantiate the TimeGPT class and then call the forecast method. |
Hi, dear developer! INFO:nixtlats.timegpt:Validating inputs...
|
Ok, now that you're using
This should work since you have enough credits in your dashboard. If that works, then please follow this guide to see how to properly secure your token. You can also use the |
Hi, dear developer! |
@zhongguojunhun1 Do you still experience issues? |
having the same issue. Any suggestsion? Did you resolved it @zhongguojunhun1 ? ! pip install nixtlafrom dotenv import load_dotenv from nixtla import NixtlaClient Check if the NIXTLA_API_KEY was successfully loadedif NIXTLA_API_KEY is not None: nixtla_client.validate_api_key() timegpt_fcst_df = nixtla_client.forecast(df=df, h=12, freq='MS', time_col='timestamp', target_col='value') INFO:nixtla.nixtla_client:Validating inputs...
|
This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. |
First of all, thank you for giving me the permission to experience TimeGPT. I installed nixtlats version 0.19.0 and successfully generated the key, but when I used timegpt.validate_token() to verify the key, ConnectError was displayed. What can I do?
The text was updated successfully, but these errors were encountered: