Sorry, you need to enable JavaScript to visit this website.

You are here

Get Subscription 404

13 posts / 0 new
Last post

Daniel Sills's picture
by Daniel Sills

Get Subscription 404

Hi,

I'm using the free trial and am getting a 404 RESOURCE-NOT-FOUND error when running 'Get Subscription' in Postman.

I've sucessfully completed these steps :

* Generate OAuth token
* Create Subscription
* Free Trial Bnum (using 1 mobile number - my own)

I was unable to send an SMS (404 RESOURCE-NOT-FOUND error), and pehaps it is because I did not have a subscription?

Have I done something wrong? Or is that something at your end?

Thanks,

Daniel.

 

 

Vinodh Seshadri's picture
by Vinodh Seshadri

Get Subscription 404

Hi Daniel,

If you are getting 404 error using free trial keys, there are 2 possible issues.  1. You have created new keys and not using the default one "Free Trial APIs" OR 2. The destination number is incorrect (but in your case don't think this is causing the issue).

This issue also discussed in another thread here and resolution has been provided.  Could you please check this forum and provide your response in the below post if you still face issues?

https://dev.telstra.com/content/error-404-resource-not-found

 

Regards,

Vinodh

Daniel Sills's picture
by Daniel Sills

Hi Vinodh,

Hi Vinodh,

1. I have only been using the "Free Trial APIs" client key and client secret. I have double checked I've copied and pasted them correctly into Postman under client_id and client_secret.

2. I have double checked my own destination number (the "to" field when sending an SMS).

I'm still getting a 404 when I attempt to 'Get Subscription'. I can provide the destinationAddress, expiryDate and activeDays result from 'Create Subscription' if you like?

 

Vinodh Seshadri's picture
by Vinodh Seshadri

Get Subscription 404

Hi Daniel,

I checked using your keys and was able to reproduce the issue.

Let me check with our engineering team and provide you an update.  Regret the incovenience this may have caused.

Regards

Vinodh

Vinodh Seshadri's picture
by Vinodh Seshadri

Get Subscription 404

Hi Daniel,

we are going through some database syncing issue which has resulted in many of our developers/customers getting errors randomly which include get subscription returning 404 error if create subscription was done after 11th June.  In your case, the create subscription actually failed in the backed due to sync issues but since it is a async call, you have received a successful response.

We are working on to resolve this issue and it's going to take a while to fix this.  Until we fix the issue you will not be able to use the keys, Sorry about that!

I shall provide you an update as soon as I get it from our engineering team.

GET Subscription error:

{
    "status""404",
    "code""RESOURCE-NOT-FOUND",
    "message""Invalid resource. Refer to API docs at https://dev.telstra.com"
}

Vinodh Seshadri's picture
by Vinodh Seshadri

Get Subscription 404

Hi Daniel,

Our engineering team has fixed this in the backend.  Please do GET subscription and then perform POST Send SMS please?

Note: We have already created subscription for you as part of the fixing the issue.

Regards

Vinodh

Daniel Sills's picture
by Daniel Sills

Thank you

I've sucessfully sent myself an SMS message now using the trial.
We all know there are hurdles with software development, and I understand the issue(s).
After some further development, our team will purchase the paid version within the week.
Thank you Vinodh and your team for resolving the issue in a timely manner :)

Vinodh Seshadri's picture
by Vinodh Seshadri

Get Subscription 404

Appreciate your patience and continued support Daniel.  Glad to note that you are able to send SMS successfully.  I look forward for your updates once the trial is successful.

Just to let you know for the paid version, you will need to setup a company within TelstraDev (dev.telstra.com).  For the company setup it takes 2-3 business days (best case scenario) to set you up.  I will be able to assist you in the company setup when you are ready.

Regards

Vinodh

Daniel Sills's picture
by Daniel Sills

Hi Vinodh,

Hi Vinodh,

I am attempting to use the PHP sample app (https://dev.telstra.com/content/messaging-api#section/Getting-Started/Sample-Apps) and am running into a similiar problem as above. 

I am using XAMPP on my PC to act as a localhost servers.

I have updated config.php with my free trial keys, and when entering my phone number to send an sms via index.php, I get the following errors :
Notice: Undefined index: messages in C:\xampp\htdocs\mylocale.com.au\telstra\start.php on line 25

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\mylocale.com.au\telstra\start.php on line 25

If I put a line var_dump($result); on line 23 of start.php and retry, I receive the following output :
array(3) { ["status"]=> string(3) "404" ["code"]=> string(18) "RESOURCE-NOT-FOUND" ["message"]=> string(62) "Invalid resource. Refer to API docs at https://dev.telstra.com" }

Can please assist.

Everything is still working in Postman, just not the PHP Sample App.

Thanks,

Daniel.
 

 

Vinodh Seshadri's picture
by Vinodh Seshadri

PHP sample app

Hi Daniel,

Engineering team will provide resolution for this issue.  However, the sample App for PHP has not been updated for some time so please allow us to get back to you later next week.  I shall reach out to you if there is anything else we need.

Regards

Vinodh  

Michelle Howie's picture
by Michelle Howie

PHP Sample App

Hi DANIEL SILLS,

Thanks for raising the issue of the PHP App with us. Unfortunatey our sample apps have been depreciated and no longer maintained, sorry that this was not clear in the documentation. We will be removing the apps from the API documentation so other developers don't get stuck too.

 

The good news is, our TelstraDev team is currently revisiting the existing SDKs for the Messaging API, starting with node.js. Look forward to full parity to the API, more meaningful error responses, and plenty of sample code to get you started. It's already there under the refactor branch for now: https://github.com/telstra/MessagingAPI-SDK-node and will be pushed to master after some more testing!

 

Is there anything in the PHP app specifically that you were looking forward to that helps your development? I'd love to understand more so we may consider that in future releases and future development languages!

 

Cheers,

-Michelle, Developer Advocate

Daniel Sills's picture
by Daniel Sills

Yes, we are sorry too.

Yes, we are sorry too.

My manager quoted : "You dont need a good network until you do"

I could quote your video about over 100 years of Telstra/Telecom supporting the... but I will contain my complaint now.

Specifically we want to send a bulk SMS to approximately 15,000 people per month (at least) who agreed to the terms and conditions of signing up to our app - which relies specifically on PHP.

Again, I understand coding is difficult for some.

Michelle Howie's picture
by Michelle Howie

TelstraDev apps and SDKs not yet updated

Hi Daniel,

The PHP sample app was an example of what can be developed with the API at the time, written by a citizen developer 4 years ago (not authored or maintained by Telstra). As you've demonstrated the API is still working for you in postman, so no issue with the network here! It's really not good enough from our end to have out-dated sample apps and SDKs in our documentation. We will be removing reference to those, until if/when they are updated.

 

At this stage we are putting focus into a smaller selection of languages that we will reliably maintain, the first of which is the node.js SDK: https://github.com/telstra/MessagingAPI-SDK-node/tree/refactor/modernize-sdk

 

All our API examples are in curl, which is supported by PHP by default it looks: https://www.php.net/manual/en/curl.examples-basic.php. This may require some translation of the examples, but will be great to kick start your development.

 

We do have an old PHP repo which could be a good starting point: https://github.com/telstra/MessagingAPI-SDK-php, but it is not up to date, and we haven't prioritised PHP as our next language for uplifting the API SDKs.

 

Apologies again that our out of date links in the documentation led you astray, and that it has delayed your development. All the best with getting up and running with PHP!

Log in or register to post comments