What is your goal?
I want to solve this problem
What is the problem & what have you tried?
The data type error. My file type is jpg and image size is same as the make provide and everything work perfectly but this instagram uploading not working
Error messages or input/output bundles
ββ'{DataError
Only photo or video can be accepted as media type. (9004, OAuthException)
Origin
Instagram for Business (Facebook login)
Automatic error handler
If you want to handle this error automatically, choose one of the following options. This will create a new error-handler route in your scenario. You can then expand the route in any way you like.}βββ
Screenshots (scenario flow, module settings, errors)
Hello,
Could you please add a few more details- where does the image come from? Is the image available via a publicly accessible URL? Is it really JPEG?
This error is quite common, and in about 99% of cases the issue lies in the scenario configuration.
Occasionally it can also be a temporary issue on the Instagram (Meta) side. However, if the error occurs every time, it is most likely related to the first case.
How to debug it? Provide URL which is for sure publicly available and run scenario.
Also- are you following image requirements for Instagram?
Photo Requirements
- Maximum file size: 8MiB
- Aspect ratio: Must be within a 4:5 to 1.91:1 range
- Minimum width: 320 (will be scaled up to the minimum if necessary)
- Maximum width: 1440 (will be scaled down to the maximum if necessary)
- Height: Varies, depending on width and aspect ratio
- Format: JPEG only
Please note that your image must be hosted on a publicly accessible URL. You cannot use files from Google Drive even if they are shared publicly: the Instagram API is not able to download files from there.
For other similar services, you may need to adjust the URL with a replace function. You can search the web for [service name] raw file link to try to find workarounds.