Title: Failed to parse json credential · Issue #814 · firebase/firebase-admin-python · GitHub
Open Graph Title: Failed to parse json credential · Issue #814 · firebase/firebase-admin-python
X Title: Failed to parse json credential · Issue #814 · firebase/firebase-admin-python
Description: [READ] Step 1: Are you in the right place? For issues related to the code in this repository file a GitHub issue. If the issue pertains to Cloud Firestore, report directly in the Python Firestore GitHub repo. Firestore bugs reported in t...
Open Graph Description: [READ] Step 1: Are you in the right place? For issues related to the code in this repository file a GitHub issue. If the issue pertains to Cloud Firestore, report directly in the Python Firestore G...
X Description: [READ] Step 1: Are you in the right place? For issues related to the code in this repository file a GitHub issue. If the issue pertains to Cloud Firestore, report directly in the Python Firestore G...
Opengraph URL: https://github.com/firebase/firebase-admin-python/issues/814
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failed to parse json credential","articleBody":"### [READ] Step 1: Are you in the right place?\r\n\r\n * For issues related to __the code in this repository__ file a GitHub issue.\r\n * If the issue pertains to __Cloud Firestore__, report directly in the\r\n [Python Firestore](https://github.com/googleapis/python-firestore) GitHub repo. Firestore\r\n bugs reported in this repo will be closed with a reference to the Python Firestore\r\n project.\r\n * For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/)\r\n with the `firebase` tag.\r\n * For general Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk)\r\n google group.\r\n * For help troubleshooting your application that does not fall under one\r\n of the above categories, reach out to the personalized\r\n [Firebase support channel](https://firebase.google.com/support/).\r\n\r\n### [REQUIRED] Step 2: Describe your environment\r\n\r\n * Operating System version: MacOS Sonoma 14.3.1\r\n * Firebase SDK version: 6.5.0\r\n * Firebase Product: auth\r\n * Python version: 3.11.0\r\n * Pip version: 24.0\r\n\r\n### [REQUIRED] Step 3: Describe the problem\r\n\r\nWhen calling `firebase_admin.credentials.Certificate`, occurred error `OSError`, which used not credential file path, but parsed json dictionary. I expect returning function `_is_file_path` `False` if used parameter as dictionary.\r\n\r\n#### Steps to reproduce:\r\n\r\nWhat happened? How can we make the problem occur?\r\nThis could be a description, log/console output, etc.\r\n\r\n#### Relevant Code:\r\n\r\n```\r\n# firebase_admin/credentials.py\r\ndef _is_file_path(path):\r\n try:\r\n path_obj = pathlib.Path(path)\r\n return True\r\n except TypeError:\r\n return False\r\n```\r\n","author":{"url":"https://github.com/Yangeok","@type":"Person","name":"Yangeok"},"datePublished":"2024-09-25T00:04:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/814/firebase-admin-python/issues/814"}
| 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:9501f7e0-0df0-70ce-ae34-488a732a3307 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE6E:4ACCD:43CD49:592E7D:698EB16E |
| html-safe-nonce | 1c4616b8ac6fa26e187f464555e66a515c82d08e567a0b2a4e34833b0b631581 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTZFOjRBQ0NEOjQzQ0Q0OTo1OTJFN0Q6Njk4RUIxNkUiLCJ2aXNpdG9yX2lkIjoiNjUyMDMzMTg2MTM4NTk5NzkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 153710bd93b492675abb5de7c32606836a70aee412f0f5755b74f2b99817f8b8 |
| hovercard-subject-tag | issue:2546617487 |
| 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/firebase/firebase-admin-python/814/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be08dba5134821863d9193f962d97c62964bd749a75cf14c84a893ce42889500/firebase/firebase-admin-python/issues/814 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be08dba5134821863d9193f962d97c62964bd749a75cf14c84a893ce42889500/firebase/firebase-admin-python/issues/814 |
| og:image:alt | [READ] Step 1: Are you in the right place? For issues related to the code in this repository file a GitHub issue. If the issue pertains to Cloud Firestore, report directly in the Python Firestore G... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Yangeok |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-python git https://github.com/firebase/firebase-admin-python.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979152 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979152 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-python |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width