ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 404
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
This due an invalid configuration.
Ahhh, any recommendations on how to fix?
Actually, I wonder if ST is having platform issues again and the endpoint in the smartapp is not responding.
Everything seems to work correctly, but I don't like having errors in my logs.
well, that's almost impossible to expect.
In this case, the plugin is unable to reach the smartthings app in the cloud.
Anything I can do to help troubleshoot?
verify the config data in the smart app matches the info in the config.json for homebridge
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.
@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.
I am getting this error
ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 401
any ideas?