mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.29k stars 175 forks source link

Code login error #645

Closed pablotoribio-beta closed 1 year ago

pablotoribio-beta commented 1 year ago

When i try to login by 8 digit code i got this error: Failed to start phone code login: info query returned status 400: bad-request

in the config file i setup this parameters:

Config for things that are directly sent to WhatsApp.

whatsapp:

Device name that's shown in the "WhatsApp Web" section in the mobile app.

os_name: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0
# Browser name that determines the logo shown in the mobile app.
# Must be "unknown" for a generic icon or a valid browser name if you want a specific icon.
# List of valid browser names: https://github.com/tulir/whatsmeow/blob/efc632c008604016ddde63bfcfca8de4e5304da9/binary/proto/def.proto#L43-L64
browser_name: firefox

Im doing something wrong?

tulir commented 1 year ago

It's mentioned in the release notes and was already fixed

rnhmjoj commented 1 year ago

What is this "specific way" you mention in the release notes?

rnhmjoj commented 1 year ago

Ok, found this commit: setting os_name: "Chrome (Linux)" worked.