Skip to main content
Question

REST API Get method return 404 not found.

  • November 6, 2024
  • 6 replies
  • 115 views

Forum|alt.badge.img+1

Hello everyone,

I’m new learning AA, I’m now try to use action ‘Get method’ from under REST Web service in the order to get information of exchange rate from Bank Of Thailand web service.

But It always return with 404 not found.


I’ve tested same URL on simple test browser and return 401 unauthenticated. (on AA should be return the same).

Could you suggest what I wrong?

Thank you in advance.

6 replies

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+16
  • Most Valuable Pathfinder
  • 3275 replies
  • November 6, 2024

Hi @BirdThongchai,

It appears that the API URI you are using is incorrect, which is causing problems in retrieving the exchange rates. To resolve this, we need to obtain the correct endpoint from the Bank of Thailand Web service

 

 

 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • November 6, 2024

Thank you @Tamil Arasu10 ,

I’m sure the URL is correct. here below same URL tested successfully reply on Postman.

Do we’ve another way to debug more error detail in AA?

Thank you.


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+16
  • Most Valuable Pathfinder
  • 3275 replies
  • November 6, 2024

Thank you for the info.

How you are authenticating the URL ?

Are you using the client ID and secret ID to generated token ? or Directly connecting?

 

 

 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • November 6, 2024

Yes, I have client ID and secret ID to connect.

May be I type it wrong field on AA. could you review screen below and correct me please.

 


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+16
  • Most Valuable Pathfinder
  • 3275 replies
  • November 6, 2024

Please follow the article which helps to fix the issue. 

Note : You have pass client ID and Secret ID in the Parameter section.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • November 7, 2024

Hi @Tamil Arasu10 ,

 

I using Get Method, there are no field Parameter section to pass Client ID and Secret ID. Do I need to use always Post Method before Get?

 

I’ve try added in Custom headers and now return error 400.

 

Here below API Key Authentication Parameter setup on Postman and it’s working well, how can I apply them on AA? any suggestion?

 

This is link of Exchange rate API desccription: https://apiportal.bot.or.th/bot/public/node/503

Thank you. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings