Carrie White
Posts: 0
Joined: Mon Sep 14, 2015 11:29 pm

sendgrid mail too long

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

sendgrid mail too long

Hello Carrie,

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

Carrie White
Posts: 0
Joined: Mon Sep 14, 2015 11:29 pm

sendgrid mail too long

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

sendgrid mail too long

Hello,

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

Carrie White
Posts: 0
Joined: Mon Sep 14, 2015 11:29 pm

sendgrid mail too long

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

sendgrid mail too long

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

Carrie White
Posts: 0
Joined: Mon Sep 14, 2015 11:29 pm

sendgrid mail too long

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

sendgrid mail too long

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.

Carrie White
Posts: 0
Joined: Mon Sep 14, 2015 11:29 pm

sendgrid mail too long

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

sendgrid mail too long

Hello Carrie,

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

Return to “Issues”