Bump aiohttp and requests to more secure versions #112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of change
Bump requests from 2.31.0 to 3.32.3
Bump aiohttp from 3.8.5 to 3.11.9
In aiohttp version 3.8.5, the get_event_loop method was used to retrieve the current event loop. This method would return the running event loop if one existed; otherwise, it would return the default event loop. However, in the latest versions of aiohttp, the get_running_loop method is used instead. Unlike get_event_loop, get_running_loop raises an error if no event loop is currently running.
In our case, we create an event loop and set it as the current loop for the thread. However, since the loop is not yet in a running state, the latest aiohttp version throws an error when it tries to find a running event loop.
QA steps
Risks
Rollback steps
AI generated code
https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code