Umbraco 12 content delivery API hosting on Umbraco...
# help-with-umbraco
u
Hi, I have migrated my Umbraco 12 content delivery API to Umbraco cloud trial version. On local I could access my headless endpoints like https://localhost:44384/umbraco/delivery/api/v1/content and pass Api-Key on postman and Nextjs 13 to get all content, does anyone know how can I do that after deploying to Umbraco cloud trial?
s
I am not sure what the question is? Change
localhost:44384
to the URL on Cloud, that should do the trick right?
u
I deployed the local cloud project running on
localhost:44384
to live environment. After deployment I got the attached settings on
umbraco-cloud.json
then went on to test on postman and got the attached error preview: For local I have been testing on: url: https://localhost:44384/umbraco/delivery/api/v1/content/item/home headers: Api-Key On live should still be: url: https://thabos-loving-giraffe.euwest01.umbraco.io/umbraco/delivery/api/v1/content/item/home headers: Api-Key (from the setting above)
I am not sure If I have to add additional headers or params or If i missed anything on my config
I followed this link
https://docs.umbraco.com/umbraco-cloud/getting-started/migrate-existing-site
for migration from Umbraco 12 content delivery API to Umbraco cloud
s
I think a trial version requires you to be logged in to either the cloud portal or Umbraco in order to view its output. Which is probably why you get that result, when fetching data, because it tries to redirect you to a login.
u
I am logged in on the live and backoffice but still
The API key should be sufficient for the request auth, right?
s
No, theres an extra layer of security on the trial projects.
u
Do you perhaps know or have a sample on how I can send the request?
s
I'm afraid you won't be able to on a trial project, sorry 😦
u
So there is nothing I can do at this stage to explore Umbraco cloud trial further?
Are there any deployment alternative I can look into?
s
Nothing I can think of right now with Umbraco Cloud, you can put in a feature request though: https://github.com/umbraco/Umbraco.Cloud.Issues/issues
u
Thanks Seb 💯
The issue was resolved by support, apparently there is a bug on trial subscriptions and the team is looking into. Thanks alot everyone for your support, happy Umbraco!
3 Views