Go Down

Topic: Is there a server down somewhere? (Read 1 time) previous topic - next topic

Bob Pigford

Hello,

I have been trying to reach the code examples for the SD library (DumpFile, Files, ReadWrite, CardInfo) but I only get web errors (404 Not found).  I've been trying for a while.

Is there a server down somewhere?

Apologise for posting this here.  I don't know where else to ask.

     Bob

Coding Badly


Bob Pigford

The URL shown on the SD library linking to example(s) is:
http://arduino.cc/en/Turorial/DumpFile
(or the same URL with the last part changed to Files, or ReadWrite, or CardInfo)

The error messages I get are typically like this:

Warning: fopen(http://github.com/arduino/Arduino/raw/master/libraries/SD/examples/DumpFile/DumpFile.pde) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/arduino/public_html/en/cookbook/sourceblock.php on line 278

Warning: Cannot modify header information - headers already sent by (output started at /home/arduino/public_html/en/cookbook/sourceblock.php:278) in /home/arduino/public_html/en/pmwiki.php on line 810



Any ideas what I am doing wrong?
Thanks for your help,
     Bob


Coding Badly


You're getting "not found" errors because you misspelled "tutorial".

This is the root for the Tutorial section...
http://arduino.cc/en/Tutorial/HomePage

There is nothing there about the SD library but there is a link to "Libraries"...

The reference section has some information about the SD library...
http://arduino.cc/en/Reference/SD

Including a link to here...
http://arduino.cc/en/Tutorial/DumpFile

At the top of that page is the error you posted but the page appears to be intact.  The "Get Code" link results in a stream of errors but I assume it is meant to reference this...
https://raw.github.com/arduino/Arduino/master/libraries/SD/examples/DumpFile/DumpFile.ino

Bob Pigford

Sorry for my own typo in my post (wrong spelling of "Tutorial").  I had typed in that whole URL as I could not cut/paste it.  What I should have typed in the URL posted was "Tutorial" as you noted as that was the URL shown by my browser at the time.

Moving on...

Well, I did get to the one example code "DumpFile" using the link that you provided.  OK for that example.

However, going back to this page
     http://arduino.cc/en/Reference/SD
and using any of the four hot links to examples I mentioned earlier still evokes the same or similar error messages at the top of the screen.  Continuing on down that screen to the "Get Code" link creates only more and different error messages with no access to the example code.

So, thank you for providing a link that worked for that one example.  I will try to get to the other examples somehow.  I still think that there must be errors with the hot links to the examples on this page:    http://arduino.cc/en/Reference/SD

Clicking on those links should take the reader to the examples as occurs with other examples from other libraries.

Do you agree or am I still missing something?

Thank you for trying to help me.
     Bob



Coding Badly

#5
Dec 17, 2011, 10:19 pm Last Edit: Dec 17, 2011, 10:28 pm by Coding Badly Reason: 1
Clicking on those links should take the reader to the examples as occurs with other examples from other libraries.

Do you agree or am I still missing something?


I agree.  Those webpages are broken.

I try to focus on the things I can control or influence.  I have no control over those webpages and, as far as I can tell, no influence over those who do control those webpages.  I can provide you with some assistance in getting the information you seek so that is my focus.


Quote
I will try to get to the other examples somehow.  


For this error (Files example)...

Quote
Warning: fopen(http://github.com/arduino/Arduino/raw/master/libraries/SD/examples/Files/Files.pde) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/arduino/public_html/en/cookbook/sourceblock.php on line 278

Warning: Cannot modify header information - headers already sent by (output started at /home/arduino/public_html/en/cookbook/sourceblock.php:278) in /home/arduino/public_html/en/pmwiki.php on line 810


The original (broken) link is...
http://github.com/arduino/Arduino/raw/master/libraries/SD/examples/Files/Files.pde

The actual (working) link is...
https://raw.github.com/arduino/Arduino/master/libraries/SD/examples/Files/Files.ino

"raw" is removed from the document path; protocol changes from "http" to "https"; "raw" is added to the host name; file name extension is changed from "pde" to "ino".

The other broken links should follow the same pattern.

And, the examples are included with the Arduino software.  You can access them by...

* Start the Arduino IDE
* Click File then Examples then SD then the example you would like to load


Quote
Thank you for trying to help me.


You are welcome.

Bob Pigford

Dear Coding Badly,
Your help got me through this.  I have what I need now.
Thank you again!  Your genuine help and patience with a relative newcomer are VERY much appreciated!!!!
My very best regards to you,
     Bob

Coding Badly


Go Up