Bad return code: Unauthorized

LeeButler
Posts: 22
Joined: Thu Jan 08, 2015 1:44 am

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

Post by LeeButler »

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)
t-star
Posts: 127
Joined: Fri Oct 26, 2007 9:56 pm

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

Post by t-star »

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)
User avatar
FlyingDiver
Posts: 7323
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

Post by FlyingDiver »

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
LeeButler
Posts: 22
Joined: Thu Jan 08, 2015 1:44 am

Re: Bad return code: Unauthorized

Post by LeeButler »

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.
User avatar
FlyingDiver
Posts: 7323
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7323
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

Post by FlyingDiver »

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
LeeButler
Posts: 22
Joined: Thu Jan 08, 2015 1:44 am

Re: Bad return code: Unauthorized

Post by LeeButler »

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??
LeeButler
Posts: 22
Joined: Thu Jan 08, 2015 1:44 am

Re: Bad return code: Unauthorized

Post by LeeButler »

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...
User avatar
jay (support)
Site Admin
Posts: 18411
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Bad return code: Unauthorized

Post by jay (support) »

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
User avatar
FlyingDiver
Posts: 7323
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7323
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Bad return code: Unauthorized

Post by FlyingDiver »

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
jon
Posts: 40
Joined: Thu Jul 27, 2017 8:17 pm

Re: Bad return code: Unauthorized

Post by jon »

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.
bkmar1192
Posts: 274
Joined: Sat Sep 12, 2015 11:23 am

Re: Bad return code: Unauthorized

Post by bkmar1192 »

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


Sent from my iPhone using Tapatalk
NewfD90
Posts: 61
Joined: Fri Mar 17, 2017 10:18 am

Re: Bad return code: Unauthorized

Post by NewfD90 »

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

No subscribed services. Chamberlain.
Locked

Return to “MyQ”