Most of the time both methods work, but i am having problems in the afternoon hours CET (for example right now - it public-api does not work). Also this site does not have robots.txt.
Like you said - there SHOULD be no diference between console and public-api and thats a THEORY. But, trust me, I have no reason to lie, there IS a diference between those two, so that's a FACT.
Someone have any idea how and why?
I am having the same issue. Here is what I know.
- When accessing my website from my home, I have
never had this error even after thousands of test calls. When accessing my website from my computer at work, I get this error at least half the time.
- The error occurs only during business hours EST, although this is the only time I am at work so this may be coincidental.
- Sometimes the $.getJSON call takes
exactly 30 seconds to fail, sometimes it fails immediately on call. If I wait 30 minutes or so it will start working again.
- Any other domain I access from the same page with YQL works fine. I have only one remote domain that causes this error.
- Same query always works fine in console.
- Same results with both IE and FF.
- Robots.txt on remote domain has no exclusions.
I believe this has something to do with the network my browser is on, although this sounds very odd and I am at a loss as to why this might be the case. The evidence however seems to support.
Here is the response:
CODE
<?xml version="1.0" encoding="UTF-8" ?>
- <query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2010-02-08T06:27:30Z" yahoo:lang="en-US" yahoo:updated="2010-02-08T06:27:30Z" yahoo:uri="http://query.yahooapis.com/v1/yql?q=select+*+from+html+where+url%3D%22+http%3A%2F%2Fremote_domain.com%22">
- <diagnostics>
<publiclyCallable>true</publiclyCallable>
<forbidden>robots.txt for the domain disallows crawling for url: http://remote_domain.com</forbidden>
<user-time>3</user-time>
<service-time>0</service-time>
<build-version>4265</build-version>
</diagnostics>
<results />
</query>
- <!-- total: 4
-->
- <!-- yqlengine3.pipes.mud.yahoo.com uncompressed/chunked Mon Feb 8 10:27:30 PST 2010
-->