-
Hi, Endpoint to upload image to instagram is not working. My code is : Endpoint.Media.Posts.upload(image: image, captioned: "test")
.unlocking(with: secret)
.task { (response) in
if case .success(let unit) = response {
// unit.media is nil
}
else if case .failure(let error) = response {
print(error.localizedDescription)
}
}.resume() |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Hey @khaliddd, |
Beta Was this translation helpful? Give feedback.
-
@sbertix its not working even WITHOUT caption. |
Beta Was this translation helpful? Give feedback.
-
Hahaha "great". I hope to get to test it soon. |
Beta Was this translation helpful? Give feedback.
-
Ok so I tested it extensively and the feature still works as intended, so I'm assuming it probably doesn't work your end for one of these reasons:
But in order to be sure, do you mind changing the logging level and sending me on Telegram the output (as it for sure contains sensitive info so don't post it here)? Endpoint.Media.Posts.upload(image: image, captioned: "test")
.unlocking(with: secret)
.task { (response) in
if case .success(let unit) = response {
// unit.media is nil
}
else if case .failure(let error) = response {
print(error.localizedDescription)
}
}
.logging(level: .full) // Just add this.
.resume() I suggest replicating the upload test in |
Beta Was this translation helpful? Give feedback.
-
@sbertix it worked when I tried to upload image without alpha components in it. |
Beta Was this translation helpful? Give feedback.
Ok so I tested it extensively and the feature still works as intended, so I'm assuming it probably doesn't work your end for one of these reasons:
But in order to be sure, do you mind changing the logging level and sending me on Telegram the output (as it for sure contains sensitive info so don't post it here)?