SOAP Server was unable to process request. ---> Object reference not set to an instance of an object - object

I am getting this error for SOAP API Which I am using to POST and INSert the Data into database I'm Confused whether the error is from myside or API side
An uncaught Exception was encountered
Type: SoapFault
Message: Server was unable to process request. ---> Object reference not set to an instance of an object.
Back Trace :
Function: __call
this is also one of response

Finally issue is solved!
Actually the problem was from API Side they changed parameter name and i updated same in my request parameter
Issue was in Parameter i used to send in XML Request!!

Related

Error websocket djangochannelsrestframework

I did websocket connection by djangochannelsrestframework library, it connects but when I send some message it gets this error below
Error image
I can't tell what's exactly wrong if I don't see your code
But in my eyes, it seems like you are passing some data that are not JSON serializable - or maybe passing a set instead of dict

Restsharp - Cannot get error response body

I am using current (106.5.4) version of RestSharp with Xamarin.iOS and MvvmCross. I works very well (automatic body serialization, deserialization etc.), however I am having hard time getting error response body.
If there is a response from server with error code 4xx or 5xx I get just strange exception in top level of my code that says
"Error getting response stream (ReadAsync): ReceiveFailure Value
cannot be null. Parameter name: src"
Only when I use "Catch All Exceptions" in visual studio I can see the real exception down in call stack. Even though there is no way how to access the body. Accessing the body would be extremely helpful because the server can say there what is wrong with the request.
Am I missing anything, or there is no way in RestSharp?
Thank you for any response

Pass API errors through Azure Functions Proxy

I've got an Azure Functions Proxy set up that calls an underlying API. This is working fine, but there seems to be some inconsistent behaviour when it comes to passing errors from the API.
When trying to get a resource that doesn't exist the API returns a 404 response with a friendly error message. This gets passed through the proxy as well, so the caller gets to see that message.
When a server error happens the API returns a 500 response with a friendly error message, but in this case that response does not get passed through the proxy and instead it returns a generic XML error:
<ApiErrorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Azure.WebJobs.Script.WebHost.Models">
<Arguments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<ErrorCode>0</ErrorCode>
<ErrorDetails i:nil="true" />
<Id>edf8c2a7-cb2e-45a0-b2c7-f5ef849c9f50</Id>
<Message>An error has occurred. For more information, please check the logs for error ID edf8c2a7-cb2e-45a0-b2c7-f5ef849c9f50</Message>
<RequestId i:nil="true" />
<StatusCode>InternalServerError</StatusCode>
</ApiErrorModel>
Is there a way to get the proxy to pass through any error messages it receives from the API back to the calling client?

Create PeerConnection exception: Failed to construct 'RTCPeerConnection': Malformed RTCIceServer

I am using appRTC to make demo app. I have setup following things successfully but got stack with JSON format that return in response of Turn-server API.
Use SSL for secure connect to make it work on Google Chrome (Done)
Implement custom WebSockets (Done)
Develop custom API for TurnServer (Done)
I am getting following error in console log.
Create PeerConnection exception: Failed to construct 'RTCPeerConnection': Malformed RTCIceServer
Failed to start signaling: Cannot read property 'addStream' of null
I have tried following responses as ice server object
Current object:
{"iceServers":[{"urls":["stun:stun.l.google.com:19302"]},{"urls":["turn:domain.com:8080?transport=udp","turn:domain.com:8080?transport=tcp","turn:domain.com:8080"],"username":"test","credential":"password"}],"lifetimeDuration":"86400s","blockStatus":"NOT_BLOCKED","iceTransportPolicy":"all"}
Have also tried:
[{"urls":["stun:stun.l.google.com:19302"]},{"urls":["turn:domain.com:8080?transport=udp","turn:domain.com:8080?transport=tcp","turn:domain.com:8080"],"username":"test","credential":"password"}]
and also tried this one:
[{"urls":["turn:domain.com:8080?transport=udp","turn:domain.com:8080?transport=tcp","turn:domain.com:8080"],"username":"test","credential":"password"}]
You have a typo here:
[{"urls":["stun:stun.l.google.com:19302"}
trying to close urls without closing the array.
This should be
[{"urls":["stun:stun.l.google.com:19302"]}
This doesn't result in an error about malformed RTCIceServer though.
Based on your comment it seems to be a result of calling
new RTCPeerConnection({"iceServers":[{}]})
-- an empty object is not a valid RTCIceServer.
I would also recommend not passing
"lifetimeDuration":"86400s","blockStatus":"NOT_BLOCKED"
to the RTCPeerConnection as it doesn't know about these.

Azure Custom Vision API predict_image invalid status code

I am trying to connect my app to Azure's Custom Vision API using the predict_image method of the predictor object(as seen in their tutorial). However it is giving me the following error: "Operation returned an invalid status code 'Not Found' ".
Screenshots Attached: Error Message Actual Code
Is there a default iteration set for the project? If the prediction endpoint is called without specifying an iteration id then that implicitly falls back to using the default iteration. But if there is no default iteration set then the service will respond with a 404. There should be more detail available in the response body.

Resources