572 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+6 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

3319 posts
  • Provided great contribution to our forums
  • Nominated Community Superstar of the month
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+18 more
dtbaker 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

572 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+6 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.

3319 posts
  • Provided great contribution to our forums
  • Nominated Community Superstar of the month
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+18 more
dtbaker 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.

236 posts Marketplace Developer
  • Has collected 1+ items on Envato Market
  • Member of the Envato Team
  • Located in New Zealand
  • Has been part of the Envato Community for over 2 years
madlep Envato team 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.

572 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+6 more
radykal says

Ok its working now again.

Thank you

4 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 1+ members
  • Has collected 1+ items on Envato Market
jgwhite33 says

I’m having this exact same issue.

madlep, Can you check the blacklist for 100.42.52.168

Thanks!

236 posts Marketplace Developer
  • Has collected 1+ items on Envato Market
  • Member of the Envato Team
  • Located in New Zealand
  • Has been part of the Envato Community for over 2 years
madlep Envato team 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
  • Has been part of the Envato Community for over 2 years
  • Has referred 1+ members
  • Has collected 1+ items on Envato Market
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
  • Has been part of the Envato Community for over 2 years
  • Has referred 1+ members
  • Has collected 1+ items on Envato Market
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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by