homebridge-smartthings icon indicating copy to clipboard operation
homebridge-smartthings copied to clipboard

ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 404

Open potancen opened this issue 5 years ago • 10 comments

Verify the following before opening an trouble issue

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

  • [ X] That OAuth is Enabled for the SmartApp under the IDE.
  • [ X] The SmartApp and Device Handler are using the latest code available.
  • [ X] That Both the SmartApps and Device Handlers have been Published for You in the IDE.

About Your Setup

  • How many devices are detected?:18
  • Mobile App Version(Not required):
  • SmartApp Version:
  • Device Handler Version:
  • Homebridge Version:
  • NodeJS Version:

Expected Behavior

Tell us what you think should be happening

Current Behavior

I'm recieving the error "ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 404"

LOGS: INFO: Fetching SmartThings-v2 Devices. NOTICE: This may take a moment if you have a large number of device data is being loaded! GOOD: Refreshing All Device Data | Source: (First Launch) NOTICE: Temperature Unit is Now: (F) NOTICE: Updating Global Values | HubIP: IP ADDRESS| UseLocal: false WARN: Devices to Remove: (0) [] INFO: Devices to Update: (18) GOOD: Devices to Create: (0) [] ALERT: Total Initialization Time: (1 seconds) NOTICE: Unknown Capabilities: ["Health Check","Indicator"] INFO: SmartThings DeviceCache Size: (18) INFO: WebServer Initiated... INFO: Sending StartDirect Request to SmartThings | SendToLocalHub: (false) INFO: Direct Connect Active | Listening at IP ADDRESS:8000 ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 404

potancen avatar Apr 28 '20 17:04 potancen

This due an invalid configuration.

tonesto7 avatar Apr 28 '20 18:04 tonesto7

Ahhh, any recommendations on how to fix?

potancen avatar Apr 28 '20 18:04 potancen

Actually, I wonder if ST is having platform issues again and the endpoint in the smartapp is not responding.

tonesto7 avatar Apr 28 '20 19:04 tonesto7

Everything seems to work correctly, but I don't like having errors in my logs.

potancen avatar Apr 28 '20 19:04 potancen

well, that's almost impossible to expect.
In this case, the plugin is unable to reach the smartthings app in the cloud.

tonesto7 avatar Apr 28 '20 19:04 tonesto7

Anything I can do to help troubleshoot?

potancen avatar Apr 28 '20 19:04 potancen

verify the config data in the smart app matches the info in the config.json for homebridge

tonesto7 avatar May 02 '20 22:05 tonesto7

Got here via searching GitHub for sendStartDirect.

I'm seeing:

[SmartThings-v2] ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 405

Request failed with status code XXX is apparently a Node message. HTTP error code 405 is related to using the wrong request type, like GET instead of POST.

Going to double check my configuration and will report back.

JJJ avatar May 12 '20 20:05 JJJ

@potancen I was able to confirm what @tonesto7 recommended and get my shades working again.

I made sure everything was completely up-to-date (iOS app, Homebridge, all plugins, SmartThings app, etc...) then I recreated a new access token for this app, saved, and everything is now working OK here.

JJJ avatar May 12 '20 20:05 JJJ

I am getting this error

ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 401

any ideas?

jredondox avatar Mar 11 '21 02:03 jredondox