I'm responding from my phone. I apologize...
Ua->get(...)->res->error->{message}
Two different runs gave two different answers: time out, header too large
Hope that helps!
On Jul 16, 2015 6:19 PM, "Pavel Serikov" <[email protected]> wrote:
> Hi Stefan, could you please tell me where did you see that two errors
> ("Maximum header size exceeded" and "Inactivity timeout")? How did you
> debug Mojo::UserAgent request?
>
> P.S. Thank you for idea with curl, I will try that.
>
> четверг, 16 июля 2015 г., 18:30:59 UTC+3 пользователь Stefan Adams написал:
>>
>>
>> On Thu, Jul 16, 2015 at 2:56 AM, Pavel Serikov <[email protected]>
>> wrote:
>>
>>> If I change to *filter[posts_per_page]' => '150'* in script above - it
>>> works.
>>>
>>> Does the Mojo::UserAgent have any log to see what's wrong and what's an
>>> error message?
>>>
>>
>> I'm seeing two errors: "Maximum header size exceeded" and "Inactivity
>> timeout"
>>
>> With the -1 parameter value, you're asking for a lot from the server.
>> It's taking around 20 seconds. You might need to increase the
>> MOJO_INACTIVITY_TIMEOUT environment variable to greater than 20 seconds.
>>
>> For the maximum header size exceeded, I'm seeing some weird stuff in the
>> header. Use curl to inspect the raw header:
>>
>> $ curl -I -g '
>> http://klishe.ru/wp-json/posts?filter[post_status]=publish&filter[category_name]=производители&filter[posts_per_page]=-1&filter[nopaging]=true&filter[order]=ASC
>> '
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.