Azure / Azure/azure-functions-durable-python

Ensure no DurableOrchestrationClient methods fail to decode mesages

Open
#191 0 comments 0 reactions 0 assignees View on GitHub
engineering P2
Dominant language
Python
Stars
157
Forks
70
Avg merge
2d 10h
Merged PRs (30d)
2

Description

When using aiohttp, the library will, by default, validate that the encoding of a server message matches its format but, with Azure Functions and many other services, the message encoding metadata is often not up to data. This mismatch yields a `mimetype encoding` runtime exception that we've already had to fix in multiple places.

We should create a robust tester to ensure these kinds of error no longer take place in our codebase.

Contributor guide

Open the contributing guide

Research direction

Start at the DurableOrchestrationClient methods and their aiohttp response handling, then inspect the existing test suite for coverage of message decoding. Reproduce the mimetype-encoding failure and add coverage showing that each relevant method handles mismatched server encoding metadata without raising the runtime exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
backend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.