Forum

Post a new question

Categories:

Tags:

Request to WMSpanel API issue

api
Oleg 2016-12-10 06:11:00 UTC in WMSPanel functionality
Ea5590c528d608d4dcfc45163b68dedb

I'm trying to make requests to wmspanel api for my new server, but something is going wrong.

- I added the ip address of my server into the whitelist (Control->API setup->Pull API->Whitelist)
- I am trying to execute wget 'https://api.wmspanel.com/v1/routes/?client_id=aaa&api_key=bbb' from console my server
- I get the error "ERROR 403: Forbidden."
- I added the ip address of my PC in the whitelist. Tried the browser to load the url https://api.wmspanel.com/v1/routes/?client_id=aaa&api_key=bbb. And it works.

Is there a possibility of additional information about the cause forbidden error for my server?
The settings are so simple that I can't understand what my error is.

Thanks in advance for any advice.

Oleg 2016-12-10 06:30:15 UTC
Dc6ef0ce8f25f2cea3d629973736604b

I want to add more information about the error:

Resolving api.wmspanel.com (api.wmspanel.com)... 2400:cb00:2048:1::6814:520c, 2400:cb00:2048:1::6814:510c, 104.20.81.12, ...
Connecting to api.wmspanel.com (api.wmspanel.com)|2400:cb00:2048:1::6814:520c|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-12-10 01:26:51 ERROR 403: Forbidden.

Max 2016-12-10 06:34:38 UTC
Ba425406063261ec184229ed0d5a200d

Hello Oleg,

Please use IPv4 when making API calls (e.g. there is -4 option for curl).

Oleg 2016-12-10 06:35:42 UTC
Dc6ef0ce8f25f2cea3d629973736604b

I try to do it from server that doesn't support ipv6. I remove ip this server from whitelist. It looks like this:

Resolving api.wmspanel.com (api.wmspanel.com)... 104.20.81.12, 104.20.82.12, 2400:cb00:2048:1::6814:510c, ...
Connecting to api.wmspanel.com (api.wmspanel.com)|104.20.81.12|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-12-10 06:32:07 ERROR 403: Forbidden.

It seems the problem is in ipv6...

Oleg 2016-12-10 06:36:32 UTC
Dc6ef0ce8f25f2cea3d629973736604b

Thanks

Post a reply