API Endpoint data empty, but receiving headers fine

Hi all,

hoping someone is kind enough to help.

Im using Photopea.com, which on save, is sending a http post to my bubble app, i have an endpoint setup and the initialization seems to go through ok.

The raw data is empty though. I receive headers, but no data.

Reading through the Photopea API docs here: Photopea API i noticed that the data being sent is binary data… 2000bytes of json and some image data. Content-Type is application/octet-stream.

I’m now wondering if the backend workflows can even receive this data properly? i cant see anything, options or settings that suggest it can. Although i am still a relative newbie.

This is the request data (without headers):

Thanks guys

I don’t think that API Connector will be able to manage this. I think you may consider creating a plugin to be able to work with this API call.

Hi Jici,

Thanks for the reply.

I haven’t had to use the API Connector for this. It’s purely just the backend workflows.

API endpoint just listening for a post from photopea.

Seems to just have an issue reading the data being sent.

I think…

Thanks,

Ok this is a kind of webhook
In this case I’m sure this will not work. Or not that way. It may be a lot more complicated and not sure it worth the time to try a workaround.
I don’t think actually application/octet-stream is handled by Bubble. You may consider sending data to a third party application like Zapier or Integromat. Maybe you can also create an endpoint in Bubble in JS that will handle the data sent (again, maybe a plugin too).

Thanks @Jici, I will try these options. Might be a good thing for bubble to implement in the future, accepting binary data!

1 Like