[BUG] Mobile registration Not working status code 405 method not allowed - V6.6.0 and target version: [2, 2413, 1]
azartheen opened this issue · comments
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Created a new connection using baileys
- its showing error in terminal of 405 method not allowed
Expected behavior
its should show QR code
Environment (please complete the following information):
-
Is this on a server? both
-
What do your
connectOptions
look like?
{
defaultQueryTimeoutMs: false,
printQRInTerminal: false,
logger: pino({
level: config.log.level,
}),
version: [2, 2413, 1],
browser: Object.values(config.browser),
} -
Do you have multiple clients on the same IP? NO
-
Are you using a proxy? NO
Additional context
iam facing this issue overa last two days could able to resolve it
i went to some of the open issue same as this before, tired all the solution still i got this
note : its kind of blocker to proceed further @arccoza @barkerpedro @galiazzi @javiercr @ingro
what will be the permeant fix if suppose in future i got the same statuscode 405 error come ? do i need to clear the exisitng all connection then how do i proceed ?
The target version is wrong, the correct target version is [2,2413,51]
thanks working now but after this now i got different issue
{
"data": {
"tag": "stream:error",
"attrs": {
"code": "401"
},
"content": [
{
"tag": "conflict",
"attrs": {
"type": "device_removed"
}
}
]
},
"isBoom": true,
"isServer": false,
"output": {
"statusCode": 401,
"payload": {
"statusCode": 401,
"error": "Unauthorized",
"message": "Stream Errored (conflict)"
},
"headers": {}
}
}
@xbnfz01 what is this refer to Stream Errored (conflict) ?
add this too
{
"data": {
"tag": "stream:error",
"attrs": {
"code": "516"
}
},
"isBoom": true,
"isServer": true,
"output": {
"statusCode": 516,
"payload": {
"statusCode": 516,
"error": "Unknown",
"message": "Stream Errored (unknown)"
},
"headers": {}
}
}
@xbnfz01 @arccoza @barkerpedro @galiazzi any tip to resolve this issue, if its temporary then also good !
add this too
{ "data": { "tag": "stream:error", "attrs": { "code": "516" } }, "isBoom": true, "isServer": true, "output": { "statusCode": 516, "payload": { "statusCode": 516, "error": "Unknown", "message": "Stream Errored (unknown)" }, "headers": {} } }
@xbnfz01 @arccoza @barkerpedro @galiazzi any tip to resolve this issue, if its temporary then also good !
I believe this is related to this issue #782