Giter Club home page Giter Club logo

Comments (4)

wangjiangshan avatar wangjiangshan commented on May 12, 2024

Exception in thread "main" com.aliyun.openservices.ons.api.exception.ONSClientException: Receive a broker exception, Topic: wangjs-ons, com.aliyun.openservices.ons.api.impl.authority.exception.AuthenticationException: valid permission failed., com.alibaba.ons.open.auth.validator.PermissionValidator.aliyun(PermissionValidator.java:66)
但ACCESSKEY和SERETKEY都是对的

from ons.

smellmine avatar smellmine commented on May 12, 2024

仔细看下,有可能是该topic:wangjs-ons不属于producerID

from ons.

xc145214 avatar xc145214 commented on May 12, 2024

ons的demo项目里报这个错,是不是因为AccessKey和SecretKey的设置不正确?

com.aliyun.openservices.ons.api.exception.ONSClientException: Receive a broker exception, Topic: EC_TEST, com.aliyun.openservices.ons.api.impl.authority.exception.AuthenticationException: check from ubsms failed. enable=false, com.alibaba.ons.open.auth.ubsms.UbsmsServiceManager.isResourceEnabled(UbsmsServiceManager.java:91)
See https://github.com/alibaba/ons/issues/5 for further details.
    at com.aliyun.openservices.ons.api.impl.rocketmq.ProducerImpl.checkProducerException(ProducerImpl.java:106)
    at com.aliyun.openservices.ons.api.impl.rocketmq.ProducerImpl.send(ProducerImpl.java:147)
    at ons.example.producer.OnsProducer.send(OnsProducer.java:53)
    at ons.example.producer.OnsProducer.main(OnsProducer.java:84)

from ons.

renfufei avatar renfufei commented on May 12, 2024

有一种情况。是使用了阿里云的 RAM 子账号权限体系。那么,需要在Topic管理的地方,授权给子账号或者其他账号。

from ons.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.