Subcribe to new chanel then get a bug of permission

Hi @olhadanylova ,
I would create the chanel automatically from programming.
I used subscribe() as you recommended but get this error:

{code=0, details={}, message=You don`t have permission to take action on this service ‘messaging’ and this operation ‘subscribe’, subject ‘F351E150-5867-4EAB-92DB-7B63D564604B’ is wrong }

Would you please recommend me a way to solve it?

Many thanks,

Hello again,

Could you please provide your APP_ID and a code snippet of how do you subscribe for the channel?

Regards,
Olha

Hello,
Sure,

  • My app ID: 71192546-77B7-C21C-FFCF-605970F91A00
  • My code :
    Channel channel =
    await Backendless.messaging.subscribe(model.value.objectId);

and fyi, model.value.objectId is a string parameter

Unfortunately I cannot reproduce this issue with REST API. I’ve created an internal ticket BKNDLSS-25180 for our Flutter dev.

Regards,
Olha

@olhadanylova thank you!
Looking forward to hear back from you soon

Hi @Minh_Tuan_Vu

This is a known issue. The error is because you try to subscribe to the channel that doesn’t exist. The current solution is: first create the channel and then subscribe to it.
We have also created the internal ticket to discuss this issue: BKNDLSS-22155. We will update you with a progress.

Best Regards,
Maksym

1 Like