Skip to content

Error code 151 on login after applying PR #29 fixes #32

Description

@Pompeijwag

Error code 151 on login after applying PR #29

Environment:

Even starting from this PR, I found that gateway discovery step still hangs and never compeletes. So I have hardcoded an endpoint instead:

endpoint = "wss://route-2.maj-soul.com/gateway"

The main issue I have is the error 151. After getting the connection working, every login attempt returns error code 151 with json_param: {"version_str": "web-0.11.252"}. I have tried both version and force_version from the version.json response (web-0.11.252 and web-0.10.0) and all gateways from the config (route-2 through route-6), all result in the same error.

I can see error 151 has been reported before in issue #12, with earlier was a result of a version mismatch if I understand correctly? Maybe I am missing something. Is this something that you can help me with?

Full log output:

2026-06-04 11:40:05 INFO: Version: {'version': '0.11.252.w', 'force_version': '0.10.0.w', 'code': 'v0.11.252.w/code.js'}
2026-06-04 11:40:05 INFO: Chosen endpoint: wss://route-2.maj-soul.com/gateway
2026-06-04 11:40:05 INFO: Connection was established
2026-06-04 11:40:06 ERROR: Login Error:
2026-06-04 11:40:06 ERROR: code: 151
json_param: "{\"version_str\":\"web-0.11.252\"}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions