Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Parse error: Unexpected EOF #16082

Closed
AAGSICON opened this issue Sep 25, 2017 · 4 comments
Closed

JSON Parse error: Unexpected EOF #16082

AAGSICON opened this issue Sep 25, 2017 · 4 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@AAGSICON
Copy link

screenshot_2017-09-25-11-30-44-21

var SERVER_SIGNUP_URL = 'http://192.168.0.80/Registration/Registration.php';

              fetch(SERVER_SIGNUP_URL + '?username=' + this.state.username + '&password=' + this.state.password)
              .then((response) => response.json())
              .then((responseData) => {
                var id = responseData.id;
                if (id === -1) {
                  this.hideProgressBar();
                  showMessage("Something is bad", "This username is already taken");
                }
                else {
                  this.props.navigator.push({
                    name: 'contacts',
                    password: this.state.password,
                    id: id,
                    username: this.state.username
                  });
                }
              })
        .done();
@vonovak
Copy link
Contributor

vonovak commented Oct 4, 2017

there is very likely a bug in your code, you may want to debug it in chrome, or print some console statements

@pull-bot
Copy link

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Oct 10, 2017
@Martian2Lee
Copy link

Martian2Lee commented Aug 12, 2018

Try change http:// to https://.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 10, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants