question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to encode outgoing TypedData

See original GitHub issue

Result: Failure Exception: TypeError: unable to encode outgoing TypedData: unsupported type “<class ‘azure.functions.http.HttpResponseConverter’>” for Python type “NoneType” Stack: File “/azure-functions-host/workers/python/3.6/LINUX/X64/azure_functions_worker/dispatcher.py”, line 345, in _handle__invocation_request pytype=fi.return_type.pytype) File “/azure-functions-host/workers/python/3.6/LINUX/X64/azure_functions_worker/bindings/meta.py”, line 83, in to_outgoing_proto f’unable to encode outgoing TypedData: ’

Investigative information

Please provide the following:
  • Timestamp: 2020-05-21 02:32:44.974
  • Function App name: XXXXXXXXX-python
  • Function name(s) (as appropriate): decom_cleanup
  • Core Tools version: 2.7.1846

Repro steps

Provide the steps required to reproduce the problem:

Expected behavior

Provide a description of the expected behavior.

Actual behavior

Provide a description of the actual behavior observed.

Known workarounds

Provide a description of any known workarounds.

Contents of the requirements.txt file:

Provide the requirements.txt file to help us find out module related issues.

Related information

Provide any related information
  • Links to source
  • Bindings used

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
Hazhzengcommented, May 28, 2020

Hi @szaher,

Please fill in the template before raising an issue in the future. This helps us to narrow down the issue and diagnose your problem more quickly.

As for HTTP trigger, the function annotation indicate that you need to return an HttpResponse object instead of a None. If you expect your http client receive no content, you should use return func.HttpResponse("", status_code=200) instead.

0reactions
thegamebegins25commented, Dec 14, 2022

I figured that out months ago lol

On Wed, Dec 14, 2022 at 9:15 AM Feuerstein @.***> wrote:

“You’ve got to return something. It says it in the function’s declaration with the arrow operator… it’s that obvious! how could you not see that you dummy?” is what I said to myself after discovering the mistake x) thanks @Hazhzeng https://github.com/Hazhzeng 🙏

@thegamebegins25 https://github.com/thegamebegins25 you are not returning anything too, hence, the NoneType return error. What you are doing actually is returning a value from the function set, that you are calling in main, without using that value, so in main, you are returning nothing. Add a return in front of set.

— Reply to this email directly, view it on GitHub https://github.com/Azure/azure-functions-python-worker/issues/683#issuecomment-1351460460, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS5JYOW5MAQL65V2YZ3GFQDWNHJAVANCNFSM4NGQ275Q . You are receiving this because you were mentioned.Message ID: @.***>

– Thanks!, Will

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to encode outgoing TypedData: unsupported type ...
i'm trying to upload the file that i have accessed to, via SAS key, and i have cleaned to azure Blob Storage. as...
Read more >
azure.functions.http.HttpResponseConverter class
azure.functions.http.HttpRequest class. An HTTP request object. azure.functions.InputStream class. File-like object representing an input blob.
Read more >
AMQP 1.0 Message Encoding - using AMQP typed data vs ...
The content type is designed for the case where the data being > > transferred is not encoded in the AMQP type system,...
Read more >
Basic Options for Azure Functions - Sentry Documentation
An optional property that controls which downstream services receive tracing data, in the form of a sentry-trace and a baggage header attached to...
Read more >
Metadata API Developer Guide
Base-64 encoding increases the size of the payload, so your compressed payload can't exceed approximately 39 MB before encoding.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found