Skip to content

client.getSMS() always returns "Message|Not Receive" #2

Description

@anthowave

I'm using this package for getting sms code from Nike service.

Here is my code

const client = new GetSMSCodeClient({
      username: "username",
      token: "token",
      domain: country === "US" ? "usa" : "china"
});

await sleep(500);
const number = await client.getNumber({
     service: "nike"
});

await sleep(30000);
let sms = await client.getSMS({
    service: "nike",
    number: number
});

It always produces appropriate phone number.

I enter this phone number in the particular field on Nike website, and hit 'Send code' button
Then, I try to get sms code from this code, but it always returns 'Message|Not Receive'.

I also used other getsmscode account to see if this was due to account issue. But there was no change.

I want to fix this issue. Welcome any comments.
Additionally, if you have ever used this package for automation service, please share your experience about how to wait efficiently before getting sms code in your program.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions