René's URL Explorer Experiment


Title: Issue creating objectstorage access key without an expiry · Issue #809 · stackitcloud/stackit-sdk-python · GitHub

Open Graph Title: Issue creating objectstorage access key without an expiry · Issue #809 · stackitcloud/stackit-sdk-python

X Title: Issue creating objectstorage access key without an expiry · Issue #809 · stackitcloud/stackit-sdk-python

Description: Hello, I want to create a access key without an expiry. But I keep running into an pydantic problem. I am running this code: config = Configuration() client = DefaultApi(config) name = "abc" project_id = os.getenv("OS_PROJECT_NAME") cred...

Open Graph Description: Hello, I want to create a access key without an expiry. But I keep running into an pydantic problem. I am running this code: config = Configuration() client = DefaultApi(config) name = "abc" projec...

X Description: Hello, I want to create a access key without an expiry. But I keep running into an pydantic problem. I am running this code: config = Configuration() client = DefaultApi(config) name = "abc&qu...

Opengraph URL: https://github.com/stackitcloud/stackit-sdk-python/issues/809

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue creating objectstorage access key without an expiry","articleBody":"Hello,\n\nI want to create a access key without an expiry. But I keep running into an pydantic problem.\n\nI am running this code:\n\n```python\n    config = Configuration()\n    client = DefaultApi(config)\n    name = \"abc\"\n    project_id = os.getenv(\"OS_PROJECT_NAME\")\n    cred_grp_resp = client.create_credentials_group(\n        project_id, \"eu01\", CreateCredentialsGroupPayload(displayName=name)\n    )\n    acc_key_resp = client.create_access_key(\n        project_id,\n        \"eu01\",\n        CreateAccessKeyPayload(),\n        cred_grp_resp.credentials_group.credentials_group_id,\n    )\n```\n\nThe error I am getting is:\n\n```\n  File \"/app/pylfc/s3.py\", line 196, in create_bucket_credentials\n    acc_key_resp = client.create_access_key(\n  File \"/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_validate_call.py\", line 39, in wrapper_function\n    return wrapper(*args, **kwargs)\n  File \"/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_validate_call.py\", line 136, in __call__\n    res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs))\n  File \"/usr/local/lib/python3.10/dist-packages/stackit/objectstorage/api/default_api.py\", line 139, in create_access_key\n    return self.api_client.response_deserialize(\n  File \"/usr/local/lib/python3.10/dist-packages/stackit/objectstorage/api_client.py\", line 275, in response_deserialize\n    return_data = self.deserialize(response_text, response_type, content_type)\n  File \"/usr/local/lib/python3.10/dist-packages/stackit/objectstorage/api_client.py\", line 363, in deserialize\n    return self.__deserialize(data, response_type)\n  File \"/usr/local/lib/python3.10/dist-packages/stackit/objectstorage/api_client.py\", line 408, in __deserialize\n    return self.__deserialize_model(data, klass)\n  File \"/usr/local/lib/python3.10/dist-packages/stackit/objectstorage/api_client.py\", line 626, in __deserialize_model\n    return klass.from_dict(data)\n  File \"/usr/local/lib/python3.10/dist-packages/stackit/objectstorage/models/create_access_key_response.py\", line 87, in from_dict\n    _obj = cls.model_validate(\n  File \"/usr/local/lib/python3.10/dist-packages/pydantic/main.py\", line 693, in model_validate\n    return cls.__pydantic_validator__.validate_python(\npydantic_core._pydantic_core.ValidationError: 1 validation error for CreateAccessKeyResponse\nexpires\n  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.11/v/string_type\n```\n\nI seems the \"CreateAccessKeyPayload\" accepts an \"None\" expiry date, which is allowed looing at the api docs, but the CreateAccessKeyResponse requires it the field to be a string and not None.\n\nUsing the same code but setting an \"expires\" allows me to create the key:\n\n```python\n    acc_key_resp = client.create_access_key(\n        project_id,\n        \"eu01\",\n        CreateAccessKeyPayload(expires=datetime(2026, 1, 1)),\n        cred_grp_resp.credentials_group.credentials_group_id,\n    )\n```\n\nAsking for a fix. Kind regards, Sebastian","author":{"url":"https://github.com/sebastianelsner","@type":"Person","name":"sebastianelsner"},"datePublished":"2025-03-28T17:56:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/809/stackit-sdk-python/issues/809"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5bc8d920-ee48-1ba1-471b-b6f86c2ae5c6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB29C:108B01:3CF39F0:517901C:6981B11C
html-safe-nonce27372e382e4797d2c5f524b39cf29efd989bbce2c25b914fc9b5482c30b4cb2a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjlDOjEwOEIwMTozQ0YzOUYwOjUxNzkwMUM6Njk4MUIxMUMiLCJ2aXNpdG9yX2lkIjoiNzk0NjYzOTgxMjQyMzk1NDcxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacad3071cae75669a5f4c332a38dc3af4254427324499b31bfb1129b6b0da765c3
hovercard-subject-tagissue:2956821661
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackitcloud/stackit-sdk-python/809/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09c9844c92c232a7e90846880a582e7baf6cb08921df25c1e14264ed9aee2f14/stackitcloud/stackit-sdk-python/issues/809
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09c9844c92c232a7e90846880a582e7baf6cb08921df25c1e14264ed9aee2f14/stackitcloud/stackit-sdk-python/issues/809
og:image:altHello, I want to create a access key without an expiry. But I keep running into an pydantic problem. I am running this code: config = Configuration() client = DefaultApi(config) name = "abc" projec...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesebastianelsner
hostnamegithub.com
expected-hostnamegithub.com
Nonee137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6
turbo-cache-controlno-preview
go-importgithub.com/stackitcloud/stackit-sdk-python git https://github.com/stackitcloud/stackit-sdk-python.git
octolytics-dimension-user_id55577607
octolytics-dimension-user_loginstackitcloud
octolytics-dimension-repository_id872376182
octolytics-dimension-repository_nwostackitcloud/stackit-sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id872376182
octolytics-dimension-repository_network_root_nwostackitcloud/stackit-sdk-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd58d68a7813bbec9c91422c8c35f4af33832d70
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackitcloud/stackit-sdk-python/issues/809#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackitcloud%2Fstackit-sdk-python%2Fissues%2F809
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackitcloud%2Fstackit-sdk-python%2Fissues%2F809
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=stackitcloud%2Fstackit-sdk-python
Reloadhttps://github.com/stackitcloud/stackit-sdk-python/issues/809
Reloadhttps://github.com/stackitcloud/stackit-sdk-python/issues/809
Reloadhttps://github.com/stackitcloud/stackit-sdk-python/issues/809
stackitcloud https://github.com/stackitcloud
stackit-sdk-pythonhttps://github.com/stackitcloud/stackit-sdk-python
Notifications https://github.com/login?return_to=%2Fstackitcloud%2Fstackit-sdk-python
Fork 2 https://github.com/login?return_to=%2Fstackitcloud%2Fstackit-sdk-python
Star 47 https://github.com/login?return_to=%2Fstackitcloud%2Fstackit-sdk-python
Code https://github.com/stackitcloud/stackit-sdk-python
Issues 4 https://github.com/stackitcloud/stackit-sdk-python/issues
Pull requests 27 https://github.com/stackitcloud/stackit-sdk-python/pulls
Actions https://github.com/stackitcloud/stackit-sdk-python/actions
Projects 0 https://github.com/stackitcloud/stackit-sdk-python/projects
Security 0 https://github.com/stackitcloud/stackit-sdk-python/security
Insights https://github.com/stackitcloud/stackit-sdk-python/pulse
Code https://github.com/stackitcloud/stackit-sdk-python
Issues https://github.com/stackitcloud/stackit-sdk-python/issues
Pull requests https://github.com/stackitcloud/stackit-sdk-python/pulls
Actions https://github.com/stackitcloud/stackit-sdk-python/actions
Projects https://github.com/stackitcloud/stackit-sdk-python/projects
Security https://github.com/stackitcloud/stackit-sdk-python/security
Insights https://github.com/stackitcloud/stackit-sdk-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/stackitcloud/stackit-sdk-python/issues/809
New issuehttps://github.com/login?return_to=https://github.com/stackitcloud/stackit-sdk-python/issues/809
Issue creating objectstorage access key without an expiryhttps://github.com/stackitcloud/stackit-sdk-python/issues/809#top
bugSomething isn't workinghttps://github.com/stackitcloud/stackit-sdk-python/issues?q=state%3Aopen%20label%3A%22bug%22
has internal tracking issuehttps://github.com/stackitcloud/stackit-sdk-python/issues?q=state%3Aopen%20label%3A%22has%20internal%20tracking%20issue%22
https://github.com/sebastianelsner
https://github.com/sebastianelsner
sebastianelsnerhttps://github.com/sebastianelsner
on Mar 28, 2025https://github.com/stackitcloud/stackit-sdk-python/issues/809#issue-2956821661
bugSomething isn't workinghttps://github.com/stackitcloud/stackit-sdk-python/issues?q=state%3Aopen%20label%3A%22bug%22
has internal tracking issuehttps://github.com/stackitcloud/stackit-sdk-python/issues?q=state%3Aopen%20label%3A%22has%20internal%20tracking%20issue%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.