Title: Running CodeQL within a Flask server silently interrupts connection · Issue #132 · github/codeql-cli-binaries · GitHub
Open Graph Title: Running CodeQL within a Flask server silently interrupts connection · Issue #132 · github/codeql-cli-binaries
X Title: Running CodeQL within a Flask server silently interrupts connection · Issue #132 · github/codeql-cli-binaries
Description: I have extended the official CodeQL container to run CodeQL analysis during a Python Flask HTTP request. Throughout the request, three codeql CLI commands are executed: codeql database create codeql database upgrade codeql database analy...
Open Graph Description: I have extended the official CodeQL container to run CodeQL analysis during a Python Flask HTTP request. Throughout the request, three codeql CLI commands are executed: codeql database create codeq...
X Description: I have extended the official CodeQL container to run CodeQL analysis during a Python Flask HTTP request. Throughout the request, three codeql CLI commands are executed: codeql database create codeq...
Opengraph URL: https://github.com/github/codeql-cli-binaries/issues/132
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Running CodeQL within a Flask server silently interrupts connection","articleBody":"I have extended the [official CodeQL container](https://github.com/microsoft/codeql-container) to run CodeQL analysis during a Python Flask HTTP request.\r\n\r\nThroughout the request, three codeql CLI commands are executed:\r\n\r\n```\r\ncodeql database create\r\ncodeql database upgrade\r\ncodeql database analyze\r\n```\r\n\r\ncreate and upgrade do not interrupt the connection, but I find that when the analyze command occurs, Flask will respond as normal but the client never receives the response. Leading me to believe something within the analyze command is silently interrupting the connection.\r\n\r\nThe python code I'm using uses the Python code found in the official CodeQL Docker container. Here is the code I'm running within the request:\r\n\r\n```python\r\ndatabase_update_command = f\"database upgrade {database_directory}\"\r\ndatabase_analyze_command = f\"database analyze {database_directory} --threads=0 --format=sarifv2.1.0 --output=output.json {database_lang}-security-and-quality.qls\"\r\nrun_result = self.codeql.execute_codeql_command(\r\n database_update_command)\r\nrun_result = self.codeql.execute_codeql_command(\r\n database_analyze_command)\r\n```\r\n\r\nAny help would be appreciated!","author":{"url":"https://github.com/cmcdougall","@type":"Person","name":"cmcdougall"},"datePublished":"2022-09-05T01:30:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/132/codeql-cli-binaries/issues/132"}
| 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:18212639-3dff-874b-7139-0fec3ffdce28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBD4:29F76B:1DBA88C:2920E74:698DC706 |
| html-safe-nonce | 31e812ddc22bb08ab37676fc5b66aac5344db8d37c90e80e69452cc21d62edb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkQ0OjI5Rjc2QjoxREJBODhDOjI5MjBFNzQ6Njk4REM3MDYiLCJ2aXNpdG9yX2lkIjoiMzU1Mzc5NzkxMjYyNTI2ODQ4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ee6f120e8c0b19052aa01b39e27db32ec5f26ec552b97ff6ccf03539e2404ea6 |
| hovercard-subject-tag | issue:1361320604 |
| 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/github/codeql-cli-binaries/132/issue_layout |
| twitter:image | https://opengraph.githubassets.com/971bf9d7c5a9299c12bb69ad56ef7cebda850ba293d70ea4dfae41b1ecb598ad/github/codeql-cli-binaries/issues/132 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/971bf9d7c5a9299c12bb69ad56ef7cebda850ba293d70ea4dfae41b1ecb598ad/github/codeql-cli-binaries/issues/132 |
| og:image:alt | I have extended the official CodeQL container to run CodeQL analysis during a Python Flask HTTP request. Throughout the request, three codeql CLI commands are executed: codeql database create codeq... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2457fd9a1b17ca7f38c3c2653895ccb2e0dd04f18f77446a21354e9bc4b7902f |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql-cli-binaries git https://github.com/github/codeql-cli-binaries.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 215263010 |
| octolytics-dimension-repository_nwo | github/codeql-cli-binaries |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 215263010 |
| octolytics-dimension-repository_network_root_nwo | github/codeql-cli-binaries |
| 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 | 878672b82363fd98fbdc5bd0edb68e572c8a8d9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width