I’m trying to create an app via doctl doctl app create --spec .do/app.yaml
but it gives me this error
Error: POST https://api.digitalocean.com/v2/apps: 400 (request “304ba4d8-b2c3-439d-8b7f-2d7f9b14a01a”) Account does not have access to the repo
I verified the doctl account I’m at via doctl auth list
and verified also that the personal access token attached to auth is working as I used it to connect to digitalocean API.
Unto the Digitalocean app platform, I can browse the repo and create the app as well. Any help?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
The error you’re encountering indicates that DigitalOcean App Platform does not have the necessary permissions to access the repository you specified in your
.do/app.yaml
file rather than thedoctl
command not having access to your DigitalOcean account.Sometimes, the connection between DigitalOcean and your version control system (like GitHub or GitLab) might need to be refreshed. What you could do is:
If this does not help, I could also suggest the following:
Verify Repository Access:
.do/app.yaml
file is correct.GitHub Access: If your repository is hosted on GitHub:
GitLab Access: If your repository is hosted on GitLab:
You could also try using the latest version of
doctl
by runningdoctl update
. Sometimes, bugs or issues are fixed in newer releases.Let me know how it goes!
Best,
Bobby