News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Error code 404 and CMN-102 even if the subscription exists.
Tags: fax, errors
Nov 7, 2020 at 11:25am   •   2 replies  •  0 likes
Puneeth Bharadwaj

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);
            }


on Nov 7, 2020 at 6:22pm   •  0 likes

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

1 Answer
answered on Nov 9, 2020 at 8:15am  

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?


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us