Oauth 411 Length Required Error

515 views
Skip to first unread message

rizwan....@shiplinx.com

unread,
Sep 2, 2018, 4:21:06 PM9/2/18
to Etsy API
Hi,
We have been connecting to the Etsy API for a couple of years now, and we use Oauth to request a token.
Lately we have been seeing an error as follows:

Service provider responded in error: 411 (Length Required)

We are not able to generate a token using our API key and Secret, and nothing has changed on our side. 

I read in one of the other posts that this was due to an issue on the Etsy side and was fixed in 2017. Has the issue resurfaced?

Thanks,
-Rizwan.



karlis...@printful.com

unread,
Sep 9, 2018, 11:45:38 AM9/9/18
to Etsy API
I managed to trace this issue to php oauth's built in getRequestToken method. If you instead use the regular fetch and pass the other params manually it works fine.

joel@syncommerceapp

unread,
Sep 9, 2018, 11:45:38 AM9/9/18
to Etsy API
Have been having the same issue for the past two weeks.

bo...@greenchairpress.com

unread,
Sep 9, 2018, 11:45:38 AM9/9/18
to Etsy API
I had this problem too. I use php & oauth.  It is fixed by adding

$oauth->setAuthType(OAUTH_AUTH_TYPE_FORM);

before I call do $oauth->fetch(...)

William Gilligan

unread,
Sep 25, 2018, 10:38:14 AM9/25/18
to Etsy API
I added this to my headers and no good.
Still getting the error. ideas?

Etsy Developer Community

unread,
Sep 25, 2018, 10:41:46 AM9/25/18
to Etsy API
Due to recent updates, you will now have to specify the GET method when using Oauth. Here's an example:
​$req_token = $oauth->getRequestToken("https://openapi.etsy.com/v2/oauth/request_token?scope=email_r%20listings_r", 'oob', "GET");
$acc_token = $oauth->getAccessToken("https://openapi.etsy.com/v2/oauth/access_token", null, $verifier, "GET");​

William Gilligan

unread,
Sep 26, 2018, 11:06:30 AM9/26/18
to Etsy API

Do this generates the following error every time… post works 50% maybe….:

 

oauth_problem=signature_invalid&debug_sbs=GET……….

William Gilligan

unread,
Sep 26, 2018, 11:06:30 AM9/26/18
to Etsy API
I have updated my code, and it now works 80% of the time.
2 out of roughly every 10 calls result in an invalid signature...



On Tuesday, September 25, 2018 at 10:41:46 AM UTC-4, Etsy Developer Community wrote:

William Gilligan

unread,
Sep 26, 2018, 11:06:30 AM9/26/18
to etsy-...@googlegroups.com

Do this generates the following error every time… post works 50% maybe….:

 

oauth_problem=signature_invalid&debug_sbs=GET……….

 

 

 

 

--
You received this message because you are subscribed to a topic in the Google Groups "Etsy API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/etsy-api-v2/KOqJoIxQP14/unsubscribe.
To unsubscribe from this group and all its topics, send an email to etsy-api-v2...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages