API error on GET
Opened this issue · 0 comments
emerikaji commented
I've been trying to get the API working for some time now, to use the /ip
route in my Go code. While I did manage to get it working for some time, it suddenly started to refuse my requests, responding with a 401: "You must login first".
I don't understand why this is the case, as my API authorization is still perfectly valid, and I have checked that the ovh.Client
properly got all the information from the ovh.conf file- So what else is there to do to authentify?
For additionnal information, here is the code I am using to initialize and request on the API:
client, err := ovh.NewEndpointClient("ovh-eu")
if err != nil {
return err
}
var res = make([]string, 0)
if err = checker.client.Get("/ip", &res); err != nil {
return err
}
fmt.Println(res)
I did try using Ping()
, just in case the problem came from reaching the API, but it didn't return any errors. Is it a problem on my end?
Thank you.