# ERROR while calling W&B API: permission denied

**URL:** <https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [June 14, 2024, 6:59am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921 "2024-06-14T06:59:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@fabian](https://community.wandb.ai/u/fabian)\
**Post date:** [June 14, 2024, 6:59am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/1 "2024-06-14T06:59:39Z")

</div>

Hi  
I’m encountering the following error when attempting to initialize W & B:

> import wandb  
> wandb.init(project=“opencompute”, entity=“neuralinternet”)

The error message is as follows:

> wandb: ERROR while calling W&B API: permission denied (\<Response [403]\>)  
> RESULT message: “It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permission, verify that there are no issues with your connection setup. (Error 403: Forbidden)”  
> code COMMUNICATION

The project is set to open access, and the API key is correctly configured. Other users accessing the same project do not encounter this error. Additionally, when I switch to an API key of a user who does not experience this issue, the error does not occur on the same machine/environment. This leads me to believe the error is related to the specific API key.

Steps already performed:

1. rm -rf ~/.config/wandb
2. rm ~/.netrc
3. rm -rf wandb
4. pip3 unistall wandb
5. pip3 install wandb==0.16.6
6. use browser and go to [https://wandb.ai/authorize](https://wandb.ai/authorize) and copy the API key.
7. wandb login --relogin \<API\_KEY\>

Project usage details:

Total runs: 2130  
Storage: 1.5GB/100GB

I would appreciate any assistance in resolving this issue. Thank you!

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [June 17, 2024, 9:51pm UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/2 "2024-06-17T21:51:29Z")

</div>

Hey @fabian, could you please go ahead and update to the latest version of wandb?

Could you also call `wandb.login(key="<your_api_key>")` before calling `wandb.init(project=“opencompute”, entity=“neuralinternet”)`?

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [June 21, 2024, 3:07pm UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/3 "2024-06-21T15:07:46Z")

</div>

Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

---

<div class="post-metadata">

**Author:** ![fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@fabian](https://community.wandb.ai/u/fabian)\
**Post date:** [June 21, 2024, 3:30pm UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/4 "2024-06-21T15:30:14Z")

</div>

Hi @artsiom  
Many thanks for your input but unfortunately the problem has not yet been solved. However, we were able to narrow down the problem; all newly created wandb accounts and API keys show the error shown, old accounts and API keys work.  
All the fail cases are related to the GraphQL return 403 permission error.  
I simply execute the below wandb init/login with my two accounts (account A & B)  
Newly created account B shows the error, older account A works.

Script:

```auto
python3 - <<EOF
import wandb
wandb.login(key="xxxxx")
run = wandb.init(project="opencompute", entity="neuralinternet")
print(run.id)
EOF

```

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [June 25, 2024, 5:22pm UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/5 "2024-06-25T17:22:16Z")

</div>

Hi @fabian, thank you for the follow up that is very interesting.

Could you please send me a link to an account you have created recently and is getting a permissions error?

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [June 27, 2024, 7:11pm UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/6 "2024-06-27T19:11:24Z")

</div>

Hi! Wanted to follow up with you regarding this thread Fabian!

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [July 1, 2024, 4:36pm UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/7 "2024-07-01T16:36:19Z")

</div>

Hi, since we have not heard back from you, we are going to close this request. If you would like to reopen the conversation, please let us know! Unfortunately, at the moment, we do not receive notifications if a thread reopens on Discourse. So, please feel free to create a new ticket regarding your concern if you’d like to continue the conversation.

---

<div class="post-metadata">

**Author:** ![gabe-chef](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gabe-chef](https://community.wandb.ai/u/gabe-chef)\
**Post date:** [July 11, 2024, 6:58pm UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/8 "2024-07-11T18:58:46Z")

</div>

I’m seeing a similar issue now - I can authenticate with the API fine, but a coworker that just joined our project is getting permission issues

---

<div class="post-metadata">

**Author:** ![sjssmits](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sjssmits](https://community.wandb.ai/u/sjssmits)\
**Post date:** [July 12, 2024, 2:34pm UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/9 "2024-07-12T14:34:30Z")

</div>

Same problem here:  
Traceback (most recent call last):  
File “/home/air/workspace/train.py”, line 21, in   
wandb.init(project=“EasyDeL-Qwen-Tune”, entity=“sjssmits”)  
File “/home/air/.local/lib/python3.10/site-packages/wandb/sdk/wandb\_init.py”, line 1195, in init  
wandb.\_sentry.reraise(e)  
File “/home/air/.local/lib/python3.10/site-packages/wandb/analytics/sentry.py”, line 155, in reraise  
raise exc.with\_traceback(sys.exc\_info()[2])  
File “/home/air/.local/lib/python3.10/site-packages/wandb/sdk/wandb\_init.py”, line 1181, in init  
return wi.init()  
File “/home/air/.local/lib/python3.10/site-packages/wandb/sdk/wandb\_init.py”, line 785, in init  
raise error  
wandb.errors.CommError: It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 403: Forbidden)

---

<div class="post-metadata">

**Author:** ![p-sodmann](https://avatars.discourse-cdn.com/v4/letter/p/8797f3/32.png) [@p-sodmann](https://community.wandb.ai/u/p-sodmann)\
**Post date:** [July 15, 2024, 4:59am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/10 "2024-07-15T04:59:43Z")

</div>

I am also getting the same error when trying to log data to any of my projects.  
I tried upgrading to the latest version, force relogin, using the key with wandb.login()  
The only difference is, that I get a 404 error:

It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)

---

<div class="post-metadata">

**Author:** ![taesung-park](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@taesung-park](https://community.wandb.ai/u/taesung-park)\
**Post date:** [July 15, 2024, 5:08am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/11 "2024-07-15T05:08:16Z")

</div>

I am getting the same 404 error.

> > > import wandb  
> > > wandb.init()  
> > > wandb: Currently logged in as: (). Use `wandb login --relogin` to force relogin  
> > > wandb: ERROR Error while calling W&B API: run “azbe8cda” not found while updating run (\<Response [404]\>)  
> > > wandb: ERROR It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)

---

<div class="post-metadata">

**Author:** ![ruochiz](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@ruochiz](https://community.wandb.ai/u/ruochiz)\
**Post date:** [July 15, 2024, 5:08am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/12 "2024-07-15T05:08:59Z")

</div>

I’m getting the same error:

> > > import wandb  
> > > wandb.init(project=‘scPrinterSeq\_v3’)  
> > > wandb: Currently logged in as: ruochiz. Use `wandb login --relogin` to force relogin  
> > > wandb: ERROR Error while calling W&B API: run “i1320rhy” not found while updating run (\<Response [404]\>)  
> > > wandb: ERROR It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > File “/home/rzhang/miniforge3/envs/scprinter/lib/python3.10/site-packages/wandb/sdk/wandb\_init.py”, line 1195, in init  
> > > wandb.\_sentry.reraise(e)  
> > > File “/home/rzhang/miniforge3/envs/scprinter/lib/python3.10/site-packages/wandb/analytics/sentry.py”, line 155, in reraise  
> > > raise exc.with\_traceback(sys.exc\_info()[2])  
> > > File “/home/rzhang/miniforge3/envs/scprinter/lib/python3.10/site-packages/wandb/sdk/wandb\_init.py”, line 1181, in init  
> > > return wi.init()  
> > > File “/home/rzhang/miniforge3/envs/scprinter/lib/python3.10/site-packages/wandb/sdk/wandb\_init.py”, line 785, in init  
> > > raise error  
> > > wandb.errors.CommError: It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)

---

<div class="post-metadata">

**Author:** ![fossss](https://avatars.discourse-cdn.com/v4/letter/f/ebca7d/32.png) [@fossss](https://community.wandb.ai/u/fossss)\
**Post date:** [July 15, 2024, 5:09am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/13 "2024-07-15T05:09:00Z")

</div>

I am getting the same error today, yesterday was fine.

---

<div class="post-metadata">

**Author:** ![aivsdeveloper](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@aivsdeveloper](https://community.wandb.ai/u/aivsdeveloper)\
**Post date:** [July 15, 2024, 5:09am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/14 "2024-07-15T05:09:09Z")

</div>

im also getting the same goddam error

wandb: ERROR It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)

wandb.errors.CommError: It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)

---

<div class="post-metadata">

**Author:** ![csmisko](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@csmisko](https://community.wandb.ai/u/csmisko)\
**Post date:** [July 15, 2024, 5:12am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/15 "2024-07-15T05:12:46Z")

</div>

I am getting the same error 😢

---

<div class="post-metadata">

**Author:** ![shishir13sharma](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@shishir13sharma](https://community.wandb.ai/u/shishir13sharma)\
**Post date:** [July 15, 2024, 5:14am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/17 "2024-07-15T05:14:57Z")

</div>

I have the same error as well. Tried removing .netrc and adding wand.login before wandb.init. Doesn’t solve the issue.

---

<div class="post-metadata">

**Author:** ![kantashmizu0203](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@kantashmizu0203](https://community.wandb.ai/u/kantashmizu0203)\
**Post date:** [July 15, 2024, 5:17am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/18 "2024-07-15T05:17:13Z")

</div>

Is this the wandb error? or my personal error?  
many people have the same error now.  
Are there anyone who can use wandb now?

---

<div class="post-metadata">

**Author:** ![p-sodmann](https://avatars.discourse-cdn.com/v4/letter/p/8797f3/32.png) [@p-sodmann](https://community.wandb.ai/u/p-sodmann)\
**Post date:** [July 15, 2024, 5:19am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/19 "2024-07-15T05:19:56Z")

</div>

**TEMPORARY SOLUTION:**  
For now wandb can still be used by providing an id to the run of a run that was created but failed with an 404 error

e.g.  
wandb.init(  
entity=  
project=  
id=“xxx”  
)

it seems like there is a delay when creating new runs which causes wandb not to find them?

---

<div class="post-metadata">

**Author:** ![neiltan](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@neiltan](https://community.wandb.ai/u/neiltan)\
**Post date:** [July 15, 2024, 5:23am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/20 "2024-07-15T05:23:49Z")

</div>

I’ve been getting permission error starting about 20 mins ago.

```auto
wandb.errors.CommError: It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)

```

---

<div class="post-metadata">

**Author:** ![yhmsc007](https://avatars.discourse-cdn.com/v4/letter/y/f9ae1b/32.png) [@yhmsc007](https://community.wandb.ai/u/yhmsc007)\
**Post date:** [July 15, 2024, 5:25am UTC](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921/21 "2024-07-15T05:25:44Z")

</div>

I am getting the same error, any solutions?

`wandb.errors.CommError: It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)`

[Next page](https://community.wandb.ai/t/error-while-calling-w-b-api-permission-denied/6921.md?page=2)
