Skip to content

API error on GET #70

@emerikaji

Description

@emerikaji

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions