-
Notifications
You must be signed in to change notification settings - Fork 2
Distributed Press Monetization API responese on DWeb #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
IPFSSee ipfs/in-web-browsers#174 for Opera Android resolution issue for IPFS DNSLink, but otherwise this works now on supported browsers:
Also note ipfs/in-web-browsers#169 when trying to access via HTTP using subdomain-based gateways. This seems like a priority that IPFS will address early next year. HypercoreWe will need DEP-0005: DNS support in Beaker browser. Right now this only works in Agregore:
If someone wants to test out these links, your best bet is probably to download Agregore as it has support for everything here. |
@RangerMauve I wrote the following Promise:
If I run this as is, I get this:
If I comment out line *, I get this:
In either case, my hyperdrive isn't syncing with the file system. Any idea? I also have these in the dat-store:
The first entry was created by hyper-publisher, and the latter manually via dat-store CLI. Neither one is accessible in the local proxy or in Beaker/Agregore, so I suspect nothing is syncing. This local http proxy should work right?
|
Try setting verbose:true to get some console output. Are you sure the dir is being passed in properly? It looks like there's an empty folder there or something |
Nothing suspicious turning on verbose:
|
@RangerMauve thanks for hopping onto the call to get everything sorted! Here's what we gotta do:
|
@RangerMauve it turns out |
You might want to go to the storage location of dat-store on the VM and manually remove the url from URLs.json and folders.json |
Yup the manual removals worked. I successfully published everything once, but now I keep getting this, even after restarting the dat-store process:
Something failing in the sync -> https://github.com/RangerMauve/hyperdrive-publisher/blob/default/index.js#L141 Unrelated to this, is it necessary to call Edit: Now everything works again, not sure what changed. |
@RangerMauve can you verify the following work on Agregore?
After gateway fix:
|
@benhylau The URLs you linked to work in Agregore. I'm not sure if dat-store had DNS support for resolving URLs, but that might be something you could find in the library.js file. I'd be down to review a PR adding it in if it's missing, but I'm kinda short on gratis time this week since I have contracts to work on. π Could probably spare a couple of hours of consulting time though. |
On Agregore, DNS doesn't work for me but it seems to work for you, so maybe a MacOS thing? About dat-store support for TXT, it seems to not be supported in the gateway. I did this and it seems to work RangerMauve/dat-store#48. |
The dat-store fix looks good. I'm honestly not sure why the DNS stuff wouldn't be working. :/ What did you set the TXT record to exactly? Does Might make sense to clone dat-dns and put your domain in there to see if the formatting is valid |
Here's the info about the DNS txt record for reference: https://github.com/datprotocol/DEPs/blob/master/proposals/0005-dns.md#dns-txt-record |
Apparently yes! lol
ο»Ώο»Ώ
It appears that Agregore supports .well-known/dat, but not the DNS TXT record. |
Both of these work in Agregore now since we fixed the dat-store:
|
Response updated to include total estimated balance. |
ποΈ Re-ticketed from: #
π Due date: 21 Dec 2020
π― Success criteria: Get Monetizational API to respond to IPFS and Hypercore as according to API spec #23.
Task Summary
Periodically pin https://api.distributed.press/compost/v0/monetization/balances responses onto the IPFS and Hypercore networks. Make sure 15-min up-to-date responses are available over
ipfs://
,ipns://
, andhyper://
.These periodic pinning belong to Pinning Services in Distributed Press repo: https://github.com/hyphacoop/api.distributed.press#architecture
To Do
The text was updated successfully, but these errors were encountered: