Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluelink: Fix missing header on register call #5324

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

panzerdev
Copy link
Contributor

https://github.com/Hacksore/bluelinky/blob/d085c5eccdd5d3edda29451796b1bb37bd4e35b5/src/controllers/european.controller.ts#L170

Call doesn't work without the header 'ccsp-application-id'. Tested locally.

curl -v -X POST https://prd.eu-ccapi.hyundai.com:8080/api/v1/spa/notifications/register -d '{"pushRegId":"1","pushType":"GCM","uuid":"7359b249-66d0-4631-9d00-0e975f716d9c"}' -H 'Content-Type: application/json;charset=UTF-8' -H 'ccsp-service-id: 6d477c38-3ca4-4cf3-9557-2a1929a94654' -H 'ccsp-application-id: 014d2225-8495-4735-812d-2616334fd15d'

is working

vs

curl -v -X POST https://prd.eu-ccapi.hyundai.com:8080/api/v1/spa/notifications/register -d '{"pushRegId":"1","pushType":"GCM","uuid":"7359b249-66d0-4631-9d00-0e975f716d9c"}' -H 'Content-Type: application/json;charset=UTF-8' -H 'ccsp-service-id: 6d477c38-3ca4-4cf3-9557-2a1929a94654'

is not working

@panzerdev
Copy link
Contributor Author

@andig please have a quick look. Hyundai and Kia car integration is broken right now without this.

@andig andig merged commit ab57a85 into evcc-io:master Nov 30, 2022
@andig andig added the bug Something isn't working label Nov 30, 2022
@panzerdev panzerdev deleted the patch-4 branch November 30, 2022 13:52
@panzerdev
Copy link
Contributor Author

Super läuft wieder! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants