Skip to content

Regression in AsyncWebServerResponse beginResponse #139

@mozgy

Description

@mozgy

Platform

ESP32

IDE / Tooling

pioarduino

What happened?

This worked fine before merge (I've used me-no-dev's code) ->

  photoFrameBuffer = esp_camera_fb_get();
  photoFrameLength = photoFrameBuffer->len;
  photoFrame += String( (char *) photoFrameBuffer->buf, photoFrameLength );
  AsyncWebServerResponse *response = request->beginResponse( 200, "image/jpeg", photoFrame );
  request->send( response );

Now on the web client side I only get "<FF><D8><FF><E0>" ..

Stack Trace

PACKAGES:

  • framework-arduinoespressif32 @ 3.2.0
  • framework-arduinoespressif32-libs @ 5.4.0+sha.2f7dcd862a

Dependency Graph
|-- ESPAsyncWebServer @ 3.7.4
|-- ArduinoJson @ 7.1.0
|-- AsyncTCP @ 3.3.8

Minimal Reproductible Example (MRE)

  photoFrameBuffer = esp_camera_fb_get();
  photoFrameLength = photoFrameBuffer->len;
  photoFrame += String( (char *) photoFrameBuffer->buf, photoFrameLength );
  AsyncWebServerResponse *response = request->beginResponse( 200, "image/jpeg", photoFrame );
  request->send( response );

I confirm that:

  • I have read the documentation.
  • I have searched for similar discussions.
  • I have searched for similar issues.
  • I have looked at the examples.
  • I have upgraded to the lasted version of ESPAsyncWebServer (and AsyncTCP for ESP32).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions