# Troubleshooting StatusCode.PERMISSION\_DENIED

**URL:** <https://www.alphagenomecommunity.com/t/troubleshooting-statuscode-permission-denied/454>\
**Category:** Help & Support\
**Created:** [July 16, 2025, 3:05pm UTC](https://www.alphagenomecommunity.com/t/troubleshooting-statuscode-permission-denied/454 "2025-07-16T15:05:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jane\_Brown](https://yyz2.discourse-cdn.com/watermelon/user_avatar/www.alphagenomecommunity.com/jane_brown/32/362_2.png) [@Jane\_Brown](https://www.alphagenomecommunity.com/u/Jane_Brown)\
**Post date:** [July 16, 2025, 3:05pm UTC](https://www.alphagenomecommunity.com/t/troubleshooting-statuscode-permission-denied/454/1 "2025-07-16T15:05:26Z")

</div>

I’m trying to follow the [quickstart tutorial](https://colab.research.google.com/github/google-deepmind/alphagenome/blob/main/colabs/quick_start.ipynb#scrollTo=rPQJQirLkYVu) using a jupyter notebook hosted on the [All of Us](https://researchallofus.org) research platform.

I’ve created an API key.

The following code executes without errors:

```auto
from alphagenome import colab_utils
from alphagenome.data import gene_annotation
from alphagenome.data import genome
from alphagenome.data import transcript as transcript_utils
from alphagenome.interpretation import ism
from alphagenome.models import dna_client
from alphagenome.models import variant_scorers
from alphagenome.visualization import plot_components

dna_model = dna_client.create('MY_SECRET_KEY_REDACTED')
variant = genome.Variant(
    chromosome='chr22',
    position=36201698,
    reference_bases='A',
    alternate_bases='C',
)
interval = variant.reference_interval.resize(dna_client.SEQUENCE_LENGTH_1MB)

```

However, when I try to use the `predict_variant` function, I get a 403 error.

Code:

```auto
outputs = dna_model.predict_variant(
    interval=interval,
    variant=variant,
    ontology_terms=['UBERON:0001157'],
    requested_outputs=[dna_client.OutputType.RNA_SEQ],
)

```

Error:

```auto
<_MultiThreadedRendezvous of RPC that terminated with:
	status = StatusCode.PERMISSION_DENIED
	details = "Received http2 header with status: 403"
	debug_error_string = "UNKNOWN:Error received from peer {created_time:"2025-07-16T14:58:26.142485828+00:00", grpc_status:7, grpc_message:"Received http2 header with status: 403"}"
>

```

Is my API key misconfigured? Is this likely some other environment issue? I’ve tried restarting my kernel. Are there other debugging steps I could take?

Thanks,  
Jane

---

<div class="post-metadata">

**Author:** ![tward](https://yyz2.discourse-cdn.com/watermelon/user_avatar/www.alphagenomecommunity.com/tward/32/17_2.png) [@tward](https://www.alphagenomecommunity.com/u/tward)\
**Post date:** [July 16, 2025, 5:09pm UTC](https://www.alphagenomecommunity.com/t/troubleshooting-statuscode-permission-denied/454/2 "2025-07-16T17:09:38Z")

</div>

Hi @Jane_Brown, welcome to the forum!

Does the snippet above work when run locally in python env, or via [https://colab.research.google.com/](https://colab.research.google.com/) with your API key? if so that’d suggest it’s a connection issue from [All of Us](https://researchallofus.org/) to our servers.

---

<div class="post-metadata">

**Author:** ![Jane\_Brown](https://yyz2.discourse-cdn.com/watermelon/user_avatar/www.alphagenomecommunity.com/jane_brown/32/362_2.png) [@Jane\_Brown](https://www.alphagenomecommunity.com/u/Jane_Brown)\
**Post date:** [July 16, 2025, 5:31pm UTC](https://www.alphagenomecommunity.com/t/troubleshooting-statuscode-permission-denied/454/3 "2025-07-16T17:31:05Z")

</div>

Looks like it works fine on [Colab](https://colab.research.google.com/). It must be an issue with the All of Us platform. I’ll follow up with their support team. Thanks so much!
