codingSW
codingSW
CDCloudflare Developers
Created by codingSW on 9/25/2023 in #workers-help
Worker and temp picture for Twitter
My idea was to leave the picture in R2 as a backup, before this code I have a part of the code that writes the URL into my D1 database and then after that, we go with this and set images in R2. I changed the function call a bit but still without success. I think I will give up on the Worker and switch to Vercel but I really wanted to keep the server on Cloudflare because I really like the service 😦
6 replies
CDCloudflare Developers
Created by codingSW on 9/25/2023 in #workers-help
Worker and temp picture for Twitter
The last thing I did was this, however, there were hundreds of ideas and versions before that... and error (log) Starting media upload to Twitter... (log) Preparing FormData... (log) Making fetch call for media upload... (log) Fetch call completed. (log) HTTP Status: 400 (log) Received data: {"request":"/1.1/media/upload.json","error":"media type unrecognized."} (error) Failed to upload media to Twitter
6 replies