Hi,
After update form 4.11 to 4.12 posting of data stopped to work.
export const postActivityLog = (activityDTO: ActivityLogDTO): Promise<any> => {
return new Promise((resolve, reject) => {
esriRequest(`${activityAPI}/activityLog`, {
method: 'post',
responseType: 'json',
query: JSON.stringify(activityDTO),
}).then((result: any) => {
resolve(result.data);
}).catch(error => {
reject(error);
});
});
};
This code worked correct in 4.11, see image.
With 4.12 I get:
Status Code: 415 Unsupported Media Type
Content-Type: application/problem+json; charset=utf-8
Form data:
0:
{
1:
"
2:
a
3:
c
4:
t
5:
i
6:
v
7:
i
8:
t
9:
y
10:
I
11:
d and so on...
See image with Network log.