question

Puneeth Bharadwaj avatar image
Puneeth Bharadwaj asked ·

Error code 404 and CMN-102 even if the subscription exists.

Following is our subscription id - 0a84e146-ca2b-4577-9d49-e784a8cdc1e3. When we try to renew it from our code, it throws a 404 error. We are able to renew it from the API reference page.

Following is our code.

try
            {
                using (RestClient rc = new RestClient("tOwXT1UcSMOKodEO6-PCFw"
                                                    , RINGCENTRAL_CLIENTSECRET
                                                    , true))
                {
                    TokenInfo token = await rc.Authorize("+16822823056"
                                                        , RINGCENTRAL_EXTENSION
                                                        , RINGCENTRAL_PASSWORD);

                    if (rc.token.access_token.Length > 0)
                    {
                        subscriptionInfo 
                            = await rc.Restapi()
                                .Subscription("0a84e146-ca2b-4577-9d49-e784a8cdc1e3")
                                .Renew()
                                .Post();
                    }
                }
            }
            catch (FlurlHttpException fhEx)
            {
                ins_error_log log = new ins_error_log();
                log.runSP(fhEx, false);
            }
            catch (ObjectDisposedException odEx)
            {
                ins_error_log log = new ins_error_log();
                log.runSP(odEx, false);
            }
            catch (Exception ex)
            {
                ins_error_log log = new ins_error_log();
                log.runSP(ex, false);
            }


faxsubscriptionfaxerrorcoderenew
1 comment
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Following are the list of subscription ID that were created, but cannot be renewed using the code or web portal

8a8154a5-4844-4b66-9a76-aebac7081d89

ddba9f85-660e-44a2-a547-88104516fa691604802117536.png

0 Likes 0 ·
1604802117536.png (90.6 KiB)

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

This subscription id "0a84e146-ca2b-4577-9d49-e784a8cdc1e3" is not listed in your reference list. Can you call the list subscription API to read all subscriptions and check if the subId above does exist?

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys