Eating and drinking link don’t work
Splitting path '/drinking.html'
...into '/' and 'drinking.html'
Looking for resource at '/'
DEBUG Tree looking up 'drinking.html'
DEBUG lookup_name_in_vec(drinking.html)
Retrying for index file in new_resource_path '/drinking.html/'
FAILED to find resource for path: '/drinking.html' in:
{"/.dweb/history-address/": [("b719b34d662b670cc2f7b2ee89a1d33293ffb36d1dddadc807527a8913cb52ea7eb9b9d22293454d2e612ccfab4400a6", "81a54669727374939400dc00204f71ccc3ccdb7bcc95ccbaccd80a6eccd6125a2dccab2acc9657ccb5ccd9ccf518ccc4ccc455ccb311cc96ccd3ccf6cca139dc0020ccdbccf2cce1cccdccd03bccfccce4ccbe563220cca74a7fcca6cca13c2f21cc8e0248ccbaccc967cc87ccabcce65ecc99ccdcce000123179401dc0020cc8064cc8112cc9fcca6ccbcccf5151e4a4ccc87ccfc6d455650cc980dcc9a11cc8c7ccc83cced01cc90ccdbccc8cca341dc0020cc891d5677cc8267ccd7ccf6ccaf7acccb75ccde01ccb3cc81cc88cc82cc8c354f135cccd9cc836b48cc85ccf601ccebcce6ce000123179402dc00206accd622cccf50ccf5ccb4ccbccca738027bccd1ccceccc95f222173020921ccb000cc82ccd43a1ecc80cce2cce3ccfedc0020386cccc344360619157d6541ccd2ccbf7dcc866ecca812ccc424cc841c43cc81ccf1cc8563ccab353bccc3ccf4ce00012318", "", Metadata { created: 0, modified: 0, size: 1, extra: None })], "/css/": [("shopping.css", "81a54669727374939400dc00201ecc9ccca6cc9377ccdaccb3ccb61c50ccc4cce7ccff7318cca0cc92cceccc98ccffcc927ecca323cc87cc8568ccf44eccce5a39dc0020cc84cce25671ccc11d5ecc81272d3bcc8e524f4914ccc2cccc34cccccceacca7ccc762ccc165cccd07ccdeccf7ccbcccf9ccbf9401dc0020ccfcccb37bccb800ccdf3f28ccdaccccccadcca82030ccee257f20464fcca4ccb4cc96ccfc6b7dccfb532a7d6accbadc0020ccd67eccc3cc9f5c3d19cce9cc8bccb4ccb514cc8e70ccbbccf17c003303cce2ccec706a0acca417cce66c3dccfb2fccbf9402dc002054ccd93f0b3fcc8675ccee7eccec3dcc8c0ccc82ccc1403acccacca155cccacca6ccfe2dcc8800172911cceecca4cc9edc0020cceaccef48ccbf6ccc9cccf3ccb1ccc84354cccfcc866dccd55c66cced76cca147cc814b7f08cc9fccb3ccef58ccc9ccf4cccfccc0", "", Metadata { created: 1727271824, modified: 1727284130, size: 574, extra: None }), ("southside.css", "81a54669727374939400dc002068cc9accb1ccdf0cccb3ccf01208cc9b2dcce86cccd14ecceb2f697bcca2ccf9cca740cc80cc8f60cc87ccf2290ecc83ccafdc0020cc8b62ccce586e01cc89ccf5ccf5ccf0ccc87e0acceecc8ccce37313385b2c48cce65b2b77ccd23f347b0ccce0cd01e99401dc0020cce91721ccfdccccccc357ccbd193c4cccf6ccd5190c27ccb1cce3ccbe3750307fcc8bcce1ccae5a49cc8d661a19dc0020143d0c222725cc852ccc9cccec5545cce920cc9ccca32b226f26ccca47cc8b06ccd1cc8bcce9286a41ccf2ccd1cd01e99402dc0020cc894722ccac3c4c64cc84cc89cca22eccf8cc9e2bccb4cc86cce03973cc82ccc2cccb6acce02f31ccf5512158cca556dc0020cce3cc8accc26c13ccedccfdcce8cccd23ccacccaacce4ccaaccd9ccb7cc9547ccd9ccf0cc93524441ccd5cc850c7f6dcc91ccb9ccc2cd01eb", "", Metadata { created: 1640368854, modified: 1745787514, size: 1469, extra: None })], "/": [("index.html", "81a54669727374939400dc0020cca022005334cc8e6240cc8dccb401ccc673095b27ccacccc6386f214b09cce4ccdfcca1505f70cc8304cce0dc00202bcca9ccc5cca83160ccdb0c12ccb8751bcceacc9c033accb16bccbbcce90dccb1ccc60cccd447ccf42bcc86ccadcccdccb6ccd29401dc00201acccb4009ccbf68ccc4cccbccb858ccca555876704ccccecc9accccccc7ccb9cca9cc911342cc8e4a3238070cccc0dc002045ccaf39ccfdccb5cccccc80cce73f080644ccbdcc9ecccdccf34ccccf7acc853eccf2332931cc9bccd6ccc5cca6cce70728ccd29402dc00206a7e26ccf869cc8c5eccbf2fcceccc851ecccbccfa58cca655cc8418ccbccccd4eccf1cc8c7b351c65ccfacc882076dc0020456807ccd2cc8423670ecc916bccfeccacccf31814cc9728ccbc01cc97cc913421ccbf08221b4eccebccc13bccb6ccd3", "", Metadata { created: 1640368854, modified: 1727271004, size: 631, extra: None }), ("mince.md", "81a54669727374939400dc00204cccc4cccb76cccacc8278ccb3426378ccf31eccb268cc9fcc895ecc8fcc87cc823bccc771cceaccbb02ccc1ccc2cca7770fdc0020cc9cccc3ccbcccc2cc9bccf4cca4ccbcccd1cc97cc82ccbacccacca95051ccc168cc96ccc84411ccaacca4cca32d22ccb350ccaa671ecd01089401dc002076cca8ccc7ccf2ccb6ccaccccaccd56a4041097a6acc85ccc778ccc6ccc662ccc1ccc84c7b4e583fcce1cc8b39ccae01dc0020ccadcc82cca3ccd36cccd46527cc8c737b5614cce63554cc8905ccd8ccd527cc96ccdfccc91812ccc53d1e11ccf6ccc1cd01089402dc0020340627cca5ccfbccd4cc9ecc82ccbdccd263ccc8ccbc717dcc875c09cca114ccdd52061fcc8b1d30ccc0ccd0ccfccc9d67dc00206046cc917cccaccced4bccf0cc821dcc9b0b4a7d67ccf13a524b75ccf7cc814e31cca83d07cc941026ccbf2ecd0109", "", Metadata { created: 1736466018, modified: 1736466028, size: 793, extra: None }), ("shopping.html", "81a54669727374939400dc0020ccd9ccfaccac39ccf6ccc426cca879ccdacc9acc80ccd1ccd8ccc0cc9f0030cc96ccedcc83ccdc6a3bccd956ccbcccc7cc82cc94cc886adc0020cce6ccccccf8cccb6fccd46d1d140acc91cc8b2753233accb9ccb91d55783d141d385b70023d0547ccfdcd01109401dc002010cc99ccd4cc94ccafcc9dcc84cc967e4e54ccb2cc91ccfd72ccc27736ccdccc803bcc957cccec53ccb005cce6337603cc80dc002006cc85ccda0fcc9ccc9eccfe19cca5cce3cc803e6bccf5cc9265ccf6cce3cce315cc811b5acc88ccecccc4cce8ccaa23672c0bcd01109402dc002040ccb36cccbd3cccdacceb67cce16a4006ccde5f1721ccf9cca3ccac7eccffccd230ccb454560ccc8dcc8bcca8ccadccecdc0020ccb2cc8dccea36ccbdccaecccfcca60571ccb81ecc8532291fccc7391dcc803953ccb6ccaa3cccb7ccad37cca96e3064cd0110", "", Metadata { created: 1727271046, modified: 1727284768, size: 816, extra: None })], "/media/images/": [("38_jamaica_st.jpg", "81a54669727374939400dc002071120eccdacccc716bcc96cc95cca5cca2ccd3ccc7cc9c67cc846835ccb6ccf5370666ccb07cccbbccf814cc91cce730cc8edc0020cce4ccc246ccc653cc86ccfecce70e5eccf5ccdfcc8957cc8f7b04ccb5ccec4acca1ccabccc256cc91cccb42cc8629ccd248ccb4cdf36b9401dc0020cccc5fcca912511fcc81cccd6a00ccd65e28ccb4ccf139ccc2cc83cca7ccd0596d783fcc8f2bcc8a0cccca14ccde45dc0020ccd96dcc941acc83cca65f123cccc52d3fcca31432cce6ccc8cc88771bccdecc8acc8dccdcccb3ccd4ccbc741766cc915bcdf36b9402dc00207c0dccc3ccd81accd304ccacccf3cc9e06ccbbcc8f5fccb9ccc3ccc8cc827d0c26586953cc8eccd86bcc827dccb373ccffdc00204cccf3ccfa1bccc9185327194f32ccf22e7324cca7ccdbccf2ccc82a096577ccdacccecc85cce6ccd0ccae25cccaccc6cdf36b", "", Metadata { created: 1640368854, modified: 1640368854, size: 186945, extra: None }), ("skirving_st.png", "81a54669727374939400dc0020ccbfccc91b12cce844cca4cc994a45ccb66a16ccbfcca10358ccc2ccd4ccb8ccabccc3cca6ccf9cc9a51cce84accbf1dcca219dc00200eccb367785577cca64938ccf5ccaecce0ccba7a07ccaf24ccdf7a1e6fcceecca36fcccaccee79332e2119cc95ce0007da519401dc0020ccb763547f457acc8fcc9a41ccc914cc9d04ccadccebccd069cc844fccfc6fcc83ccb4cce6ccdc4d43ccb23bccd43eccf8dc0020ccea21cca47bcc892f05ccfbccb7cceecc880175cca560ccf0ccba05ccb52a75cc8a00cc8bcc8eccdc4dcca36bccd3ccd45dce0007da519402dc0020ccb41420ccf56963ccb7ccdcccd562cc91cce92c4cccbc7bcc87ccda696d6d6ecc9d2bccb6ccfbcce4cce1192d0eccbadc0020cce0ccd1486dccf36a206e394bccf5ccd4cc84cc9e4743ccffccdacca4cc9acc8d36cca31acc9eccf9ccdacce4cc851f7fccc3ce0007da51", "", Metadata { created: 1727271666, modified: 1727271667, size: 1543923, extra: None })]}
DEBUG serve with ports HttpResponse: 404 Not Found (Tree::lookup_file(/drinking.html) failed)
DEBUG serve with ports HttpRequest : GET /favicon.ico
DEBUG www_handler(/favicon.ico)...
DEBUG our_directory_version:
port: 35777
history_address: Some(HistoryAddress { owner: PublicKey(1719..8867) })
version: None
archive_address: 40c159a125060e838e4fd087df2cfe34c7f711deb4f1659a61201bd8624cc830
Thanks @Southside and @19eddyjohn75 - looking at this I’ve spotted some strangeness, possibly multiple bugs either in dweb or Pointers, so this is very helpful.
Thats cos these pages dont exist yet
I was going toadd them but when it cost me >£6 to upload what I have , it kinda fell off the list of priorities .
I’ll try again later with a max gas parameter
When did you publish the first version wrt Autonomi net updates?
A couple of days back on @qi_ma 's patch.
I will try an update using the stable version
No need, this won’t have anything to do with Qi Ma’s patch.
I just wanted an idea of when the pointer was created because it looks like it might not be being updated still. They had a fix for this so I will investigate and update the issue if that appears to still not be working.
To confirm: no dweb bugs have been unearthed, just a file not yet uploaded and Pointers are still not updating on the live network. They are fine on my local testnet:
This is a shame because while dweb can cope with this, doing so makes it very slow. If it was working the site would load much quicker the first time you access it.
This only applies to versioned websites so it is still possible to access the site using the address of the PrivateArchive. So here are the commands to open these examples using the most recent archive rather than the History:
Run the dweb server with dweb serve
and then in another terminal:
@Southside’s:
dweb open 40c159a125060e838e4fd087df2cfe34c7f711deb4f1659a61201bd8624cc830
@aatonnomicc’s:
dweb open ddec1667f53d6814b07aeaf4d4ca8466a3fc10785889d9de122a4d93fb8178ca
You are referring to the non-working links @19eddyjohn75 and @scottefc86 found?
That was my laziness - no bug
In other news, no having much fun loading awesome…
willie@gagarin:~$ dweb serve
Dweb Autonomi client initialising...
DEBUG loaded wallet: 0xc753bA57E0F8Ba81bAcf73Ac1b9242733d39a646
DEBUG tokens: 7804496839993594887
DEBUG gas : 10349880503779000
-> public network evm-arbitrum-one
DEBUG: Registered built-in DWEB-NAME: awesome -> 8650c4284430522a638a6fa37dd3e8d610c65b300f89f0199a95a1a9eab0455287f8c8d137fad390654bd9f19b868a5c
dweb main server listening on 127.0.0.1:8080
DEBUG serve with ports HttpRequest : GET /dweb-open/v/awesome/
DEBUG /dweb-open/v/awesome/
DEBUG parse_versioned_path_params_with_as_name() v/awesome/
1:v 2: awesome r:
version:None as_name: anonymous, address_or_name: awesome remote_path:
DEBUG History::from_history_address(8650c4284430522a638a6fa37dd3e8d610c65b300f89f0199a95a1a9eab0455287f8c8d137fad390654bd9f19b868a5c)
>>TRYING pointer_get() unlimited times...
>>TRY 1 of unlimited
DEBUG serve with ports HttpRequest : GET /dweb-open/v/awesome/
DEBUG /dweb-open/v/awesome/
DEBUG parse_versioned_path_params_with_as_name() v/awesome/
1:v 2: awesome r:
version:None as_name: anonymous, address_or_name: awesome remote_path:
DEBUG History::from_history_address(8650c4284430522a638a6fa37dd3e8d610c65b300f89f0199a95a1a9eab0455287f8c8d137fad390654bd9f19b868a5c)
>>TRYING pointer_get() unlimited times...
>>TRY 1 of unlimited
failed to get pointer from the network - Network error
>>TRY 2 of unlimited
failed to get pointer from the network - Network error
>>TRY 2 of unlimited
failed to get pointer from the network - Network error
>>TRY 3 of unlimited
failed to get pointer from the network - Network error
>>TRY 3 of unlimited
failed to get pointer from the network - Network error
>>TRY 4 of unlimited
failed to get pointer from the network - Network error
>>TRY 4 of unlimited
failed to get pointer from the network - Network error
>>TRY 5 of unlimited
failed to get pointer from the network - Network error
>>TRY 5 of unlimited
failed to get pointer from the network - Network error
failed to get pointer from the network - Network error
>>TRY 6 of unlimited
>>TRY 6 of unlimited
failed to get pointer from the network - Network error
>>TRY 7 of unlimited
failed to get pointer from the network - Network error
>>TRY 7 of unlimited
failed to get pointer from the network - Network error
>>TRY 8 of unlimited
failed to get pointer from the network - Network error
>>TRY 8 of unlimited
failed to get pointer from the network - Network error
failed to get pointer from the network - Network error
>>TRY 9 of unlimited
>>TRY 9 of unlimited
failed to get pointer from the network - Network error
failed to get pointer from the network - Network error
>>TRY 10 of unlimited
>>TRY 10 of unlimited
failed to get pointer from the network - Network error
failed to get pointer from the network - Network error
>>TRY 11 of unlimited
dweb open southside fails as well - not surprised really. Still havent got to grips with the naming
Try dweb list-names
and if it is there it will show you the address it is trying to access.
working fine here that is so much faster going direct for the archive
willie@gagarin:~/projects/maidsafe/maqi/autonomi$ dweb list-names
main_server_request() request: http://127.0.0.1:8080/dweb-0/name-list
awesome 8650c4284430522a638a6fa37dd3e8d610c65b300f89f0199a95a1a9eab0455287f8c8d137fad390654bd9f19b868a5c
Ok, you may have set a name and then restarted the dweb server. For now it doesn’t save names so you may want to start it and then run a short script to add back your names.
Cool, as expected. The reason it is so slow using the History is that it steps through the entire history trying testing the existence of each GraphEntry to find the end. And the last attempt, which fails takes a loooong time to fail (~1 minute) because the entry doesn’t exist. Going direct avoids all that.
Once pointers are working it will be easy to revert to just reading the address from the most recent GraphEntry.
This same issue will apply to Registers BTW, so it isn’t just pointers but anything using them.
is what it is much more fun to play with now there is a bit of speed just going direct for an archive.
and i can upload a folder now with speed and reliability I am looking forward to playing more
This much is true.
You can still publish and update with dweb and make a note of the archive address with each publish-update, rather than just using the history address.
And if you forget use the following to get details of the entries and pick the “content” value for the highest numbered entry:
dweb inspect-history -pdfe 1: <HISTORY-ADDRESS>
That steps through the history from entry 1 to the last entry showing the details in each GraphEntry.
It’s 4:20 and blistering hot here, PIMMs is beckoning…
Work on Winsome… nooo, walk dog then drink PIMMs, work on Winsome… nooo, walk dog then drink PIMMs…
My life is so hard
Dang, I found another important task…
dweb v0.6.0
This is an important update but only for anyone building an app which uses mutable types via the REST API. This is currently limited to Pointer and Scratchpad (public and private), so not important for everyone. Anyone? IDK
The update introduces support for an App ID such as that used for the Autonomi API, and including this in dweb REST API requests. It ensures each app knows where it’s data is (address-wise) and won’t clash with that of other apps, though an app can still read public data created by another app.
Now out the back with a Stella and Little Feat country-funk at its finest.
restarted dweb and recreating names in the sun.
dweb 0.6.1
This is an update to Autonomi v0.4.5 which includes some client-side improvements. More are coming so expect more updates but if you fancy publishing a website with dweb, this might improve this with the live network.
To install or update:
cargo install dweb-cli
dweb --version
To view a couple of websites see: