Can't use setBucketNotification with minio server
See original GitHub issueHi, I can’t find a wait to use setBucketNotification with minio server and amqp notifications.
I have a minio server with amqp notification enabled and I can set notification from mc client with:
mc event add myminio/mybucket arn:minio:sqs::1:amqp --prefix myprefix/
But when I try to set notifications from the minio-js client it returns this error:
S3Error: MinIO server does not support Topic or Cloud Function based notifications.
I’m unable to reproduce this example with a minio server : https://github.com/minio/minio-js/blob/master/examples/set-bucket-notification.js
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
JavaScript Client API Reference — MinIO Object Storage for ...
There is no prior set bucket notification needed to use this API. This is an MinIO extension API where unique identifiers are registered...
Read more >minio - npm
The MinIO JavaScript Client SDK provides simple APIs to access any Amazon S3 compatible object storage server.
Read more >minio - Go Packages
Configuration) error; func (c *Client) SetBucketNotification(ctx context. ... AdvancedGetOptions for internal use by MinIO server - not intended for client ...
Read more >How To Set Up MinIO Object Storage Server in Standalone ...
With the MinIO server running, you can restart it using: mcli --insecure admin service restart myminio. Copy. You cannot ...
Read more >io.minio.MinioClient.setBucketNotification java code examples
putObject. Uploads given file as object in given bucket. · <init>. Creates Minio client object with given URL object, access key and secret...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
MinIO doesn’t support
TopicConfig
, the examples were written for generic S3 servers. I agree that we should change the examples to useQueueConfig
instead ofTopicconfig
, so users can verify it withMinIO
instead ofAWS S3
I finally find the issue after digging in the source code.
I have to use
minio.QueueConfig
instead ofminio.TopicConfig
, I think this should be documented in the official minio doc, we faced the issue with javascript and python clients. This is due to the notification configured through amqp I suppose.