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

returns null without any exception #15

Open
aligurelli opened this issue Jan 24, 2023 · 17 comments
Open

returns null without any exception #15

aligurelli opened this issue Jan 24, 2023 · 17 comments

Comments

@aligurelli
Copy link

aligurelli commented Jan 24, 2023

trying to upload a photo but response returns null without any exception. couldn't figure out why.

 Future<String?> addPhotoToAws(File path) async {
    String bucketName = "*****";

    final response = await AwsS3.uploadFile(
      accessKey: "*****",
      secretKey: "******",
      file: path,
      bucket: bucketName,
      region: "eu-central-1",
    );

    return response;
  }

any idea?

@aligurelli
Copy link
Author

@Serdnad i am getting 400 Bad request error when I debug the library. can you help?

@Bill550
Copy link

Bill550 commented Jan 31, 2023

did you find any solution for this? I'm having the same problem.

@koukibadr
Copy link

Same problem any solutions ?

1 similar comment
@koukibadr
Copy link

Same problem any solutions ?

@aligurelli
Copy link
Author

did you find any solution for this? I'm having the same problem.

unfortunately:( just decided to handle s3 logic in backend. this is how we solved the problem

@koukibadr
Copy link

@aligurelli try upgrade to the latest package version 1.5.0, I had a similar issue but it's resolved when I did upgrade the version to the latest

@aligurelli
Copy link
Author

@aligurelli try upgrade to the latest package version 1.5.0, I had a similar issue but it's resolved when I did upgrade the version to the latest

thats a great news! but we already moved s3 handling to backend side. thank you for letting me now! if you are sure that problems has been fixed i can close the issue.

@koukibadr
Copy link

For me that was the fix, you can check it with your code if the problem is solved or not
and also verify the ACCESS KEY and the SECRET KEY used

@ghost
Copy link

ghost commented Apr 6, 2023

I'm getting the same issue where I don't get any error message and it the string returned is null. So can anyone suggest any solution for that?

@shinriyo
Copy link
Contributor

Because this is null

https://github.com/Serdnad/aws_s3_upload/blob/master/lib/aws_s3_upload.dart#L113

@shinriyo
Copy link
Contributor

shinriyo commented Apr 29, 2023

if (res.statusCode == 204) return '$endpoint/$uploadKey';

only 204 returns result.

@shinriyo
Copy link
Contributor

@Serdnad

are you still maintainance the project?

@Serdnad
Copy link
Owner

Serdnad commented Apr 29, 2023

I'll occasionally review and merge PRs made against this repo, but most of my work these days isn't around Dart/Flutter, so it's admittedly not a very high priority for me. @shinriyo

That said, I did notice you just opened a PR, I'll take a look. Thanks!

@bbig979
Copy link

bbig979 commented May 2, 2023

I am having same problem. @Serdnad @shinriyo

Getting 400 Bad request.

@levi956
Copy link

levi956 commented May 23, 2023

Still, is there any official fix, I'm having the same problem.

@nishantmandal
Copy link

Apr 6, 2023

same issue happened with me did you get any solution?

Repository owner deleted a comment from smartevin Feb 23, 2024
@rajpalanand
Copy link

Same issue

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

9 participants