Hi guys,
I am encountering error with the HttpGet action from ArdoHTTP.
I have no issue with the mentioned action with most of the URLs but when I tried with https://www.facebook.com, it returns me the following error:
'"utf-8"' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.Parameter name: name
Anyone came across such error / how do you solve it?
I tried passing contenttype application/json encoding:utf-8 but it doesn't help. Appreciate for any feedback/idea/solution on this issue.
Regards,
Kenny
Hi @Yung Shin ,
I have tried to consume this test endpoint and able to consume this using encoding "UTF-8". So I dont find any issue with this component.
May I know the reason to consume this endpoint https://www.facebook.com. Would you provide the detailed context for consuming this.
Hi, I tried with this URL and I encountered the error.https://personal-9rpjqwc0.outsystemscloud.com/SandboxReactive/ Here is my personal environment for you to test.The reason why I want to consume that endpoint is that we want to validate the dynamic URL stored is reachable, I've tried with JS but due to CSP we've implemented, it was blocked. Any suggestion to ping to see if the URL is valid and reachable?
Note that a valid URL is not sufficient in our requirement. Regards,
Thank you for detailed explanation.
I recommend you to use this forge component
Ping
Also I have created a test page to test any Url
Demo Link
Hi Rajan, I’ve tried your demo and also installed on my environment, all the result returned false, do I have to include anything?
The url I tried is https://www.google.com and https://facebook.com
Just tested again, seems like it doesn't accept https protocol in the input. I'll test further, thank you a lot for your input.Edit: Used back the oml you've posted yesterday and it doesn't work on my environment. Do I have to set anything on my end?
Hi @Yung Shin,
Now I have included a functionality to test the complete URL along with Host / IP address.
Below is the latest link to test the functionalities
Test Link
Please find the XLF & OML of both extension and demo module.
Note: Please use this extension because I have added a new action to check the URL is reachable or not. So that functionality is not available in the mentioned forge component.
Please let me know if you need any clarification on the implementation.
Hi Rajan,
Thanks for sharing the extension and the oml. However, I could not install the extension on my end as it says error during compilation in the integration studio. I've tested out your URL and it is indeed working. Not sure if it is due to our CSP that is blocking the ping status but I don't see it in the console/log.
Regardless, thanks for sharing!