Troubleshooting StatusCode.PERMISSION_DENIED

I’m trying to follow the quickstart tutorial using a jupyter notebook hosted on the All of Us research platform.

I’ve created an API key.

The following code executes without errors:

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:

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

Error:

<_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

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/ with your API key? if so that’d suggest it’s a connection issue from All of Us to our servers.

Looks like it works fine on Colab. It must be an issue with the All of Us platform. I’ll follow up with their support team. Thanks so much!