# Wordpress User Migration Unexpected token '{'"

**URL:** <https://community.auth0.com/t/wordpress-user-migration-unexpected-token/66266>\
**Category:** Get Help\
**Tags:** user-migration, unexpected-token, wordpress\
**Created:** [July 16, 2021, 4:58am UTC](https://community.auth0.com/t/wordpress-user-migration-unexpected-token/66266 "2021-07-16T04:58:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tekhnevision](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tekhnevision/32/12714_2.png) [@tekhnevision](https://community.auth0.com/u/tekhnevision)\
**Post date:** [July 16, 2021, 4:58am UTC](https://community.auth0.com/t/wordpress-user-migration-unexpected-token/66266/1 "2021-07-16T04:58:35Z")

</div>

Hi,

I’m trying to set up gradual user migration and went through all the steps in this article, including the troubleshooting section: [https://auth0.com/docs/cms/wordpress-plugin/user-migration-in-login-by-auth0](https://auth0.com/docs/cms/wordpress-plugin/user-migration-in-login-by-auth0).

The “Get User” tab test works, but the “Login” tab test does not work. I get this error:  
“Invalid response code from the auth0-sandbox: HTTP 400. Unexpected token ‘{’”

I checked the migrationToken and the endpointUrl key values and they are correct.  
I searched the Auth0 Community for possible solutions, but have yet to find one.

Any help would be appreciated.

WordPress plugin version:4.2.0.  
Auth0 Free tier plan

-Jerime

---

<div class="post-metadata">

**Author:** ![tekhnevision](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tekhnevision/32/12714_2.png) [@tekhnevision](https://community.auth0.com/u/tekhnevision)\
**Post date:** [July 16, 2021, 6:30pm UTC](https://community.auth0.com/t/wordpress-user-migration-unexpected-token/66266/2 "2021-07-16T18:30:53Z")

</div>

Hello again,

This is the solution:  
As I was reviewing the script and re-reading the auth0 article I retrieved the instructions from, I noticed that the article has an incorrect link.

Step 8 reads: “Select the Login view, clear out the existing code, copy the db-login.js code from the GitHub repository, and paste it into the code editor.”

This sentence has a link, but the link actually points to db-get-user.js. Meaning that I was using the wrong script. I was able to find it by replacing the js name with the correct one in the URL.

Article link:  
[https://auth0.com/docs/cms/wordpress-plugin/user-migration-in-login-by-auth0?\_ga=2.154745776.985279639.1626237714-1600770031.1626237714&\_gl=1\*rh7kdo\*rollup\_ga\*MTYwMDc3MDAzMS4xNjI2MjM3NzE0\*rollup\_ga\_F1G3E656YZ\*MTYyNjQ0OTg3OS44LjEuMTYyNjQ1MDA1Mi4yOA](https://auth0.com/docs/cms/wordpress-plugin/user-migration-in-login-by-auth0?_ga=2.154745776.985279639.1626237714-1600770031.1626237714&_gl=1*rh7kdo*rollup_ga*MTYwMDc3MDAzMS4xNjI2MjM3NzE0*rollup_ga_F1G3E656YZ*MTYyNjQ0OTg3OS44LjEuMTYyNjQ1MDA1Mi4yOA)…

-Jerime

---

<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 29, 2021, 11:32am UTC](https://community.auth0.com/t/wordpress-user-migration-unexpected-token/66266/3 "2021-07-29T11:32:16Z")

</div>

Glad you have figured it out and thanks for sharing it 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 13, 2021, 11:32am UTC](https://community.auth0.com/t/wordpress-user-migration-unexpected-token/66266/4 "2021-08-13T11:32:50Z")

</div>

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