Title: Authentication fail. · Issue #18 · gateio/WebSocket-API · GitHub
Open Graph Title: Authentication fail. · Issue #18 · gateio/WebSocket-API
X Title: Authentication fail. · Issue #18 · gateio/WebSocket-API
Description: when i use demo codes python, nodejs for API 4.0 result: {"error": {"code": 11, "message": "Authentication fail."}, "result": null, "id": 4041} The algorithm sign params is wrong? Code python: def get_sign(secret_key, message): h = (base...
Open Graph Description: when i use demo codes python, nodejs for API 4.0 result: {"error": {"code": 11, "message": "Authentication fail."}, "result": null, "id": 4041} The algorithm sign params is wrong? Code python: def ...
X Description: when i use demo codes python, nodejs for API 4.0 result: {"error": {"code": 11, "message": "Authentication fail."}, "result": null, "id":...
Opengraph URL: https://github.com/gateio/WebSocket-API/issues/18
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Authentication fail.","articleBody":"when i use demo codes python, nodejs for API 4.0 result: \r\n{\"error\": {\"code\": 11, \"message\": \"Authentication fail.\"}, \"result\": null, \"id\": 4041}\r\n\r\nThe algorithm sign params is wrong?\r\nCode python:\r\ndef get_sign(secret_key, message):\r\n\th = (base64.b64encode(hmac.new(secret_key.encode('utf-8'), message.encode('utf-8'), hashlib.sha512).digest())).decode()\r\n\r\nCode nodejs:\r\nfunction getSign(str) {\r\n\treturn crypto.createHmac('sha512', SECRET).update(str).digest().toString('base64');\r\n\r\n","author":{"url":"https://github.com/phidinhthao","@type":"Person","name":"phidinhthao"},"datePublished":"2021-06-30T07:22:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/18/WebSocket-API/issues/18"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0661a4ae-1243-0564-5bff-8a8b4d6cde70 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB34:AD39E:4143E:50656:69908EAA |
| html-safe-nonce | 6475e40641e53f6d6f25e18db98f6cc86edd94bcbfe41206d0e79d4627a31fd6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjM0OkFEMzlFOjQxNDNFOjUwNjU2OjY5OTA4RUFBIiwidmlzaXRvcl9pZCI6Ijg1NTQwMzkwMDk0NTc3NzAxNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4bac2a5399fe0c50afa631925396bf2b9c41b8db44947617d1abd43d43382b43 |
| hovercard-subject-tag | issue:933388019 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gateio/WebSocket-API/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/972d09c470763dc6b623bb2e5189d316d111bb4748a909a079de3ca7cfcd5cc4/gateio/WebSocket-API/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/972d09c470763dc6b623bb2e5189d316d111bb4748a909a079de3ca7cfcd5cc4/gateio/WebSocket-API/issues/18 |
| og:image:alt | when i use demo codes python, nodejs for API 4.0 result: {"error": {"code": 11, "message": "Authentication fail."}, "result": null, "id": 4041} The algorithm sign params is wrong? Code python: def ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | phidinhthao |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/gateio/WebSocket-API git https://github.com/gateio/WebSocket-API.git |
| octolytics-dimension-user_id | 32661171 |
| octolytics-dimension-user_login | gateio |
| octolytics-dimension-repository_id | 138019348 |
| octolytics-dimension-repository_nwo | gateio/WebSocket-API |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 138019348 |
| octolytics-dimension-repository_network_root_nwo | gateio/WebSocket-API |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width