When attempting to run the KontentModelGenerator (in both local .net tool and stand alone) I receive the following error:
Models were generated for delivery-sdk-net version 17.5.0
No content type available for the project ([MyProjectId]). Please make sure you have the Delivery API enabled at https://app.kontent.ai/.
When i used the Postman Collection with my projectId and my DeliverApi Key to request: https://deliver.kontent.ai/:environment_id/types?skip=0&limit=10 the Postman request returns my expected content types.
What went wrong?
Error was received and no content models were created.
Repro steps
Installed KontentModelGenerator into my project (followed directions in repos) (My project is an Azure Function but I have also tried it in a .net6 Console application and both return the same response)
Run the following command from the Package Manager Console (in VS 2022)
KontentModelGenerator --projectid "[MyProjectId]" --namespace "Test.Models.ContentTypes" --apikey "[DeliverApiKey]"
Wait for command to run
Error is returned in the Package Manager Console
Expected behavior
Content Models are created
What is the correct behavior?
I would expect the command to run and my content models created in my project.
Test environment
Platform/OS: Windows 10, Visual Studio 2022 (Azure Function project and Console Application project) both targeting .net6
Browser [e.g. chrome, safari] NA
Version [e.g. 22] KontentModelGenerator 17.5.0, VS 2022 17.7.3
Brief bug description
When attempting to run the KontentModelGenerator (in both local .net tool and stand alone) I receive the following error: Models were generated for delivery-sdk-net version 17.5.0 No content type available for the project ([MyProjectId]). Please make sure you have the Delivery API enabled at https://app.kontent.ai/. When i used the Postman Collection with my projectId and my DeliverApi Key to request: https://deliver.kontent.ai/:environment_id/types?skip=0&limit=10 the Postman request returns my expected content types.
What went wrong? Error was received and no content models were created.
Repro steps
Expected behavior
Content Models are created What is the correct behavior? I would expect the command to run and my content models created in my project.
Test environment
Additional context
Add any other context about the problem here.
Screenshots
Add links to screenshots, if possible.