Skip to content

[Clockodo] Start Clock fails with "External application header longer than 50 characters" for users with email > 33 chars #28031

@elemnt87

Description

@elemnt87

Extension

https://www.raycast.com/leomelzer/clockodo

Raycast Version

0.60.1.0

OS Version

Tahoe 26.4.1 arm64

Description

Error: External application header "Raycast Clockodo;XXX" is longer than 50 characters (was 53). Please use a shorter name.

set config:api.ts:190:14


187: const externalApplication = ${name};${email};
188:
189: if (externalApplication.length > EXTERNAL_APPLICATION_HEADER_MAX_LENGTH) {
190: throw new Error(
^
191: External application header "${externalApplication}" is longer than ${EXTERNAL_APPLICATION_HEADER_MAX_LENGTH} characters (was ${externalApplication.length}). Please use a shorter name.,
192: );
193: }
194:


JavaScript Stack
set config:api.ts:190:14
Kn:start-clock.js:25:7613
Jn:start-clock.js:25:12897
Object.:start-clock.js:25:27538

Steps To Reproduce

  1. Install the Clockodo extension from the Raycast Store.
  2. In Settings → Extensions → Clockodo, enter:
    • Account Email: any email address that is 34 characters or longer (e.g. firstname.lastname@longer-company.com)
    • API Token: a valid Clockodo API token
  3. Run the Start Clock command (or any other command that calls the Clockodo API).
  4. Observe the error toast.

Current Behaviour

The command fails immediately with this error:
External application header "Raycast Clockodo;<my-email>" is longer than 50 characters (was 53). Please use a shorter name.

Root cause: src/clockodo.ts hardcodes client.name = "Raycast Clockodo" (16 chars). The clockodo SDK builds the X-Clockodo-External-Application header as ${name};${email}, which the Clockodo API rejects when it exceeds 50 characters. With the literal "Raycast Clockodo" + a semicolon (17 chars combined), only emails ≤ 33 characters work today.

Every command that talks to the Clockodo API (Start Clock, Stop Clock, Get Recent Entries, Week Overview, etc.) is unusable for users with longer email addresses.

Environment: Raycast 2.0 beta (macOS), latest store version of the Clockodo extension.

Expected Behaviour

The extension should work for users with any valid email length.

Suggested fix in extensions/clockodo/src/clockodo.ts (line 8):

diff
     client: {
  -    name: "Raycast Clockodo",
  +    name: "Raycast",
       email: preferences.accountEmail,
     },

"Raycast" (7 chars) leaves 42 characters for the email, which fits the SDK's 50-character limit comfortably for all realistic emails.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingextensionIssues related to one of the extensions in the Storeextension: clockodoIssues related to the clockodo extension

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions