How do you show error messages in reactjs - relayjs

The onFailure callback on Relay store updates does not have access to good information about the error. It just has access to a generic Error instance where the error message from the server is hidden inside of the message surrounded by debugging information.
I want to show the error message that I got from the server in the UI.
How do I get access to it?

Found out that you can get to the error from inside the onFailure callback like this: transaction.getError().source.errors

Related

Zapier failing to POST to Pardot form handler

I noticed a few zaps resulting in an error message stating, "Cannot find error page to redirect to. Please use your browser back button. Please correct the following errors:~~~ - This field is required~~~" The only required field is email, which was provided during the action step POST, so I'm at a loss as to what occurred.
After reaching out to Zapier support, they confirmed receiving a response code 200, which means that the webhook request was successful, but there isn't any additional information from the server the webhook is being sent to.

Twilio Application Error making Calls

Trying to make call from my app to a number using Twilio API's
When call is received, getting application error
and here is the debugger logs for that call:
Error - 11200 HTTP retrieval failure 502 Bad Gateway errors
Passing a URL when POST Request.
Can anybody help me through this?
have you taken a look at this information from Twilio? They give possible causes and possible solutions for the error you received. Did you specify the correct content-type header in your response?
If you could share your code, that would be great!
Hope this helps!

Error occurred while sending a direct message or getting the response

I am using "InMemoryTokenManager" to tweet messages from my application.
The method "auth.BeginAuthorize();" returns an exception as "Error occurred while sending a direct message or getting the response.".
Can somebody help me out of this problem.
Thx- Satya
This error message maybe seen when you do not have your Return Url set correctly in your Twitter App that can be found after logging to Twitter here: https://dev.twitter.com/apps
As for me, it was popping out because of checking authorization twice. After removing second call to check authorization, it starts work OK.

Twilio client error when accepting client calls

I am using twilio client to make & accept calls from a browser. But when I run the accept page, I get a javascript error on the browser -
Uncaught Twilio.Exception: 401: Unable to determine account.
# line - twilio.js:2683
Here's the code from my controlled thats gets executed when showing the accept call page/view -
def prepare_accept_call
# create the twilio capability object
capability = Twilio::Util::Capability.new TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN
# guessing this is not needed for accepting calls, but added to see if it fixes my issue and it doesnt :(
capability.allow_client_outgoing TWILIO_APP_SID
capability.allow_client_incoming "some-client-identifier"
# use this token for client JS - Twilio.Device.setup("#{#token}");
#token = capability.generate
end
NOTE -: I am successfully able to show the make call page, there are no javascript error - when i click the call button I get the flash microphone permission popup. There are no 401. So guessing my key, tokens etc are ok.
Any idea what could be happening here?
I also had this error with similar conditions where all my credentials were correct but the Twilio client debugger was spitting out "Application not found 31001" - which is a Twilio client error code by the way. I realized that I had not entered the Voice request url that is in the applications section. Apparently this is a necessary prerequisite to access the Twilio Client service.
I feel they should have been more clear with their message but regardless I solved it by entering a publicly reachable callback url using a SSH tunneler like Localtunnel or free server like Heroku.
looking at the code it should work, because it looks good. Can you verify where TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN are ultimately being defined? maybe that could have something to do with it?

Geckoboard not recognizing my Gosquared account

I have a Gosquared widget in my Geckoboard that is tracking one of my site.It is working perfectly fine.Now,I want to add another Gosquared widget to track another site. I entered all data correctly(site name, site ID and API key), also I have put the Gosquared tracking code on my rails application. When i try to create the widget, the connection breaks down with following error "Account does not exist.".I have no clue why its not working.Please help me!!
Try testing that data is being sent from the GoSquared API successfully by accessing the GoSquared API URL directly using your credentials:
http://api.gosquared.com/concurrents.json?sid={SITE_ID}&api_key={API_KEY}
Make sure you replace {SITE_ID} and {API_KEY} in that URL with your respective details.
If you receive a JSON object like {"concurrents":150,"range_max":187} then the problem may be with Geckoboard somewhere. If you get an error on the GoSquared API, contact us on support#gosquared.com or message me here!
Geoff
GoSquared

Resources