Title: Getting this to work with FastAPI or another Async Backend · Issue #112 · logdna/python · GitHub
Open Graph Title: Getting this to work with FastAPI or another Async Backend · Issue #112 · logdna/python
X Title: Getting this to work with FastAPI or another Async Backend · Issue #112 · logdna/python
Description: When attempting to do this in my FastAPI backend. I am noticing that the request is getting blocked. handler = LogDNAHandler(key='') logging.getLogger().addHandler(handler) logging.info("Checking to see if it works!") Looking at the libr...
Open Graph Description: When attempting to do this in my FastAPI backend. I am noticing that the request is getting blocked. handler = LogDNAHandler(key='') logging.getLogger().addHandler(handler) logging.info("Checking t...
X Description: When attempting to do this in my FastAPI backend. I am noticing that the request is getting blocked. handler = LogDNAHandler(key='') logging.getLogger().addHandler(handler) logging.info(&qu...
Opengraph URL: https://github.com/logdna/python/issues/112
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Getting this to work with FastAPI or another Async Backend","articleBody":"When attempting to do this in my FastAPI backend. I am noticing that the request is getting blocked. \r\n\r\n```python\r\n handler = LogDNAHandler(key='')\r\n logging.getLogger().addHandler(handler)\r\n logging.info(\"Checking to see if it works!\")\r\n```\r\nLooking at the library. I included the print \"Request Sent\". It never gets printed, the request does not execute, the backend sits there and I need to restart the entire app.\r\n\r\n```python\r\n try:\r\n headers = {\r\n 'user-agent': self.user_agent,\r\n 'apikey': self.key\r\n }\r\n response = requests.post(url=self.url,\r\n json=data,\r\n params={\r\n 'hostname': self.hostname,\r\n 'ip': self.ip,\r\n 'mac': self.mac,\r\n 'tags': self.tags,\r\n 'now': int(time.time() * 1000)\r\n },\r\n stream=True,\r\n allow_redirects=True,\r\n timeout=self.request_timeout,\r\n headers=headers)\r\n print(\"Request Sent\") \r\n```","author":{"url":"https://github.com/waseemhnyc","@type":"Person","name":"waseemhnyc"},"datePublished":"2024-05-24T14:07:48Z","url":"https://github.com/logdna/python/issues/112"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:c226a12c-0d8a-b79e-b26f-6b2053dfa038 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E52E:206F5F:790A87:A1665C:6AFBD061 |
| html-safe-nonce | 343c33f046300e09d90b7e1bbfdc9221a5da9d04ead253e1220d502135ca6972 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTJFOjIwNkY1Rjo3OTBBODc6QTE2NjVDOjZBRkJEMDYxIiwidmlzaXRvcl9pZCI6IjYyMDUyNTgxNTU2NDc4MTU3NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9b1e2c872c86cd9f59be12d85cac5b0b8b72d6871481b11b0d46ce9e55829c5b |
| hovercard-subject-tag | issue:2315505644 |
| 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/logdna/python/112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b11352546372c8fd0d57750161214c4766c150c75f800610dd37a14a63eccd64/logdna/python/issues/112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b11352546372c8fd0d57750161214c4766c150c75f800610dd37a14a63eccd64/logdna/python/issues/112 |
| og:image:alt | When attempting to do this in my FastAPI backend. I am noticing that the request is getting blocked. handler = LogDNAHandler(key='') logging.getLogger().addHandler(handler) logging.info("Checking t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | waseemhnyc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-preview |
| go-import | github.com/logdna/python git https://github.com/logdna/python.git |
| octolytics-dimension-user_id | 17461937 |
| octolytics-dimension-user_login | logdna |
| octolytics-dimension-repository_id | 78158155 |
| octolytics-dimension-repository_nwo | logdna/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 78158155 |
| octolytics-dimension-repository_network_root_nwo | logdna/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 | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width