# "Internal server error' with \`okteto context use\`

**URL:** <https://community.okteto.com/t/internal-server-error-with-okteto-context-use/735>\
**Category:** Help\
**Created:** [March 18, 2023, 7:57pm UTC](https://community.okteto.com/t/internal-server-error-with-okteto-context-use/735 "2023-03-18T19:57:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpmct](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/bpmct/32/327_2.png) [@bpmct](https://community.okteto.com/u/bpmct)\
**Post date:** [March 18, 2023, 7:57pm UTC](https://community.okteto.com/t/internal-server-error-with-okteto-context-use/735/1 "2023-03-18T19:57:09Z")

</div>

I’m seeing this error with “okteto context use.” I have a token set, but am hoping to use my own cluster with the CLI. Any ideas on how I can debug this further?

```sh
workspace@primary:~$ okteto context list
 ! Initializing context with the value of OKTETO_TOKEN environment variable
Name Namespace Builder Registry
https://cloud.okteto.com * bpmct tcp://buildkit.cloud.okteto.net:443 registry.cloud.okteto.net
default-context coder-ws-bpmct-hello docker -
workspace@primary:~$ okteto context use default-context
 ! Initializing context with the value of OKTETO_TOKEN environment variable
 x Internal server error, please try again
workspace@primary:~$ okteto --log-level=debug context use default-context
 ! Initializing context with the value of OKTETO_TOKEN environment variable
 x Internal server error, please try again

```

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [March 20, 2023, 4:05pm UTC](https://community.okteto.com/t/internal-server-error-with-okteto-context-use/735/2 "2023-03-20T16:05:56Z")

</div>

Hey @bpmct !

Couple of questions to get us started:

- What version of the CLI are you using?
- If you do `okteto context use https://cloud.okteto.com`, does it work?
- Do you have `OKTETO_TOKEN` set in your environment?

---

<div class="post-metadata">

**Author:** ![maroshii](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/maroshii/32/12_2.png) [@maroshii](https://community.okteto.com/u/maroshii)\
**Post date:** [March 22, 2023, 3:16pm UTC](https://community.okteto.com/t/internal-server-error-with-okteto-context-use/735/3 "2023-03-22T15:16:23Z")

</div>

Hi @bpmct,

I was able to reproduce the error you are describing and is indeed related to the OKTETO\_TOKEN envvar as Ramiro is describing.

I opened an issue in the repo to track it: [okteto context does not work properly with vanilla cluster with OKTETO\_TOKEN envvar set · Issue #3467 · okteto/okteto · GitHub](https://github.com/okteto/okteto/issues/3467). Feel free to track it’s progress.

In the meantime disabling the envvar would work:

```auto
unset OKTETO_TOKEN

```

or alternatively:

```auto
OKTETO_TOKEN="" okteto context use default-context

```

The second option would be required for every command after that unfortunately.
