558 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Bought between 10 and 49 items
  • Contributed a Blog Post
  • Exclusive Author
  • Germany
  • Has been a member for 4-5 years
+1 more
radykal says

Since yesterday I got mails that clients can not sign up in my support forum which is using the envato api to confirm the purchase. I just tried a simple call from my web server and it does not return the json.

1.
var_dump(file_get_contents("http://marketplace.envato.com/api/edge/USERNAME/API-KEY/verify-purchase:550e8400-e29b-41d4-a716-446655440000.json"));
2.
$url ="http://marketplace.envato.com/api/edge/USERNAME/API-KEY/verify-purchase:550e8400-e29b-41d4-a716-446655440000.json";
$ch = curl_init($url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$json_res = curl_exec($ch);
var_dump($json_res);

Of course I replaced username, api key and purchase code. When I put the json url in my browser, I can see it, but not working when I make a php call from my web server. Does anybody have the same issue?

Thanks, Rafael

2821 posts
  • Australia
  • Community Moderator
  • Elite Author
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Contributed a Blog Post
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+10 more
dtbaker Volunteer moderator says

If http://us3.php.net/curl_error says connect time out then the hosting provider may have blocked Envato or outbound connections. Try a curl call to google as well to confirm

558 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Bought between 10 and 49 items
  • Contributed a Blog Post
  • Exclusive Author
  • Germany
  • Has been a member for 4-5 years
+1 more
radykal says

Ok when trying it with google, its working. I also tried the public sets.

e.g. http://marketplace.envato.com/api/edge/total-users.json

Thats working, but the users sets are not working, only when putting the url in the browser. Total weird.

2821 posts
  • Australia
  • Community Moderator
  • Elite Author
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Contributed a Blog Post
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+10 more
dtbaker Volunteer moderator says

Try doing something like http://google.com/api/edge/USERNAME/API-KEY/verify-purchase:550e8400-e29b-41d4-a716-446655440000.json

The URL parameters may be triggering a block in some sort of new security package the hosting providers have setup.

Very strange, you’ll prob just have to setup a simple ‘test.php’ file for the hosting provider and ask them why it’s stopped working.

201 posts Marketplace Developer
  • Envato Staff
  • Envato Developer
  • New Zealand
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
madlep Dev says

Since yesterday I got mails that clients can not sign up in my support forum which is using the envato api to confirm the purchase. I just tried a simple call from my web server and it does not return the json. 1.
var_dump(file_get_contents("http://marketplace.envato.com/api/edge/USERNAME/API-KEY/verify-purchase:550e8400-e29b-41d4-a716-446655440000.json"));
2.
$url ="http://marketplace.envato.com/api/edge/USERNAME/API-KEY/verify-purchase:550e8400-e29b-41d4-a716-446655440000.json";
$ch = curl_init($url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$json_res = curl_exec($ch);
var_dump($json_res);

Of course I replaced username, api key and purchase code. When I put the json url in my browser, I can see it, but not working when I make a php call from my web server. Does anybody have the same issue?

Thanks, Rafael

Hey radykal

What IP are you connecting from? I’ll check the firewall blacklist to make sure it hasn’t been blocked. That happens sometimes if there is a lot of traffic coming from one IP.

558 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Bought between 10 and 49 items
  • Contributed a Blog Post
  • Exclusive Author
  • Germany
  • Has been a member for 4-5 years
+1 more
radykal says

Ok its working now again.

Thank you

4 posts
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • Referred between 1 and 9 users
jgwhite33 says

I’m having this exact same issue.

madlep, Can you check the blacklist for 100.42.52.168

Thanks!

201 posts Marketplace Developer
  • Envato Staff
  • Envato Developer
  • New Zealand
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
madlep Dev says

I’m having this exact same issue.

madlep, Can you check the blacklist for 100.42.52.168

Thanks!

I just checked the firewall, it hasn’t been blocked there.

What error are you seeing come back from the API? Are you getting a network connection issue, or are you seeing an HTTP error code instead, or some other problem?

4 posts
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • Referred between 1 and 9 users
jgwhite33 says

I’m just getting a curl timeout error, nothing else. I just filed a support request with my hosting provider. It’s weird because it has worked fine in the past. I can curl other domains fine. So it seams it must be either blocked on your end or at the hosting side.

thanks

4 posts
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • Referred between 1 and 9 users
jgwhite33 says

The hosting provider doesn’t see any reason it would be getting blocked on their side. I tried it on another site I have with them and it worked fine. Although the second site is on a VPS I wouldn’t think the settings would be that different than the shared hosting. I set up two test scripts.

http://freelogohub.com/curltest.php (does not work) http://etextalert.com/curltest.php (works)

Any ideas?

Thanks, Josh

by
by
by
by
by
by