Skip to content

Shock not send due to weird intensity value #2

Description

@miterosan
(12/11/2025 23:50:54) [Everest] [Info] [OpenshockModule] Sending for 1 device
(12/11/2025 23:50:54) [Everest] [Info] [OpenshockModule] POST https://api.openshock.app/2/shockers/control
(12/11/2025 23:50:54) [Everest] [Info] [OpenshockModule] - OpenShockToken: ****************************************************************
(12/11/2025 23:50:54) [Everest] [Info] [OpenshockModule] - User-Agent: Celeste-OpenShock-Mod/1.0
(12/11/2025 23:50:54) [Everest] [Info] [OpenshockModule] 
(12/11/2025 23:50:54) [Everest] [Info] [OpenshockModule] {"shocks":[{"id":"CENSORED","type":1,"intensity":16738,"duration":21200}],"customName":"Celeste Openshock"}
(12/11/2025 23:50:54) [Everest] [Error] [OpenshockModule] Failed to send shock to 'https://api.openshock.app/2/shockers/control': Status Code BadRequest
(12/11/2025 23:50:54) [Everest] [Error] [OpenshockModule] => {"type":"Validation.Error","title":"One or more validation errors occurred","status":400,"errors":{"body":["The body field is required."],"$.shocks[0].intensity":["The JSON value could not be converted to System.Byte. Path: $.shocks[0].intensity | LineNumber: 0 | BytePositionInLine: 82."]},"message":"One or more validation errors occurred","traceId":"CENSORED","requestId":"CENSORED"}
(

Config:

Toggle: true
DebugLog: false
ApiKey: CENSORED
ApiBaseUrl: https://api.openshock.app/
IntensityMode: Range
IntensityRangeMinimum: 1
IntensityRangeMaximum: 30000
IntensityStatic: 300
DurationMode: Range
DurationRangeMinimum: 1
DurationRangeMaximum: 30
DurationStatic: 1
ShockMode: All
ShockerSingle: ''
ShockerList:
- CENSORED

Setting the max-intensity to 99 ingame fixes this for some reason

Maybe weird defaults?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions