AntTP - Serving Autonomi data over HTTP

At least it will be memorable! :sweat_smile:

3 Likes

Thats what we used to call my aunt Phyllis

3 Likes

I’ve pushed a new version (0.3.17) which now connects to the live network!

Github Releases: Release v0.3.17 · traktion/AntTP · GitHub

Docker Hub Releases: https://hub.docker.com/repository/docker/traktion/anttp/general

Docker is easiest, with instructions in the link above.

To use, setup a spare, regular, browser to use AntTP as a proxy server. Details here: AntTP - Serving Autonomi data over HTTP - #55 by Traktion

11 Likes

Great to see this updated and working on the new network so quickly!

I’m trying to dabble on a Windows machine. Are there any instructions on how to get it running?

Do I also need to so something with ANT client?

I downloaded anttp.exe, but can’t figure out what to do with it on windows.

I hope it soon becomes easy to do a fork of an an open source browser, bake in ANT client, and Anttp, so non-advanced users can just download the browser & stick in a URL to load from the network :slight_smile:

1 Like

Apologies for it not being easier - I’ve not had chance to take the rough edges off yet! :sweat_smile:

I’ve not tried running it on Windows, but it should be something like this:

anttp.exe 0.0.0.0:8080 static http://ignored alsoignored

I want to move the args to named pairs and/or a config file, especially as the last 2 don’t even do anything now! Refinement will come… :sweat_smile:

Once you have the above running, you then use localhost:8080 as your proxy server in a browser and you should be able to browse XOR addresses then, as http://xor. See test uploads topic for some links.

EDIT: note, docker takes some of that complexity out. It needs docker installed though!

2 Likes

Thanks.

I tried without luck, then tried using docker, but again can’t get anything loading in firefox with the proxy settings seemingly correct.

I’ll try to figure it out, as it’d be cool to have a play with what’s on the network!

Keep up the great work, and I’ll be ready when it’s easier :smile:

1 Like

Thanks for giving it a try! Maybe someone else with Windows has got it working and can help too?

If Docker exposes the port, it should allow Firefox to connect. Sometimes it also takes a few moments to startup too.

1 Like

I’ve pushed another version, which is mostly a clean up to remove stale code, dependencies, warnings, etc.

Also, I’ve simplfied the CLI options to use sensible defaults with no arguments and removed unused arguments too.

Github: Release v0.3.18 · traktion/AntTP · GitHub

Docker is also updated too: https://hub.docker.com/repository/docker/traktion/anttp/general

5 Likes

You may want to try the latest binary. You can just run it with no args and it should be ready to roll!

2 Likes

Thanks.

Unfortunately still no luck for me.

It’s clear that it starts trying to connect when I refresh a site on Firefox with the proxy settings, but it fails to connect.

I tried this URL: http://a0f6fa2b08e868060fe6e57018e3f73294821feaf3fdcf9cd636ac3d11e7e2ac/BegBlag.mp3

…and it still didn’t work, despite a lot of activity in the terminal indicating it was trying.

I then used ant to download it and it worked right away.

Not sure what the issue is, but if anyone else gets it working on Windows, let me know :slight_smile:

1 Like

Strange!

Any joy from this URL in a regular browser with AntTP running on localhost?

http://localhost:8080/a0f6fa2b08e868060fe6e57018e3f73294821feaf3fdcf9cd636ac3d11e7e2ac/BegBlag.mp3

That one doesn’t use the proxy.

I’ll try and install a Windows test VM later to see if I can replicate it too.

Thanks again for helping to debug! :sweat_smile:

2 Likes

Unfortunately no progress… though, I’m running on a machine that never once managed to get nodes running & earning with Node Launchpad, so maybe there’s an issue my end I’m unaware of.

Keep up the great work!

2 Likes

I stripped out the verbose logging and spotted the error when running the binary directly. In needs a ‘cache’ directory where the executable is ran. It uses this to store the archive structures to speed up subsequent requests.

I’ve changed the default logging to see the wood for the trees and will do something about creating a temporary directory for caching automatically. That will have to wait until tomorrow though.

@DavidMc0 if you’re at a loose end this evening, try creating the ‘cache’ directory where you are running the exe and see if that helps.

EDIT: To add, I’m getting some timeouts on chunks too. Not sure if something has changed in the API that I need to update. Going to do some more tests. I should get some time tomorrow. I think it may actually be my wifi… everything is slow! :rofl:

EDIT2: Yeah, mostly my wifi I think. Killed my 50 laptop nodes to give my wifi a breather and can now download stuff with the lone binary (with ‘cache’ directory created)

2 Likes

That was it! Added the cache folder, and now I’m bopping to BegBlag and playing tetris from Autonomi :smiley:

Thanks for your work on this… brilliant!

3 Likes

Awesome! Sorry for the bugs! It was a bit rushed through this week.

Now time to clean up the code and then add uploads! :muscle:

3 Likes

I’ve pushed another version, which is mostly refactorings and a minor bug fix. It still doesn’t create the cache directory, so see above if running without docker.

Github: Release v0.3.19 · traktion/AntTP · GitHub

Docker is also updated too: https://hub.docker.com/repository/docker/traktion/anttp/general

2 Likes

Forgive my lack of forum searching. Has there been any news from MS about Safe browser being updated to Antbrowser?

2 Likes

The person you want to speak to is Dave.

Dave has been sidelined for a while, until more pressing issues are dealt with.

Meantime chheck out @traktion at Github: Release v0.3.19 · traktion/AntTP · GitHub

1 Like

Another wee release, which should address the missing cache directory issue. Now, it is created as a system temporary directory (e.g. /tmp/anttp_cache)

Github: Release v0.3.20 · traktion/AntTP · GitHub
Dockerhub: https://hub.docker.com/repository/docker/traktion/anttp/general

P.S. I couldn’t test it on Windows and I’m not 100% sure how it will handle the directory path. If something could give it a try, it would be appreciated. If it fails, you can still go back to 0.3.19 and create a cache direct where the executable is as a stop-gap.

7 Likes

I’d lose the underscore if I were you. Imagine typing that in the web browser. snhttp is easier than sn_http

Yeah I can see THAT needing to be fixed eventually. that’s like making a domain .canada or .unitedstates or .commercial instead of .ca, .us and .com. Suffixes should be 3 characters at most. how about .ant? Or .atmi? I’d go with .ant myself.

2 Likes