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

cannot check if a phone number is on whatsapp or not - METHOD NOT IMPLEMENTED BY THE ENGINE #37

Closed
behind24proxies opened this issue Dec 22, 2022 · 6 comments
Labels
enhancement New feature or request waha:CORE Relates to WAHA Core version

Comments

@behind24proxies
Copy link

hi every time that I check if a phone number is on whatsapp I get a 422

{
  "statusCode": 422,
  "message": "The method is not implemented by the engine.",
  "error": "Unprocessable Entity"
}

I tried using both engines, but with VENOM , it's worse , it returns a 500

@allburov allburov added bug Something isn't working enhancement New feature or request waha:CORE Relates to WAHA Core version and removed bug Something isn't working labels Dec 23, 2022
@allburov
Copy link
Contributor

it returns a 500

Could you share the full response please?

@behind24proxies
Copy link
Author

hi, so , yesterday it was giving me 500
now it's working fine with VENOM.

how many number verifications/checks can I do before getting banned ?

@behind24proxies
Copy link
Author

okay, it's coming again
image

@behind24proxies
Copy link
Author

okay , after debugging I found the problem and the solution :

The issue is that when a check_phone_number request is made before the webhooks are initialized on the server, it does not return a response. In other cases, the response contains an error stating that the server cannot read the properties of the WhatsApp service and is unable to retrieve the check_number.

Upon further investigation, it was determined that when the check_phone_number request is made before the websockets are fully loaded on the server, it causes a freeze in the docker container, which prevents the server from being able to send messages afterwards. However, the server is still able to refresh the Swagger UI.

To resolve this issue, it is recommended to ensure that the webhooks are fully initialized on the server before making the endpoints available for the , in order to avoid the freeze in the docker container.

@allburov
Copy link
Contributor

allburov commented Jan 9, 2023

Hi! We've added contacts endpoints in WAHA

Right now it supports:

  • Get all contacts or a single one
  • Get "about" contact (aka status)
  • Get contact's profile picture
  • Check phone number is registered in WhatsApp (works even if the number is not in your contact list)
  • Block and unblock contacts

It supports default engine, so no needs to use venom for phone number check. Please have a look, it may help you!

The endpoints are available in WAHA Plus 2023.1 version and we'll add them in Core version in February 2023

@allburov allburov closed this as completed Jan 9, 2023
@allburov
Copy link
Contributor

allburov commented Jan 9, 2023

To resolve this issue, it is recommended to ensure that the webhooks are fully initialized on the server before making the endpoints available for the , in order to avoid the freeze in the docker container.

Great idea, thank you! We'll work on that #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request waha:CORE Relates to WAHA Core version
Projects
None yet
Development

No branches or pull requests

2 participants