=ImportData(".../index.html") works fine and populates the cells below with
<html>
<body>
<h1>
a,b,c,d <br />
1,2,3,4 <br />
It works! <br />
</h1>
</body>
</html>
But in the script attached to this spreadsheet I have the following code:
var response = UrlFetchApp.fetch(".../index.html",{use_Intranet: 'yes'});
But all I get is "Bad Request" in the red banner, in debug mode.
I attempted to use X-secureDataConnectorDebug
and muteHttpExceptions, to debug the response, but no
avail.
I tried both URLEXACT and HOSTPORT in the rules file, but only the spreadsheet calls through ImportData work.
A non-Intranet call with FetchURL to a MS-SQL Reporting Server works fine with authentication, too. But, the same call through the SDC fails. It appears the agent is only able to return static resources, not a response from a report server. The same failure occurs attempting to use ART 2.4.1 with an Oracle connection to the same database, rendering the expected results on the local browser, but not through the SDC.
It may be that the SDC is being deprecated, since there is no apparent benefit over generating static files with SQL Server supershell scripts and syncing them through Google Drive and reading those through Apps Script.
Let me know if you do have success and how.
Thanks,
Dan B.
Matt,
http://mysdc.me.com/contacts.csv?cacheBuster=7238
If Spreadsheets happens to catch and cache an error for your server, you can increment the number in the param until the cache clears.
Best regards,
-Eric
--
You received this message because you are subscribed to the Google Groups "enterprise-data-questions" group.
To post to this group, send email to enterprise-d...@google.com.
To unsubscribe from this group, send email to enterprise-data-qu...@google.com.
For more options, visit this group at http://groups.google.com/a/google.com/group/enterprise-data-questions/?hl=en.
Hi,Thanks Dan!Matt and Dan: The only piece I have to add (from an earlier post by a member of our team) is that you may be able to get around the heaving caching Google Spreadsheets does on the importData command (incl. caching of errors) by modifying a dummy URL param. E.g.http://mysdc.me.com/contacts.csv?cacheBuster=7238
If Spreadsheets happens to catch and cache an error for your server, you can increment the number in the param until the cache clears.
Best regards,
-EricOn Thu, Dec 6, 2012 at 3:33 PM, Dan B. <daniel....@flycfm.net> wrote:
Matt,The SDC service is crashing, but I'll try your suggestions.Did you make <appId> be your Apps Script Project Name?
The X-secureDataConnectorDebug=true (or =text per other sources) doesn't populate with anything other than "true" or "text" in the debug inspection.How did you include in the FetchURL, as an object and quotes?
Thanks,Dan