Bad return code: Unauthorized

Posted on
Sun Nov 05, 2017 9:56 pm
LeeButler offline
Posts: 22
Joined: Jan 08, 2015

Re: getting error: getDevices: Bad return code: Unauthorized

I get the error when I use Chamberlain or LiftMaster. The debug log says "myqLogin successfull" then errors out.

Started plugin "MyQ 7.1.8"
MyQ Starting MyQ
MyQ Debug updateFrequency = 86400.0
MyQ Debug statusFrequency = 300.0
MyQ Debug deviceStartComm: Garage Door 1: Device Version is up to date
MyQ Debug deviceStartComm: Adding Device Garage Door 1 (1051505904) to MyQ device list
MyQ Debug deviceStartComm: Garage Door 2: Device Version is up to date
MyQ Debug deviceStartComm: Adding Device Garage Door 2 (967123630) to MyQ device list
MyQ Debug deviceStartComm: Garage Door 3: Device Version is up to date
MyQ Debug deviceStartComm: Adding Device Garage Door 3 (667359148) to MyQ device list
MyQ Checking for updates...
MyQ Debug Plugin version detected: 7.1.8
MyQ Debug Current version is: 7.1.8
MyQ Debug Getting latest release from FlyingDiver/Indigo-MyQ...
MyQ Debug GET /repos/FlyingDiver/Indigo-MyQ/releases/latest
MyQ Debug HTTP 200 OK
MyQ Debug Latest release is: 7.1.8
MyQ No updates are available
MyQ Debug myqLogin successfull
MyQ Error getDevices: Bad return code: Unauthorized (216)

Posted on
Mon Nov 06, 2017 4:36 pm
t-star offline
Posts: 115
Joined: Oct 26, 2007

Re: getting error: getDevices: Bad return code: Unauthorized

liftmaster and chamberlain gives the same error:
getDevices: Bad return code: Unauthorized (216)

Craftsman gives:
myqLogin failure, Bad return code: The username or password you entered is incorrect. Try again. (203)

Posted on
Mon Nov 06, 2017 7:01 pm
FlyingDiver offline
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

Here's what I know about this problem:


  1. It's effecting some subset of the user base. I cannot replicate the issue myself.
  2. It effects Chamberlain and Liftmaster, which are the same thing under the covers. They use the same website URLs. Craftsman is different, but no reports on those yet.
  3. It's not a login issue. The username/password work, but they're just not allowed to make the API calls the plugin uses.
  4. So far I haven't seen any reports on this from other projects that use the same API.

The API the plugin uses is NOT an official MyQ one. It was reverse engineered and all I did was replicate the API calls from other GitHub projects. There is no avenue to contact anyone at MyQ about this. Nor any documentation available about the error message.

At this point, the only suggestion I can make for users encountering this error is to try a new user account. Which means you'll need to delete the openers from your current MyQ account, create a new one with a different email address, then add the openers to the new account. This MIGHT help. Or it might not. Good luck.

This is why the Indigo team doesn't use unofficial APIs in their supported plugins. And why I don't do plugins for pay.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Nov 08, 2017 1:33 pm
LeeButler offline
Posts: 22
Joined: Jan 08, 2015

Re: Bad return code: Unauthorized

For what it is worth, I am also running Homebridge with the Homebridge-Chamberlain plugin that bridges MyQ to Apple Homekit and that plug-in also cannot get a list of devices from https://www.mychamberlain.com although there is no login failure.

Posted on
Wed Nov 08, 2017 2:14 pm
FlyingDiver offline
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

LeeButler wrote:
For what it is worth, I am also running Homebridge with the Homebridge-Chamberlain plugin that bridges MyQ to Apple Homekit and that plug-in also cannot get a list of devices from https://www.mychamberlain.com although there is no login failure.


Sounds like the exact same problem. Where did you get the Homebridge-Chamberlain plugin from?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Nov 08, 2017 11:43 pm
LeeButler offline
Posts: 22
Joined: Jan 08, 2015

Re: Bad return code: Unauthorized


Posted on
Thu Nov 09, 2017 7:11 am
FlyingDiver offline
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

I checked all the other MyQ/Chamberlain projects on Github, and none of them have anything about this error.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Nov 09, 2017 11:39 am
LeeButler offline
Posts: 22
Joined: Jan 08, 2015

Re: Bad return code: Unauthorized

Just discovered that the latest MyQ iPhone app lets you subscribed to Chamberlain integration services (https://myqservices.com) that include IFTTT, Google Home and Alpine Connect.

Are the folks that are still working subscribed to one of those services??

Posted on
Thu Nov 09, 2017 12:39 pm
LeeButler offline
Posts: 22
Joined: Jan 08, 2015

Re: Bad return code: Unauthorized

Found a newer Liftmaster homebridge plug-in at https://github.com/luisiam/homebridge-liftmaster2. That one is working correctly on my system. Should work for Chamberlain since they use the same webservice destination.

I am still getting the 216 error in the MyQ Indigo plugin, so the homebridge plugin working is not due to a MyQ service issue being resolved...

Don't know if it is the same error, but the Liftmaster2 github log has a fix for "No Door Found" at https://github.com/luisiam/homebridge-l ... /issues/17. Maybe that will help...

Posted on
Thu Nov 09, 2017 10:43 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Bad return code: Unauthorized

LeeButler wrote:
Are the folks that are still working subscribed to one of those services??


Nope -at least not that I'm aware of...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Nov 10, 2017 4:17 am
FlyingDiver offline
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

LeeButler wrote:
Just discovered that the latest MyQ iPhone app lets you subscribed to Chamberlain integration services (https://myqservices.com) that include IFTTT, Google Home and Alpine Connect.

Are the folks that are still working subscribed to one of those services??


Not me.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Nov 10, 2017 4:26 am
FlyingDiver offline
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

LeeButler wrote:
Don't know if it is the same error, but the Liftmaster2 github log has a fix for "No Door Found" at https://github.com/luisiam/homebridge-l ... /issues/17. Maybe that will help...


Not the same error. No help there.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Nov 10, 2017 9:56 pm
jon offline
Posts: 40
Joined: Jul 27, 2017

Re: Bad return code: Unauthorized

I'm seeing that error too now. Was working fine earlier today, then the error started happening just before 11am.

I didn't touch anything in Indigo, and remote control via the MyQ app still works.

Posted on
Mon Nov 13, 2017 10:57 am
bkmar1192 offline
Posts: 274
Joined: Sep 12, 2015

Re: Bad return code: Unauthorized

Sorry to say but I am also getting this error. Started a couple of days ago.


Sent from my iPhone using Tapatalk

Posted on
Wed Nov 22, 2017 6:41 pm
NewfD90 offline
Posts: 61
Joined: Mar 17, 2017

Re: Bad return code: Unauthorized

I am also getting the error now. It started yesterday afternoon.

No subscribed services. Chamberlain.

Who is online

Users browsing this forum: No registered users and 2 guests