I do not get any response from the API at all.
I have updated all my .net frameworks to ensure I am sending TLS1.2 and I am cofident the script is correct.
Is there any chance that the IP address I will be using in Sri Lanka are in some way blocked by the API rules. I have set any IP address on my Beds24 configuration but maybe youare doing some high level whitelisting.
I have send the code to a friend in the UK who is using the same POS system and he has tested from the UK and it works perfectly. Is there some geo tag or IP group that prevents this working.
My Public IP is 112.134.151.61 although i do not have a static IP, this is generated by my ISP
Posting Json values from different application
-
- Site Admin
- Posts: 935
- Joined: Fri Mar 02, 2012 1:43 pm
The IP whitelisting can be set by you for the APIKey at menu Settings > Account > Account Access
Can you get it to work if you disable the whitelist for your ApiKey?
Can you get it to work if you disable the whitelist for your ApiKey?
-
- Posts: 35
- Joined: Tue Mar 21, 2017 10:56 am
I have whitelist switched off. It should work with any IP address.
I wondered if beds24 applied a higher level of access particularly to particular geographic areas. As I deatiled in the previous posting, i have tested the same script, from the same POS system through a PC located in the UK and this worked. The test returned a good connection and the script updated Beds24 as intended. From here I get nothing, not even an error message.
I have experienced other systems needing to be activated for my region (Sri Lanka). Just wondering if this is also the case for your API. Access to Beds24 is not affected and I can use the system fine except for this Integration.
I wondered if beds24 applied a higher level of access particularly to particular geographic areas. As I deatiled in the previous posting, i have tested the same script, from the same POS system through a PC located in the UK and this worked. The test returned a good connection and the script updated Beds24 as intended. From here I get nothing, not even an error message.
I have experienced other systems needing to be activated for my region (Sri Lanka). Just wondering if this is also the case for your API. Access to Beds24 is not affected and I can use the system fine except for this Integration.
-
- Site Admin
- Posts: 935
- Joined: Fri Mar 02, 2012 1:43 pm
There is no specific geo blocking policy in place.
Do you get a response if you ping api.beds24.com from your server?
Do you get a response if you ping api.beds24.com from your server?
-
- Posts: 35
- Joined: Tue Mar 21, 2017 10:56 am
I have just tried to ping both the following
www.api.beds24.com
www.beds24.com/api/
api.beds24.com/json/modifyProperty
On all these it says the ping request cannot find the host.
I can access through a browser no problem.
www.api.beds24.com
www.beds24.com/api/
api.beds24.com/json/modifyProperty
On all these it says the ping request cannot find the host.
I can access through a browser no problem.
-
- Site Admin
- Posts: 935
- Joined: Fri Mar 02, 2012 1:43 pm
Perhaps it is the DNS on your server, try putting the domain and IP address in your hosts file
-
- Posts: 35
- Joined: Tue Mar 21, 2017 10:56 am
Well I can ping api.beds24.com and www.beds24.com and they work.
However if I try to ping www.beds24.com/api/ this does not work. Neither will api.beds24.com/json/modifyProperty/
Respose is host not reachable.
However if I try to ping www.beds24.com/api/ this does not work. Neither will api.beds24.com/json/modifyProperty/
Respose is host not reachable.
-
- Site Admin
- Posts: 935
- Joined: Fri Mar 02, 2012 1:43 pm
ping will only work on the domain. If the following work from your server, then you are not being blocked.
ping www.beds24.com
ping api.beds24.com
ping www.beds24.com
ping api.beds24.com
-
- Posts: 35
- Joined: Tue Mar 21, 2017 10:56 am
I am still experiencing issues with access to the API from my POS application.
I have spent a long time ensuring that TLS 1.2 is set and I now seem to get some communication going. I am monitoring on Netmon and seem to get an encrypted Alert responce - maybe a Cipher issue?
I get a client hello and a response back from the api
i get TLS:TLS Rec Layer-1 HandShake: Client Key Exchange.; TLS Rec Layer-2 Cipher Change Spec; TLS Rec Layer-3 HandShake: Encrypted Handshake Message.
followed by TLS:TLS Rec Layer-1 HandShake: Encrypted Handshake Message.; TLS Rec Layer-2 Cipher Change Spec; TLS Rec Layer-3 HandShake: Encrypted Handshake Message.
Then some data interchange finally get the following
TLS:TLS Rec Layer-1 Encrypted Alert
Any ideas if this is a valid post or what the problem may be.
I have spent a long time ensuring that TLS 1.2 is set and I now seem to get some communication going. I am monitoring on Netmon and seem to get an encrypted Alert responce - maybe a Cipher issue?
I get a client hello and a response back from the api
i get TLS:TLS Rec Layer-1 HandShake: Client Key Exchange.; TLS Rec Layer-2 Cipher Change Spec; TLS Rec Layer-3 HandShake: Encrypted Handshake Message.
followed by TLS:TLS Rec Layer-1 HandShake: Encrypted Handshake Message.; TLS Rec Layer-2 Cipher Change Spec; TLS Rec Layer-3 HandShake: Encrypted Handshake Message.
Then some data interchange finally get the following
TLS:TLS Rec Layer-1 Encrypted Alert
Any ideas if this is a valid post or what the problem may be.
-
- Site Admin
- Posts: 935
- Joined: Fri Mar 02, 2012 1:43 pm
I found this by googling your error.
https://blogs.msdn.microsoft.com/tdever ... ted-alert/
It sounds like there may still be a weak Cipher being used by your application
https://blogs.msdn.microsoft.com/tdever ... ted-alert/
It sounds like there may still be a weak Cipher being used by your application