Title: [JWT] Add more timeout for JWT validation · Issue #85 · CentML/centml-python-client · GitHub
Open Graph Title: [JWT] Add more timeout for JWT validation · Issue #85 · CentML/centml-python-client
X Title: [JWT] Add more timeout for JWT validation · Issue #85 · CentML/centml-python-client
Description: I think as of now, platform dev tries to verify the API key every hour??. It killed my process with this message when trying to delete endpoint. Traceback (most recent call last): File "/home/john/Documents/centml/platform/centml-python-...
Open Graph Description: I think as of now, platform dev tries to verify the API key every hour??. It killed my process with this message when trying to delete endpoint. Traceback (most recent call last): File "/home/john/...
X Description: I think as of now, platform dev tries to verify the API key every hour??. It killed my process with this message when trying to delete endpoint. Traceback (most recent call last): File "/home/...
Opengraph URL: https://github.com/CentML/centml-python-client/issues/85
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[JWT] Add more timeout for JWT validation","articleBody":"I think as of now, platform dev tries to verify the API key every hour??. It killed my process with this message when trying to delete endpoint.\n\n```\nTraceback (most recent call last):\n File \"/home/john/Documents/centml/platform/centml-python-client/sandbox/endpoint.py\", line 202, in \u003cmodule\u003e\n cclient.delete(deployment_id)\n File \"/home/john/Documents/centml/platform/centml-python-client/centml/sdk/api.py\", line 50, in delete\n self._update_status(id, DeploymentStatus.DELETED)\n File \"/home/john/Documents/centml/platform/centml-python-client/centml/sdk/api.py\", line 47, in _update_status\n self._api.update_deployment_status_deployments_status_deployment_id_put(id, status_req)\n File \"/home/john/Documents/centml/platform/venv/lib/python3.10/site-packages/pydantic/_internal/_validate_call.py\", line 38, in wrapper_function\n return wrapper(*args, **kwargs)\n File \"/home/john/Documents/centml/platform/venv/lib/python3.10/site-packages/pydantic/_internal/_validate_call.py\", line 111, in __call__\n res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs))\n File \"/home/john/Documents/centml/platform/venv/lib/python3.10/site-packages/platform_api_python_client/api/external_api.py\", line 6378, in update_deployment_status_deployments_status_deployment_id_put\n return self.api_client.response_deserialize(\n File \"/home/john/Documents/centml/platform/venv/lib/python3.10/site-packages/platform_api_python_client/api_client.py\", line 322, in response_deserialize\n raise ApiException.from_response(\n File \"/home/john/Documents/centml/platform/venv/lib/python3.10/site-packages/platform_api_python_client/exceptions.py\", line 145, in from_response\n raise UnauthorizedException(http_resp=http_resp, body=body, data=data)\nplatform_api_python_client.exceptions.UnauthorizedException: (401)\nReason: Unauthorized\nHTTP response headers: HTTPHeaderDict({'www-authenticate': 'Bearer realm=\"https://api.centml.org/deployments/status/3897\", error=\"invalid_token\"', 'content-length': '14', 'content-type': 'text/plain', 'date': 'Wed, 22 Jan 2025 22:37:06 GMT', 'server': 'istio-envoy', 'x-envoy-upstream-service-time': '6'})\nHTTP response body: Jwt is expired\n```\n\nIt will help a lot if we can do either of these two options:\n\n- Somehow validate transparently the client's API key after certain timeout\n- Extend the validation timeout to 90mins or more\n\nI prefer the first option if it is possible.\nDo you guys know if I make another call through the SDK the JWT token renews automatically? I was thinking of checking the status to reset the timeout\n\n┆Issue is synchronized with this [Notion page](https://www.notion.so/JWT-Add-more-timeout-for-JWT-validation-18c04095767d81b8b7b7fd32efcbd0a1) by [Unito](https://www.unito.io)\n","author":{"url":"https://github.com/johncalesp","@type":"Person","name":"johncalesp"},"datePublished":"2025-01-22T22:45:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/85/centml-python-client/issues/85"}
| 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:ed643dfd-9030-4db8-289c-14716dc1b581 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCCA:9D20B:417F24:5467A9:698E70D1 |
| html-safe-nonce | fbeca16d0da1f61554ed255d1cb0d32c51fec7e95af3fc278aade148009a17c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0NBOjlEMjBCOjQxN0YyNDo1NDY3QTk6Njk4RTcwRDEiLCJ2aXNpdG9yX2lkIjoiMjUzMTM3MTU5NzY2ODcwODU2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a8c8f2cddd703ccd0187b95a05a10796bb75ae567cf86217b13d5df3d71537d9 |
| hovercard-subject-tag | issue:2805496271 |
| 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/CentML/centml-python-client/85/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ba3a34b3925dbd2624e8b8ab56813a69c5a5a2c00a23d2141cfc9a382363f44/CentML/centml-python-client/issues/85 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ba3a34b3925dbd2624e8b8ab56813a69c5a5a2c00a23d2141cfc9a382363f44/CentML/centml-python-client/issues/85 |
| og:image:alt | I think as of now, platform dev tries to verify the API key every hour??. It killed my process with this message when trying to delete endpoint. Traceback (most recent call last): File "/home/john/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johncalesp |
| hostname | github.com |
| expected-hostname | github.com |
| None | f86603f0b4e9df9a462725324a8c84c98fc50866bdb6ae8ff026fabe56a60c57 |
| turbo-cache-control | no-preview |
| go-import | github.com/CentML/centml-python-client git https://github.com/CentML/centml-python-client.git |
| octolytics-dimension-user_id | 98933447 |
| octolytics-dimension-user_login | CentML |
| octolytics-dimension-repository_id | 666050741 |
| octolytics-dimension-repository_nwo | CentML/centml-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 666050741 |
| octolytics-dimension-repository_network_root_nwo | CentML/centml-python-client |
| 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 | 7eb8835f5978c5aa7a64336b39e0774a93a9a196 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width