error while consuming rest service

0
I am getting the below error when calling rest service returning pdf file content below Mendix error com.mendix.modules.microflowengine.MicroflowException: Error calling REST service     at myRTA_EMS.ViewLetter (CallRest : 'Call REST (GET)') Advanced stacktrace:     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:73) Caused by: com.mendix.modules.microflowengine.MicroflowException: 500: Internal Server Error     at myRTA_EMS.ViewLetter (CallRest : 'Call REST (GET)') File content received testing through postman %PDF-1.4 %���� 1 0 obj << /OutputIntents [<< /DestOutputProfile 2 0 R /S /GTS_PDFA1 /Info (sRGB IEC61966-2.1) /RegistryName () /OutputCondition () /Type /OutputIntent /OutputConditionIdentifier (Custom) >> ] /ViewerPreferences 3 0 R /Type /Catalog /PageLayout /OneColumn /Pages 4 0 R /PageMode /UseNone >> endobj 4 0 obj << /Type /Pages /Count 1 /Kids [5 0 R] >> endobj 5 0 obj << /MediaBox [0.00000 0.00000 595.00000 842.00000] /Type /Page /Contents [6 0 R 7 0 R] /Parent 4 0 R /Resources << /XObject << /EvoPdf_bmbekdaijoipkgffagbolmncgkegafbo 8 0 R /EvoPdf_jnpgmlhineinkooebcihjpbfiiiffppn 9 0 R /EvoPdf_jfpfjdocibfiklllbmplloindlgiohpa 10 0 R /EvoPdf_fofbmebhbmojkjheoghojhlgfmdfeiem 11 0 R >> /ProcSet [/PDF /Text /ImageC] /ExtGState << /EvoPdf_dlmkdilccnokkiipajmabfjdbdbkcfee 12 0 R >> >> >> endobj 6 0 obj << /Filter /FlateDecode /Length 134 >> stream x^M�A! E�$ܡ'�e�u�+�&80�b� ϯ2���?�P�2���F��F�gxJ/)�@^+=x�U�xeҢH�wP�A�3��B���z+\�O�����)]�Pcȡr��y�\�cNuJ�+�Y��_V�/� endstream endobj 7 0 obj << /Filter /FlateDecode /Length 235 >> stream x^���N�0�{Ky?A��8Gz衢D���o H<?9q�Ewt��hG;�o?:2���=M�E�E\g���y��#��Newb��}��2Ju�����7������H5z�W�r�>Z/�B��y�ȱc� ���_p�����RR���PL�k��~mŤ $� �Pe�Rm!ʨ����`��2��D��hĩ_���֋a�f��n]aZ�=M�>����Ұ���8Wki4?�˃� endstream endobj 3 0 obj << /HideWindowUI false /CenterWindow false /NonFullScreenBehavior /UseNone /DisplayDocTitle false /HideMenubar false /FitWindow false /HideToolbar false >> endobj 13 0 obj << /Title (Document) /Producer (EVO HTML to PDF Converter 7.4) >> endobj 8 0 obj << /Type /XObject /Length 160 /Resources << /XObject << /EvoPdf_nminfbbcmcjekccpagolinhmffpgpmnn 14 0 R >> /ProcSet [/PDF /Text /ImageC] /ExtGState << /EvoPdf_neickojmaoplkljlajaholglijdboimg 15 0 R >> >> /Subtype /Form /Filter /FlateDecode /BBox [0.00000 0.00000 535.00000 100.00000] /Name /EvoPdf_bmbekdaijoipkgffagbolmncgkegafbo >> stream x^e���0��M��� `z׻�<�Rhi�v�&>��������d� �8X~�nު�Ż p�$��X�n���) �LHs�S Q=rtч�cO�U�/�B���R�F!�3[�����\��������܅�,��v�!�ɘ�G�F�6�L)���8Hq�?` endstream endobj 14 0 obj << /Type /XObject /Length 202 /Resources << /XObject << /EvoPdf_bbcdceieakeakeioocdlmfdeoahdhndg 16 0 R /EvoPdf_apaoejploghjklgkobdilnaobinkcfhk 17 0 R >> /ProcSet [/PDF /Text /ImageC] >> /Subtype /Form /Filter /FlateDecode /BBox [0.00000 0.00000 1024.00000 191.00000] /Name /EvoPdf_nminfbbcmcjekccpagolinhmffpgpmnn >> stream x^�O��0�3�Hm�a�^{�(�� ����oy(�ƂL�ng�n��i��XF#<�II�i]PO�0�9f�x:�ԧ4F)FÎ�>�.���������&۹[��%�v�C�����$�G�v"�����    7�=X�@���\����,l̀��6� �6���u�A8�8�`���\H� �L�
asked
1 answers
2

Hi Mohamed,

Usually, when you call a REST service and get a HTTP 500 Internal Server Error as a response, it means that something has gone wrong with handling your request, but it has gone wrong at the place where you have sent your request to.

The response that you've added doesn't really give useful information about what has gone wrong. I would suggest checking the documentation of the REST service that you're calling, looking for examples that the owner of the REST service might have provided somewhere, or get in contact with the party that is publishing the REST service.

Greetings Martin

answered