-
Notifications
You must be signed in to change notification settings - Fork 62
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
Caused by: com.gooddata.GoodDataRestException: 415: [request_id=xyz] Content type 'application/xml;charset=UTF-8' not supported #837
Comments
Manually overriding the @Bean
@ConditionalOnMissingBean
public GoodDataSettings goodDataSettings() {
GoodDataSettings settings = new GoodDataSettings();
settings.setPresetHeader("Content-Type", ContentType.APPLICATION_JSON.toString());
return settings;
} but now I'm getting:
|
Okay so the reason the XML content type is added is because the |
@BenDol thanks for reporting the issue - just to clarify:
|
FYI: ad 1) no, logs say that "GoodData-Java-SDK/2.34.0+api1" version was used |
I changed to use the latest version GoodData: 3.0.0-RC.3+api3 The reason I'm experiencing this is that the RestTemplate detects what libraries you have in your classpath and add the message converters to the list and for what ever reason the RestTemplate: ...
jackson2XmlPresent = ClassUtils.isPresent("com.fasterxml.jackson.dataformat.xml.XmlMapper", classLoader);
...
if (jackson2XmlPresent) {
this.messageConverters.add(new MappingJackson2XmlHttpMessageConverter());
} If you want to reproduce the issue just add |
@BenDol thanks for investigation and sorry for inactivity due to vacancies. We will try to find the way for ensuring the correct set of converters when GoodData is created. At the same time I suppose you resolved the situation by excluding dataformat-xml from classpath? |
Having trouble getting the Afm execution working.
Caused by: com.gooddata.GoodDataRestException: 415: [request_id=tzRYVbhAWy3Z8aTS] Content type 'application/xml;charset=UTF-8' not supported
Results in:
I wasn't able to find any resource on this particular issue.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: