home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.68k stars 30.81k forks source link

Coinbase V3 API #130687

Closed pvillanyi closed 3 hours ago

pvillanyi commented 4 hours ago

The problem

I've found threads about this API and the decision in August to include this in upcoming patch. Tha Coinbase integration still cant authenticate with the new API.

What version of Home Assistant Core has the issue?

core-2024.11.1

What was the last working version of Home Assistant Core?

core-2024.11.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Coinbase

Link to integration documentation on our website

https://www.home-assistant.io/integrations/coinbase/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-11-15 10:35:06 - coinbase.RESTClient - ERROR - HTTP Error: 401 Client Error: Unauthorized Unauthorized
2024-11-15 10:35:06.334 ERROR (SyncWorker_42) [coinbase.RESTClient] HTTP Error: 401 Client Error: Unauthorized Unauthorized
2024-11-15 10:40:42 - coinbase.RESTClient - ERROR - HTTP Error: 401 Client Error: Unauthorized Unauthorized
2024-11-15 10:40:42.206 ERROR (SyncWorker_21) [coinbase.RESTClient] HTTP Error: 401 Client Error: Unauthorized Unauthorized

Additional information

Error message: "invalid authentication" or some times "unknown error ocured"

home-assistant[bot] commented 4 hours ago

Hey there @tombrien, mind taking a look at this issue as it has been labeled with an integration (coinbase) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `coinbase` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign coinbase` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


coinbase documentation coinbase source (message by IssueLinks)

TomBrien commented 3 hours ago

The integration has supported the V3 API since #116345. I've just checked and both the V2 and V3 APIs are working with the integration. Please make sure that the API key and secret are being entered exactly as provided by Coinbase. For a V3 API this should be of the form organizations/XXXXX/apiKeys/XXXXX and -----BEGIN EC PRIVATE KEY-----\nXXXXXXXXXXXXXXXXX\n-----END EC PRIVATE KEY-----\n. Make sure the backslashes in the secret are not escaped by a second backslash.

pvillanyi commented 1 hour ago

Hello,

I have added it exactly this way.... I've generated 3 separate API keys, none of them is working. Thats why I have opened the issue. I didn't find any info on internet.... [cid:a8f49ad4-b342-4a99-9236-d2886b7a41e7] [cid:8371ad9c-c304-4299-b005-ac92da485091]

Please help me, what is wrong?

Üdv.

Villányi Péter


Feladó: Tom Brien @.> Elküldve: 2024. november 15., péntek 11:09 Címzett: home-assistant/core @.> Másolatot kap: pvillanyi @.>; Author @.> Tárgy: Re: [home-assistant/core] Coinbase V3 API (Issue #130687)

The integration has supported the V3 API since #116345https://github.com/home-assistant/core/pull/116345. I've just checked and both the V2 and V3 APIs are working with the integration. Please make sure that the API key and secret are being entered exactly as provided by Coinbase. For a V3 API this should be of the form organizations/XXXXX/apiKeys/XXXXX and -----BEGIN EC PRIVATE KEY-----\nXXXXXXXXXXXXXXXXX\n-----END EC PRIVATE KEY-----\n. Make sure the backslashes in the secret are not escaped by a second backslash.

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/130687#issuecomment-2478470041, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXVFZ65GJ6KEJ72RLKMG2JT2AXB45AVCNFSM6AAAAABR2ZQFQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZYGQ3TAMBUGE. You are receiving this because you authored the thread.