question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v12 RC2 Swagger UI not working on Umbraco Cloud

See original GitHub issue

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

12.0.0-rc2

Bug summary

I cloned an Umbraco Cloud project (11.3.1) locally and upgraded it to 12.0.0-rc2 with the following command: dotnet add package Umbraco.Cms --version 12.0.0-rc2.

After that I enabled the Content Delivery API following these steps: https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/content-delivery-api

Then I tried the Swagger UI on my local environment and it worked. I pushed my changes to Umbraco Cloud and tried to do the same there. However there the Swagger UI is not working:

Local: image

Umbraco Cloud: image

Swagger UI doesn’t work, but the Content Delivery API does work.

Local: image

Umbraco Cloud: image

If you visit this Umbraco Cloud URL you can see the results (it’s a trial which is almost over): https://umbraco-trial.euwest01.umbraco.io/umbraco/delivery/api/v1/content

Specifics

No response

Steps to reproduce

See bug summary.

Expected result / actual result

The Swagger UI should work local and on Umbraco Cloud.

Issue Analytics

  • State:closed
  • Created 4 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nathanwoulfecommented, May 28, 2023

This is the Kenn you’re looking for - @kjac 😺

0reactions
jbreuercommented, May 30, 2023

Hi @kjac,

Thanks for the info! I used Kudu and changed the ASPNETCORE_ENVIRONMENT value from Production to Development on my Umbraco Cloud site and I can confirm that Swagger is working now. I’m using this Umbraco Cloud site only for experiments. So I would not do that on a real website 😉.

I understand that this is by design. It might be a good idea to add that to the docs: https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/content-delivery-api#swagger. Otherwise there might be more people who think this is a bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

v12 RC2 Swagger UI not working on Umbraco Cloud
After Umbraco v12 RC2 fixed an issue with Umbraco Cloud I continued to experiment with the Content Delivery API. It is working now,...
Read more >
v12 RC2 Swagger UI not working on Umbraco Cloud
After Umbraco v12 RC2 fixed an issue with Umbraco Cloud I continued to experiment with the Content Delivery API. It is working now,...
Read more >
issue-first-response - Actions · umbraco/Umbraco-CMS
Database Connection Issues - Website becomes unresponsive Connection Pool ... v12 RC2 Swagger UI not working on Umbraco Cloud issue-first-response #540: ...
Read more >
v12.0.0
Changes in RC2. Downgraded OpenIdDict to version 4.2.0 to resolve external login not working fixing #14265. Updated EF Core extension method ...
Read more >
Umbraco 12 Release Candidate
Read all about the upcoming major release of Umbraco CMS · Content Delivery API · Support for Entity Framework Core · Updated Dependencies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found