Skip to content

Unauthorized today worked fine two days ago #459

@CameronVetter

Description

@CameronVetter

Analysis

It appears that the API is currently broken. I wrote a simple console app c# a couple days ago. It was the sample from the front page of this repo with my token and secret filled in. It worked fine first try. Yesterday (and today) I tried the same sample again and I get 401 back. I even tried generating a new secret and still got the 401. It appears that the API is in a broken state.

Expected Behavior

API responds to sample with a JSON payload

Steps To Reproduce

  1. Cut and paste c# example into console application.
  2. Get token and secret from SwitchBot App (Android) and paste into c# application
  3. Run application and get 401 back.

Logs

Response is:
{
  "message": "Unauthorized"
}

Configuration

NA

Environment

  • OS: Windows 11
  • Software: Visual Studio 2026

Additional Context

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions