tonesto7 / homebridge-smartthings

SmartThings Homebridge Plugin
385 stars 767 forks source link

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

Open potancen opened 4 years ago

potancen commented 4 years ago

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!


About Your Setup

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

tonesto7 commented 4 years ago

This due an invalid configuration.

potancen commented 4 years ago

Ahhh, any recommendations on how to fix?

tonesto7 commented 4 years ago

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

potancen commented 4 years ago

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

tonesto7 commented 4 years ago

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

potancen commented 4 years ago

Anything I can do to help troubleshoot?

tonesto7 commented 4 years ago

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

JJJ commented 4 years ago

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 commented 4 years ago

@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.

jredondox commented 3 years ago

I am getting this error

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

any ideas?