question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

listen_bucket_notification() failed with IOError

See original GitHub issue

I tried to listen for changes on my bucket. The call client.listen_bucket_notification('mybucket') results in the following exception:

Traceback (most recent call last): File “C:\Python27\lib\site-packages\minio\api.py”, line 516, in listen_bucket_notification query=query, preload_content=False) File “C:\Python27\lib\site-packages\minio\api.py”, line 1861, in _url_open query=query) File “C:\Python27\lib\site-packages\minio\helpers.py”, line 224, in get_target_url str(value)).replace(‘/’, ‘%2F’) File “C:\Python27\lib\nturl2path.py”, line 61, in pathname2url raise IOError, error IOError: Bad path: s3:ObjectCreated:*

I use:

  • Windows 7
  • python 2.7.13
  • minio python library 2.2.2
  • minio server Version: 2017-05-05T01:14:51Z Release-Tag: RELEASE.2017-05-05T01-14-51Z Commit-ID: 40985cc4e3eec06b7ea82dc34c8d907fd2e7aa12

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vadmestecommented, May 17, 2017

I can confirm that I have the same problem but only under Windows. I’ll investigate further.

0reactions
harshavardhanacommented, May 17, 2017

Also tried using urllib.quote() instead. Seems to work for me too. Do you add that to the next release?

We will add it to the next release… @vadmeste can you send a fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

MinioClient (api 8.2.1 API) - javadoc.io
IOException - thrown to indicate I/O error on S3 operation. NoSuchAlgorithmException - thrown to indicate missing of MD5 or SHA-256 digest library.
Read more >
Java Client API Reference — MinIO Object Storage for Linux
Thrown to indicate I/O error on S3 operation. ... listenBucketNotification( ListenBucketNotificationArgs.builder() .bucket("bucketName") .prefix("") ...
Read more >
https://raw.githubusercontent.com/minio/minio-java...
IOException | Thrown to indicate I/O error on S3 operation. ... listenBucketNotification( ListenBucketNotificationArgs.builder() .bucket("bucketName") ...
Read more >
io.minio.MinioClient Maven / Gradle / Ivy - Download JAR files
@see #builder() */ @Deprecated public MinioClient(String endpoint) throws ... @throws IOException thrown to indicate I/O error on S3 operation.
Read more >
io.minio.MinioClient.listenBucketNotification java code examples
listenBucketNotification() example. */ public static void main(String[] args) throws IOException, NoSuchAlgorithmException, InvalidKeyException, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found