Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transport: received unexpected content-type "application/json" #7

Open
iyobo opened this issue Aug 5, 2023 · 3 comments
Open

transport: received unexpected content-type "application/json" #7

iyobo opened this issue Aug 5, 2023 · 3 comments

Comments

@iyobo
Copy link

iyobo commented Aug 5, 2023

After configuring the profile and using it, I keep getting the error

  • rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type "application/json"
@vavsab
Copy link
Member

vavsab commented Dec 6, 2023

@iyobo I need at least your code example that is failing to help you.
It could be due to mixing grpc & rest apis. But need to know which resources you are trying to create and at which resource it's failing exactly.

@cenk1cenk2
Copy link

@iyobo did you ever got the chance to figure out what was wrong and why would you receive this message? In my case it happens in every kind of resource, so I bet that I am missing the correct configuration.

@cenk1cenk2
Copy link

I have immediately figured this out since the error looked simialr and will leave it here for any other fellow that will search this here.

The reason why this happens is that the provider calls the GRPC endpoints for management. And if you install the zitadel like as I did through helm and your ingress controller or reverse proxy that does not support mixed requests of GRPC and HTTP like I did with the nginx, you would explicitly have to create and mark the given paths as GRPC for the endpoints given in the API documentation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants