web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Java RestTemplate issue with CRM API starting Feb 27, 2023

(0) ShareShare
ReportReport
Posted on by 20

Hi,

We have a microservice written in Java Spring boot and we are using RestTemplate with custom interceptor that adds "Accept-Encoding=gzip, deflate, br" in the request headers. This code is working perfectly when we are retrieving entities using Dynamics CRM API 8.x or 9.x. This code has been in production since 2020, but recently last February 27, 2023, approximately this week, we started receiving error when performing the same query using the same code base. The following error is (see below)

JSON parse error: Illegal character ((CTRL-CHAR, code 27)): only regular white space (\r, \n, \t) is allowed between tokens

My assumption is that recently there was an update in Dynamics CRM 365 online in the API that automatically implements compression on the response, and thus this additional interceptor tries to compress the data again. But we would like to inquire if this assumption is correct and what specific update has been implemented by Microsoft on this.

Please advise. 

I have the same question (0)
  • Benjsoft Profile Picture
    20 on at

    By the way, our quick solution is either remove the interceptor in the code for the RestTemplate, or replace the value "Accept-Encoding=identity"

    stackoverflow.com/.../jackson-error-illegal-character-only-regular-white-space-allowed-when-parsi

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans