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

MessageBodyReader not found for media type=text/plain;charset=utf-8 #381

Open
r-ganeshkumar opened this issue Apr 27, 2020 · 6 comments
Open

Comments

@r-ganeshkumar
Copy link

When I try to use the Connected App deployment with Mule Runtime 4.2.2, Mule Maven Plugin 3.4.0, I am receiving the below error while Jenkins Build.
MessageBodyReader not found for media type=text/plain;charset=utf-8, type=class org.mule.tools.client.arm.model.Environments, genericType=class org.mule.tools.client.arm.model.Environments

@manikmagar
Copy link
Contributor

This happens when connected application credentials do not have required scope Design Center Developer. Most likely, the authentication to APIs is failing and instead of JSON response it is returning text error message that plugin is trying to deserialize it as JSON. Add Design Center Developer scope to connected app and try again.
See doc - https://docs.mulesoft.com/mule-runtime/4.3/deploy-to-cloudhub#authentication-methods

@rhoegg
Copy link

rhoegg commented Oct 12, 2022

I am seeing this error with plugin version 3.8.0 using . The cause was that I was not supplying the or so the plugin could not find the environment.

I would love it if we had a better error in this case

@manikmagar
Copy link
Contributor

One of my colleague recently encountered below. The root cause was that user account had MFA enabled and login credentials were used. I guess there are many ways to fail there. Yes, it will be immensely helpful to have better error messages.

Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:3.5.4:deploy failed: MessageBodyReader not found for media type=application/octet-stream, type=class org.mule.tools.client.arm.model.Environments, genericType=class org.mule.tools.client.arm.model.Environments.

@tahaiqbalkhan9
Copy link

I am facing the same issue, Exception is really unhelpful figure out the cause.

@tahaiqbalkhan9
Copy link

This happens when connected application credentials do not have required scope Design Center Developer. Most likely, the authentication to APIs is failing and instead of JSON response it is returning text error message that plugin is trying to deserialize it as JSON. Add Design Center Developer scope to connected app and try again. See doc - https://docs.mulesoft.com/mule-runtime/4.3/deploy-to-cloudhub#authentication-methods

This works!!

@brunocosta95
Copy link

Hi, I'm facing this issue and my connected app have the scope Design Center Developer.
Any ideas?

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

5 participants