Я получаю сообщение об ошибке ниже при отправке сообщения служебной шины, и оно размещено в контейнерах Docker в Kubernetes.
Вы проверили токен SAS, он действителен и имеет разрешения «Управление». используя тот же токен, я могу отправить сообщение в служебной шине topi c в моей локальной среде, но не работает в контейнере. и выдает ошибку ниже.
UnauthorizedError:
at translate (/consumer/node_modules/ (at translate (/consumer/node_modules/@azure/amqp-common/dist/index.js:908:17)at translate (/consumer/node_modules/@azure/amqp-common/dist/index.js:908:17): azure/amqp-common/dist/index.jsat translate (/consumer/node_modules/@azure/amqp-common/dist/index.js:908:17): 908)
at Receiver.messageCallback (/consumer/node_modules/ (at Receiver.messageCallback (/consumer/node_modules/@azure/amqp-common/dist/index.js:1230:35)at Receiver.messageCallback (/consumer/node_modules/@azure/amqp-common/dist/index.js:1230:35): azure/amqp-common/dist/index.jsat Receiver.messageCallback (/consumer/node_modules/@azure/amqp-common/dist/index.js:1230:35): 1230)
at Receiver.emit (at Receiver.emit (events.js:194:15)at Receiver.emit (events.js:194:15): events.jsat Receiver.emit (events.js:194:15): 194)
at emit (at emit (/consumer/node_modules/rhea-promise/dist/lib/util/utils.js:129:24)at emit (/consumer/node_modules/rhea-promise/dist/lib/util/utils.js:129:24): /consumer/node_modules/rhea-promise/dist/lib/util/utils.jsat emit (/consumer/node_modules/rhea-promise/dist/lib/util/utils.js:129:24): 129)
at Object.emitEvent (at Object.emitEvent (/consumer/node_modules/rhea-promise/dist/lib/util/utils.js:140:9)at Object.emitEvent (/consumer/node_modules/rhea-promise/dist/lib/util/utils.js:140:9): /consumer/node_modules/rhea-promise/dist/lib/util/utils.jsat Object.emitEvent (/consumer/node_modules/rhea-promise/dist/lib/util/utils.js:140:9): 140)
at Receiver._link.on (at Receiver._link.on (/consumer/node_modules/rhea-promise/dist/lib/link.js:252:25)at Receiver._link.on (/consumer/node_modules/rhea-promise/dist/lib/link.js:252:25): /consumer/node_modules/rhea-promise/dist/lib/link.jsat Receiver._link.on (/consumer/node_modules/rhea-promise/dist/lib/link.js:252:25): 252)
at Receiver.emit (at Receiver.emit (events.js:189:13)at Receiver.emit (events.js:189:13): events.jsat Receiver.emit (events.js:189:13): 189)
at Receiver.link.dispatch (at Receiver.link.dispatch (/consumer/node_modules/rhea/lib/link.js:59:37)at Receiver.link.dispatch (/consumer/node_modules/rhea/lib/link.js:59:37): /consumer/node_modules/rhea/lib/link.jsat Receiver.link.dispatch (/consumer/node_modules/rhea/lib/link.js:59:37): 59)
at Incoming.on_transfer (at Incoming.on_transfer (/consumer/node_modules/rhea/lib/session.js:361:22)at Incoming.on_transfer (/consumer/node_modules/rhea/lib/session.js:361:22): /consumer/node_modules/rhea/lib/session.jsat Incoming.on_transfer (/consumer/node_modules/rhea/lib/session.js:361:22): 361)
at Session.on_transfer (at Session.on_transfer (/consumer/node_modules/rhea/lib/session.js:749:19)at Session.on_transfer (/consumer/node_modules/rhea/lib/session.js:749:19): /consumer/node_modules/rhea/lib/session.jsat Session.on_transfer (/consumer/node_modules/rhea/lib/session.js:749:19): 749)
at Connection.(anonymous function) [as on_transfer] (at Connection.(anonymous function) [as on_transfer] (/consumer/node_modules/rhea/lib/connection.js:804:30)at Connection.(anonymous function) [as on_transfer] (/consumer/node_modules/rhea/lib/connection.js:804:30): /consumer/node_modules/rhea/lib/connection.jsat Connection.(anonymous function) [as on_transfer] (/consumer/node_modules/rhea/lib/connection.js:804:30): 804)
at c.dispatch (at c.dispatch (/consumer/node_modules/rhea/lib/types.js:910:33)at c.dispatch (/consumer/node_modules/rhea/lib/types.js:910:33): /consumer/node_modules/rhea/lib/types.jsat c.dispatch (/consumer/node_modules/rhea/lib/types.js:910:33): 910)
at Transport.read (at Transport.read (/consumer/node_modules/rhea/lib/transport.js:109:36)at Transport.read (/consumer/node_modules/rhea/lib/transport.js:109:36): /consumer/node_modules/rhea/lib/transport.jsat Transport.read (/consumer/node_modules/rhea/lib/transport.js:109:36): 109)
at SaslClient.read (at SaslClient.read (/consumer/node_modules/rhea/lib/sasl.js:328:26)at SaslClient.read (/consumer/node_modules/rhea/lib/sasl.js:328:26): /consumer/node_modules/rhea/lib/sasl.jsat SaslClient.read (/consumer/node_modules/rhea/lib/sasl.js:328:26): 328)
at Connection.input (at Connection.input (/consumer/node_modules/rhea/lib/connection.js:538:35)at Connection.input (/consumer/node_modules/rhea/lib/connection.js:538:35): /consumer/node_modules/rhea/lib/connection.jsat Connection.input (/consumer/node_modules/rhea/lib/connection.js:538:35): 538)
at TLSSocket.emit (at TLSSocket.emit (events.js:189:13)at TLSSocket.emit (events.js:189:13): events.jsat TLSSocket.emit (events.js:189:13): 189)
Может ли кто-нибудь помочь, как решить эту проблему? Заранее спасибо!