Jump to content

Recommended Posts

I'm trying to use FujiNet in an Atari CC65 program to fetch JSON data from HTTP.

 

I made a local copy of a data file and am serving it with the minimal python http server. This worked great and I have the data displaying.

 

I then switched to the real URL and I wind up with truncated data. Variants of the URL to fetch different data sets also fail the same way. The data loads fine in a browser (directly or via JS). I checked with some URLs on other servers and they all load properly.

 

I've included the log output of a minimal test program. It just performs an open, status, close, status sequence on the local URL and then on the remote URL. The local file was directly saved from the remote URL.

 

The notable differences are during the status call after the open call:

 

-- local --

[17:49:08] 0000ab07 _perform status = 200, length = 10460, chunked = 0

[17:49:08] sio_status_channel() - BW: 10460 C : 1 E: 1

 

-- remote --

[17:49:20] 0000d9c5 _perform status = 200, length = -1, chunked = 1

[17:49:20] sio_status_channel() - BW: 3944 C : 1 E: 1

 

opentest.txt

Edited by Teapot
10 hours ago, Teapot said:

[17:49:20] 0000d9c5 _perform status = 200, length = -1, chunked = 1

Are you running the latest firmware version v1.2.0? I see the server is using chunked transfers which should have been fixed in the firmware last August.

Updated the firmware and it works as expected now.

 

In the early days of having the FujiNet I updated as soon as I saw an announcement. It became an automatic activity and I stopped actually thinking about it.  Then the automatic got disrupted. And I continued to not think about it.

 

I don't know when I stopped, the firmware I replaced isn't in the drop-down list. I only know it happened after the flasher update that changed the baud rate.

 

Anyway, thanks.

 

  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...