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.

Can't use setBucketNotification with minio server

See original GitHub issue

Hi, 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:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kannappanrcommented, Jul 1, 2019

MinIO doesn’t support TopicConfig, the examples were written for generic S3 servers. I agree that we should change the examples to use QueueConfig instead of Topicconfig, so users can verify it with MinIO instead of AWS S3

0reactions
PacoDucommented, Jul 1, 2019

I finally find the issue after digging in the source code.

I have to use minio.QueueConfig instead of minio.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.

Read more comments on GitHub >

github_iconTop 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 >

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