# Go lang SDK: Cannot fetch token

**URL:** <https://community.auth0.com/t/go-lang-sdk-cannot-fetch-token/98524>\
**Category:** Get Help\
**Tags:** quickstarts-backend-api, sdks-quickstarts\
**Created:** [January 19, 2023, 8:45pm UTC](https://community.auth0.com/t/go-lang-sdk-cannot-fetch-token/98524 "2023-01-19T20:45:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsindeed](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bsindeed/32/42815_2.png) [@bsindeed](https://community.auth0.com/u/bsindeed)\
**Post date:** [January 19, 2023, 8:45pm UTC](https://community.auth0.com/t/go-lang-sdk-cannot-fetch-token/98524/1 "2023-01-19T20:45:10Z")

</div>

Hello,

I’m using Auth0 GO SDK to perform some user management calls like create or update user.

I can instantiate management client without any issues.

```auto
options := management.WithClientCredentialsAndAudience("client_id", "client_sec", "aud")
m, err := management.New("domain_url", options)
if err != nil {
	log.Error().Msgf("failed to initialize Auth0 client: %s", err.Error())
	return nil, err
}

```

But when I try to use to make some API calls (like create user for instance), it returns the following error:

```auto
user := &management.User{
		Email: &req.Email,
	}
err := m.User.Create(user)

```

```auto
Error message: failed to send the request: Post \"https://domain-url/api/v2/users\": oauth2: cannot fetch token: 404 Not Found\nResponse: Not found., Http status code: 500

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 20, 2023, 9:11am UTC](https://community.auth0.com/t/go-lang-sdk-cannot-fetch-token/98524/2 "2023-01-20T09:11:34Z")

</div>

Hey there!

In order to handle that most effectively can I ask you to raise it as a GitHub issue in the SDK repo so we can work on that directly with the repo maintainers? Once you have a link to it you can share it here so we can ping them.

---

<div class="post-metadata">

**Author:** ![bsindeed](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bsindeed/32/42815_2.png) [@bsindeed](https://community.auth0.com/u/bsindeed)\
**Post date:** [January 20, 2023, 2:35pm UTC](https://community.auth0.com/t/go-lang-sdk-cannot-fetch-token/98524/3 "2023-01-20T14:35:42Z")

</div>

> [@bsindeed](#):
>
> `Error message: failed to send the request: Post \"https://domain-url/api/v2/users\": oauth2: cannot fetch token: 404 Not Found\nResponse: Not found., Http status code: 500`

Thanks. Created an issue: [Management client fails to fetch access token · Issue #150 · auth0/go-auth0 · GitHub](https://github.com/auth0/go-auth0/issues/150)

---

<div class="post-metadata">

**Author:** ![bsindeed](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bsindeed/32/42815_2.png) [@bsindeed](https://community.auth0.com/u/bsindeed)\
**Post date:** [January 23, 2023, 3:31am UTC](https://community.auth0.com/t/go-lang-sdk-cannot-fetch-token/98524/4 "2023-01-23T03:31:18Z")

</div>

It turned out to be a config issue. SDK works as expected. Thanks.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 25, 2023, 5:44am UTC](https://community.auth0.com/t/go-lang-sdk-cannot-fetch-token/98524/5 "2023-01-25T05:44:58Z")

</div>

No worries! Glad you have figured it out!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 8, 2023, 5:45am UTC](https://community.auth0.com/t/go-lang-sdk-cannot-fetch-token/98524/6 "2023-02-08T05:45:49Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
