We got an email from a Microsoft Cloud Solutions A...
# support
t
We got an email from a Microsoft Cloud Solutions Architect who's trying to work with TimeGEN1 on Azure, but getting a 405 error when going through the tutorials. @Cristian Challu @Max would you be able to help? Thank you!
Nick Heilman <nihei@microsoft.com>
I'm an Azure CSA working on some experiments with Azure AI Studio. I am really interested in the Timegen model, but following all of the simple 'hello world' tutorials on doing a simple forecast give me a 405 error. This is even with the sample github data and my own file I want to forecast. Due to the non-verbose error, not really sure what to troubleshoot. Any insight would be greatly appreciated.
🛑 1
Thanks, I'll start with letting him know to remove forecast and if that doesn't work to try inference instead of models.
👍 1
Darn, still not working.
Hmm, still no luck I tried both models.ai.azure.com and inference.ai.azure.com.
Also, in the doc you provided (thanks btw!) it says to put the "azureai" as the model parameter, which then fails later on with this -
I see eastus2 is supported. Is anyone already set up on Azure, so they could try? Maybe @Cristian Challu?
j
They should use timegpt-1, I don't know what the idea is behind azureai but it doesn't work right now. Also the validate_token only takes a boolean argument, they don't need to provide the api key there.
Also they may get more information if they just manually perform the request:
Copy code
import requests
requests.post(
    f'{base_url}validate_token',
    headers={'Authorization': f'Bearer {api_key}')
)
t
thanks, and I found some example notebooks in an Azure repo, so maybe they're the right set of information https://github.com/Azure/azureml-examples/tree/main/sdk/python/foundation-models/nixtla
Still not working
That was the original repo I started this with. After updating the 'model' to timegpt-1, it errors out after 6 attempts with this -
[Errno 11001] getaddrinfo failed
Since you're already set up on Azure @Cristian Challu @azul (she/her) (nixtla), do you think you could help here? I think it's important that we get the Microsoft person up and running.
j
It's very likely that the base url is wrong. Please ask him to try the manual request against either the validate_token or the health endpoints
t
So, just ask him to run that code you shared, and let us know what he gets?
Copy code
import requests
<http://requests.post|requests.post>(
    f'{base_url}validate_token',
    headers={'Authorization': f'Bearer {api_key}')
)
Sorry, I'm just not sure how to ask him to do that, so wanted to see if that's right.
I'll also point him to our Slack community, so he could join there and ask if this doesn't work.
j
Yes, just that snippet. It'll most likely fail but it may give us more information
t
ok, thank you!