REST API Connector Error Message

0
Hello, i have a problem while calling a REST API Connection the following message occurs: The following represents my data model: So everything what has _Import in its name i made an import mapping for the xml object that should be in the rest api response, the _Export entities are ones i export (request) in the rest api call. I created a microflow to create the export objects, which will be my request: So at first i create an object of type transaction_export, then create another of type persUser_Export, associate them and return transaction_export for a data view. Then i created another microflow for the rest api call: It hast the transaction_export object as an input, then i retrieve the associated peruser_export object via the association and call the rest api connection (transaction_export as request, transaction_imprt as response). Finally i create the association between the transaction_import and _export objects.   Can somebody help me with this?   Best Regards,   Max 
asked
2 answers
0

You are getting a 415 error back from the API you are calling. This usually means the Content-type or Content-encoding HTTP header has not been set correctly. To fix this, check the APIs documentation and see if it asks for this? If you need to set the Content-type, you can do this in the Call REST action, click into the HTTP Headers tab, and add it there as a Custom HTTP Header.

https://docs.mendix.com/refguide/call-rest-action#http-headers

Hope this helps

answered
0

The answer may be trivial, but what is meant by ‘Key’? I filled in a value (i.e.  Content-Type: application/xml), but couldn’t figure that out.

Thanks for your answer!

answered