# Authentication Social Signup succeeds only on seconds request

**URL:** <https://community.auth0.com/t/authentication-social-signup-succeeds-only-on-seconds-request/67055>\
**Category:** Get Help\
**Tags:** social\
**Created:** [July 29, 2021, 5:01pm UTC](https://community.auth0.com/t/authentication-social-signup-succeeds-only-on-seconds-request/67055 "2021-07-29T17:01:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergey.lukin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sergey.lukin/32/30838_2.png) [@sergey.lukin](https://community.auth0.com/u/sergey.lukin)\
**Post date:** [July 29, 2021, 5:01pm UTC](https://community.auth0.com/t/authentication-social-signup-succeeds-only-on-seconds-request/67055/1 "2021-07-29T17:01:14Z")

</div>

Hi,  
am not sure whether this is new or not (most likely new as during development phase we’d have noticed that), but when social (Gmail / Github) signup is used the first request (after the chain of auth → G → auth/login → auth/resume → myapp chain of requests) results in following URL:

[http://myapp:3000/#error=access\_denied&error\_description=The%20first%20argument%20must%20be%20of%20type%20string%20or%20an%20instance%20of%20Buffer%20or%20Uint8Array.%20Received%20an%20instance%20of%20Object](http://myapp:3000/#error=access_denied&error_description=The%20first%20argument%20must%20be%20of%20type%20string%20or%20an%20instance%20of%20Buffer%20or%20Uint8Array.%20Received%20an%20instance%20of%20Object)

which translated into:

The first argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object

(I can see new user account in auth0)

…while the second click on same social method signup successfully finishes the flow.

What is it related to? How to solve it?  
Please advise

---

<div class="post-metadata">

**Author:** ![sergey.lukin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sergey.lukin/32/30838_2.png) [@sergey.lukin](https://community.auth0.com/u/sergey.lukin)\
**Post date:** [July 29, 2021, 8:40pm UTC](https://community.auth0.com/t/authentication-social-signup-succeeds-only-on-seconds-request/67055/2 "2021-07-29T20:40:34Z")

</div>

What I’ve noticed is when I disable some of my Auth pipeline rules I get it working, have tried multiple variations of enabled rules, it fails once more than 4 rules are enabled (in different combinations, none single rule leads to mentioned above situation specifically, only when \>4 are enabled simultaneously).  
Is there a limit on rules I’m not aware of that causes this?  
Still trying to fix it by trial & error but so far nothing makes sense to me.  
Any help appreciated

---

<div class="post-metadata">

**Author:** ![sergey.lukin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sergey.lukin/32/30838_2.png) [@sergey.lukin](https://community.auth0.com/u/sergey.lukin)\
**Post date:** [July 29, 2021, 11:48pm UTC](https://community.auth0.com/t/authentication-social-signup-succeeds-only-on-seconds-request/67055/3 "2021-07-29T23:48:30Z")

</div>

Answering my own question. It was triggered by bad HTTP request implementation:

```auto
            request.get(
            {
                url: 'https://example.com,
                body: {
                    data: Buffer.from(JSON.stringify({ foo: 'bar' })).toString('base64'),
                },
            }

```

can you spot the problem?

…

the problem is HTTP GET request has query parameters rather than BODY, so the fix was:

```auto
            request.get(
            {
                url: 'https://example.com,
                qs: {
                    data: Buffer.from(JSON.stringify({ foo: 'bar' })).toString('base64'),
                },
            }

```

Hope that helps!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 30, 2021, 6:20am UTC](https://community.auth0.com/t/authentication-social-signup-succeeds-only-on-seconds-request/67055/4 "2021-07-30T06:20:51Z")

</div>

Glad you figured it out and thanks for sharing with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 14, 2021, 6:21am UTC](https://community.auth0.com/t/authentication-social-signup-succeeds-only-on-seconds-request/67055/5 "2021-08-14T06:21:44Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
