René's URL Explorer Experiment


Title: BufferError with Tornado and asyncio · Issue #1 · stackimpact/stackimpact-python · GitHub

Open Graph Title: BufferError with Tornado and asyncio · Issue #1 · stackimpact/stackimpact-python

X Title: BufferError with Tornado and asyncio · Issue #1 · stackimpact/stackimpact-python

Description: Problem Since adding the StackImpact agent to a Tornado/asyncio application, we started seeing BufferErrors like this: BufferError: Existing exports of data: object cannot be re-sized File "tornado/web.py", line 1513, in _execute self.fi...

Open Graph Description: Problem Since adding the StackImpact agent to a Tornado/asyncio application, we started seeing BufferErrors like this: BufferError: Existing exports of data: object cannot be re-sized File "tornado...

X Description: Problem Since adding the StackImpact agent to a Tornado/asyncio application, we started seeing BufferErrors like this: BufferError: Existing exports of data: object cannot be re-sized File "to...

Opengraph URL: https://github.com/stackimpact/stackimpact-python/issues/1

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BufferError with Tornado and asyncio","articleBody":"## Problem\r\n\r\nSince adding the StackImpact agent to a Tornado/asyncio application, we started seeing `BufferError`s like this:\r\n```\r\nBufferError: Existing exports of data: object cannot be re-sized\r\n  File \"tornado/web.py\", line 1513, in _execute\r\n    self.finish()\r\n  File \"tornado/web.py\", line 991, in finish\r\n    self.flush(include_footers=True)\r\n  File \"tornado/web.py\", line 947, in flush\r\n    start_line, self._headers, chunk, callback=callback)\r\n  File \"tornado/http1connection.py\", line 400, in write_headers\r\n    self._pending_write = self.stream.write(data)\r\n  File \"tornado/iostream.py\", line 406, in write\r\n    self._handle_write()\r\n  File \"tornado/iostream.py\", line 872, in _handle_write\r\n    del self._write_buffer[:self._write_buffer_pos]\r\n```\r\n\r\n## Environment\r\n\r\nOur application runs inside a Docker container. We use:\r\n* Python 3.6.1\r\n* `tornado` 4.5.1\r\n* `stackimpact` 1.0.0\r\n\r\nWe start it like this (simplified for brevity):\r\n```python\r\nimport asyncio\r\n\r\nfrom tornado.platform.asyncio import AsyncIOMainLoop\r\nfrom tornado.httpserver import HTTPServer\r\nfrom tornado.web import Application\r\n\r\n\r\nif __name__ == '__main__':\r\n    AsyncIOMainLoop().install()\r\n    loop = asyncio.get_event_loop()\r\n\r\n    app = Application(...)\r\n    server = HTTPServer(app)\r\n    server.listen(8080)\r\n\r\n    internal_app = Application(...)\r\n    internal_server = HTTPServer(app)\r\n    internal_server.listen(8081)\r\n\r\n    loop.run_forever()\r\n```\r\n\r\n## Notes\r\n\r\nCursory googling turned up the same error happening in the same place, as reported in [this comment](https://github.com/tornadoweb/tornado/pull/2008#issuecomment-297975575) on a Tornado pull request. I don't know enough about Tornado's internals to guess at what's going on here but maybe @bdarnell can provide more insight.\r\n\r\nIn any case, I'm happy to provide more details as needed.","author":{"url":"https://github.com/adamrothman","@type":"Person","name":"adamrothman"},"datePublished":"2017-06-28T06:01:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1/stackimpact-python/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1bb33285-5ef0-84e9-21b5-4df7e657cad8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB5F4:2549A8:E9EF79:1472220:697B5F25
html-safe-noncefeea3b6e5d4cbda188508461278de54ac99ff3b4e1f2b050d680ce35541bef8d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUY0OjI1NDlBODpFOUVGNzk6MTQ3MjIyMDo2OTdCNUYyNSIsInZpc2l0b3JfaWQiOiIxNzA1MjQyOTEwMzg4ODcwOTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbeea9bd0ea8a14755633ea3c919abc6b14e17878aa2828ce73d0b3a8f8285d2b
hovercard-subject-tagissue:239060732
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/stackimpact/stackimpact-python/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ebf203f1e0071212b5bf305c5a919384a10a199b574db5555bb212f67ede4dc0/stackimpact/stackimpact-python/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ebf203f1e0071212b5bf305c5a919384a10a199b574db5555bb212f67ede4dc0/stackimpact/stackimpact-python/issues/1
og:image:altProblem Since adding the StackImpact agent to a Tornado/asyncio application, we started seeing BufferErrors like this: BufferError: Existing exports of data: object cannot be re-sized File "tornado...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameadamrothman
hostnamegithub.com
expected-hostnamegithub.com
None7eed3e20c41f6c464df945b1f353a52c450ca1653f4697d4ebcc58c2adc5868a
turbo-cache-controlno-preview
go-importgithub.com/stackimpact/stackimpact-python git https://github.com/stackimpact/stackimpact-python.git
octolytics-dimension-user_id22001993
octolytics-dimension-user_loginstackimpact
octolytics-dimension-repository_id95447826
octolytics-dimension-repository_nwostackimpact/stackimpact-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id95447826
octolytics-dimension-repository_network_root_nwostackimpact/stackimpact-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
released72d3188f34dc5c9b58eb1a406c45898c7a25009
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackimpact/stackimpact-python/issues/1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackimpact%2Fstackimpact-python%2Fissues%2F1
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%2Fstackimpact%2Fstackimpact-python%2Fissues%2F1
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=stackimpact%2Fstackimpact-python
Reloadhttps://github.com/stackimpact/stackimpact-python/issues/1
Reloadhttps://github.com/stackimpact/stackimpact-python/issues/1
Reloadhttps://github.com/stackimpact/stackimpact-python/issues/1
stackimpact https://github.com/stackimpact
stackimpact-pythonhttps://github.com/stackimpact/stackimpact-python
Notifications https://github.com/login?return_to=%2Fstackimpact%2Fstackimpact-python
Fork 21 https://github.com/login?return_to=%2Fstackimpact%2Fstackimpact-python
Star 654 https://github.com/login?return_to=%2Fstackimpact%2Fstackimpact-python
Code https://github.com/stackimpact/stackimpact-python
Issues 7 https://github.com/stackimpact/stackimpact-python/issues
Pull requests 0 https://github.com/stackimpact/stackimpact-python/pulls
Actions https://github.com/stackimpact/stackimpact-python/actions
Projects 0 https://github.com/stackimpact/stackimpact-python/projects
Security 0 https://github.com/stackimpact/stackimpact-python/security
Insights https://github.com/stackimpact/stackimpact-python/pulse
Code https://github.com/stackimpact/stackimpact-python
Issues https://github.com/stackimpact/stackimpact-python/issues
Pull requests https://github.com/stackimpact/stackimpact-python/pulls
Actions https://github.com/stackimpact/stackimpact-python/actions
Projects https://github.com/stackimpact/stackimpact-python/projects
Security https://github.com/stackimpact/stackimpact-python/security
Insights https://github.com/stackimpact/stackimpact-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/stackimpact/stackimpact-python/issues/1
New issuehttps://github.com/login?return_to=https://github.com/stackimpact/stackimpact-python/issues/1
BufferError with Tornado and asynciohttps://github.com/stackimpact/stackimpact-python/issues/1#top
https://github.com/adamrothman
https://github.com/adamrothman
adamrothmanhttps://github.com/adamrothman
on Jun 28, 2017https://github.com/stackimpact/stackimpact-python/issues/1#issue-239060732
this commenthttps://github.com/tornadoweb/tornado/pull/2008#issuecomment-297975575
@bdarnellhttps://github.com/bdarnell
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.