Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"int too big to convert" on uploading media #608

Open
7 of 24 tasks
haririan opened this issue Apr 8, 2024 · 11 comments
Open
7 of 24 tasks

"int too big to convert" on uploading media #608

haririan opened this issue Apr 8, 2024 · 11 comments

Comments

@haririan
Copy link

haririan commented Apr 8, 2024

Important note

  • You must fill this form! If you don't fill it, your issue will be close immediately.
  • Put an X character between [ ] that is related to your issue, like [x]
  • Please remove Important note from this form!
  • Don't remove other sections (unless it's unnecessarily, like Debug logs and Screenshots sections)!

I've:

Issue category

  • Bug
  • Feature Request
  • Missing Feature
  • Question
  • Not sure

Language

  • C#
  • VB.NET

Usage

  • Windows Form/Console app
  • WPF app
  • Asp .NET MVC
  • Asp .NET Core
  • Universal Windows Platform [UWP]
  • Xamarin or Xamarin Forms
  • Mono
  • Other

Operating System

  • Windows
  • Windows Server
  • Linux
  • Mac OS
  • Other

Describe your issue

this is how i try to add image
var mediaImage = new InstaImageUpload
{

            Height = 0,
            Width = 0,
            Uri = @"ali.jpg"
        };
     
        var result = await api.MediaProcessor.UploadPhotoAsync(mediaImage, "COMMENT");

Screenshots

image
@fancifulcoder
Copy link

Hello, were you able to solve the problem?

@SailleshPawar
Copy link

I am also facing the same issue in .net core.
image

@fancifulcoder
Copy link

I was able to solve it this way.

image

image

@SailleshPawar
Copy link

@fancifulcoder I am still facing the same error.
Though If I use the repository examples project it works for me seems like some library is missing for me.

@rickmsg79
Copy link

@fancifulcoder or @SailleshPawar did you come up with a solution? I'm facing the same error. I'm using a jpg of 115kb, so it's already very small.

@SailleshPawar
Copy link

@rickmsg79 I just stopped using this library due to no support of .NET core.
If you use the sample project in the repo and use the required dependencies then it works fine,

@rickmsg79
Copy link

@SailleshPawar thanks! what do you end up using for net core? another library?

@SailleshPawar
Copy link

SailleshPawar commented Jun 22, 2024

got the warning from instagram that the account will be blocked so stopped using it and stopped the poc for now.

@marciusbezerra
Copy link

marciusbezerra commented Aug 8, 2024

I have the same problem here, however, I decided to create my own service within my project, which handles the entire oAuth flow until sending the media.

There is no way to depend on this component.

@marciusbezerra
Copy link

To fix the error, I did this in the source code I received...

image

The method was returning a very large number that should just be an integer for Instagram.

This way it worked, if they accept a PullRequest I can even send it, but for now I'm using it this way for myself.

ramtinak added a commit that referenced this issue Aug 23, 2024
@ramtinak
Copy link
Owner

ramtinak commented Aug 23, 2024

Hi,
Sorry to all of you, I don't check this repository regularly,
I'll update uploading parts (story/video/DM/reels) in next few weeks as a gift to all of you.

Also ReelsProcessor added in case if someone uses it.
Thanks for contributing.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants