I am attempting to use the endpoint here to get a direct creator upload link for the TUS Client:
https://developers.cloudflare.com/api/operations/stream-videos-initiate-video-uploads-using-tus
But when testing the request in postman i am getting the following error:
Is there any reason why this is happening?
This error code means that the request payload is too large — are you inadvertently trying to send the video or something else in the body of the request? (can’t tell from your screenshot)
You describe wanting to use direct creator uploads, but it looks like the request you’re making, and the docs you linked to, are for using TUS to upload a video yourself, from your own application. The API endpoint for direct creator uploads is documented here:
1 Like
I am getting the same error for POST to the correct URL for Direct Upload
https://api.cloudflare.com/client/v4/accounts/{account_identifier}/stream/direct_upload
It worked the first 2 times I tried it, I got the correct response. Then every time I tried after it now gives the 7011 “Request entity is too large”. I am sending the same request that worked the first 2 times but now get error. This is just requesting a new upload and not uploading anything
I tried again 30 minutes later, now it works, same request
Now getting same error 7011 “Request entity is too large”
I see, looks like requesting a Stream Upload URL creates a “pending” video which takes up 90 minutes of your video storage space until the default 30 minutes are up and link expires. That seems very inconvenient and not documented anywhere. You would think something as important as 10 links taking up your entire 1000 minute video space would not throw inaccurate errors “Request entity is too large”
1 Like
How about a more descript error: “Max storage limit reached”
Or maybe don’t count each pending video link as 90 minutes towards your total limit? Seems a little strange.
1 Like