Page 1 of 2

sendgrid mail too long

Posted: Sat Jan 09, 2016 2:33 am
by Carrie White

I string together text based on user input and send them an email. If the email is too large (not actually very large at all through), I receive this error "Failed to load resource: the server responded with a status of 414 (Request-URI Too Large)". How can I change things so that I can send a larger email?


sendgrid mail too long

Posted: Sat Jan 09, 2016 11:16 am
by Evgene Karachevtsev

Hello Carrie,

Please check this post: https://getsatisfaction.com/apperyio/...


sendgrid mail too long

Posted: Sat Jan 09, 2016 3:21 pm
by Carrie White

Thanks for your help.

So I tried to do the first step which is set up a new REST service http://prntscr.com/5m2r5s/direct. Two questions on this one. 1) Is the url literally "http://httpbin.org/post"? 2) I don't have the option in settings as shown. My only options are settings for data bases. I can't find in this thread the answer to why I don't have that option.

Again to reiterate, I am sending emails successfully until they reach a certain size limit.


sendgrid mail too long

Posted: Mon Jan 11, 2016 8:47 pm
by Serhii Kulibaba

Hello,

Could you check it in the native app without Appery.io proxy?


sendgrid mail too long

Posted: Wed Feb 24, 2016 11:51 pm
by Carrie White

What do you mean? Change the proxy settings to use default instead? That produces the same result.


sendgrid mail too long

Posted: Thu Feb 25, 2016 2:09 pm
by Illya Stepanov

Hi - Install binary package on the device without enabling the proxy and check it.


sendgrid mail too long

Posted: Wed Apr 06, 2016 9:22 pm
by Carrie White

same result. here is some info from the console that may help.
request method: post
request address: 54.221.205.233:443
status code: 414 request-url too large
version: http/1.1


sendgrid mail too long

Posted: Wed Apr 06, 2016 10:52 pm
by Yurii Orishchuk

Hi Carrie,

You get this error, cause of there is some limitation for url parameters.

Please try to move your "text" request parameter from "query string" request part to "body" part.

Here is a screen shot details:
1 "query string" part: http://prntscr.com/ap2456/direct
2 "body" part: http://prntscr.com/ap24mm/direct

Also, don't forget to reimplement your service datasource mapping.

Regards.


sendgrid mail too long

Posted: Thu Apr 07, 2016 5:14 am
by Carrie White

Thank you for your help! I thought we were getting somewhere as your answer makes sense, but the body part is not included in the email that is sent (even when testing the service). Is it because I cannot add the parameter on the body tab as you did in your example? See how mine is in screenshot. I used this tutorial as an example that doesn't show the steps for using the body in the request. https://devcenter.appery.io/documenta...

Image


sendgrid mail too long

Posted: Thu Apr 07, 2016 4:47 pm
by Serhii Kulibaba

Hello Carrie,

Please change "Request Content Type" from "Data" to "x-www-form-urlencoded" before that