Despite the errors in the console, I can create and edit documents.
If I use my Heroku Gaia hub (which resolves to “https://app.graphitedocs.com”: “bucketeer-fe7dedb3-902c-4df1-abba-9962a90c3a01.s3.amazonaws.com16qcb11Anf6o3x9jSKgjCgRMRmQ1UeR6H7/” in profiles.json)
In looking at the console errors, those are all expected errors when you haven’t created the files. Every one of the 404s is what a new user sees until they’ve create one of each of the file types (documents, sheets, files, contacts).
And even then, you’ll still get a couple 404s that are specific to files loaded only for Graphite Pro users.
Now if you’re getting 404s and you have created and saved files, that’s 100% tied to the custom gaia hub which @jude will have to help you with.
Hi @yannel_leborgne.id, thank you for taking the time to make these gists!
I think this is part of the problem. This URL needs to be the read URL for your Gaia hub, not Blockstack’s. You can change it by using the CLI, via the gaia_sethub command.
A Gaia hub has distinct read and write endpoints. Your write endpoint was set in the Browser, via the API page. Your profile contains the read endpoint for each app. Somehow, the Browser decided to add gaia.blockstack.org as your read endpoint. It might be an instance of this bug, but I’m not sure
This would be part of it. The read URL in your Gaia hub must end with a /. I think the latest code in the develop branch will do this automatically, but master might not.
Using the default hub (https://hub.blockstack.org) works fine: I get the 404 error before creating the document, and not after a document has been created.
With my Gaia hub however (https://mygaia.herokuapp.com) , the page for creating a document hangs on the loading progress bar (see videos). I cannot create a document.
When using my Gaia hub, my profile.json updates accordingly. The Gaia hub URL ends with a trailing ‘/‘. However, there is a missing ‘/‘ inside the URL, see video.
@jude How can the blockstack CLI be installed for having access to the gaia_sethub command? https://github.com/blockstack/blockstack.js says the CLI is now part of blockstack core. I installed blockstack core using pip, which includes Blockstack cli version 0.18.0.10, but I do not see the gaia_sethub command.
Ah, I see. In your API settings page, does this problem go away if you set your Gaia hub to https://mygaia.herokuapp.com/ instead of https://mygaia.herokuapp.com in the API settings page?
Ah, I see. In your API settings page, does this problem go away if you set your Gaia hub to https://mygaia.herokuapp.com/ instead of https://mygaia.herokuapp.com in the API settings page?
No, if I use https://mygaia.herokuapp.com/ , see video from 5’15, the Blockstack login hangs.
This is the URL that the Browser uses to obtain the URL prefix for your apps. You see how how read_url_prefix is bucketeer-fe7dedb3-902c-4df1-abba-9962a90c3a01.s3.amazonaws.com? It needs to be https://bucketeer-fe7dedb3-902c-4df1-abba-9962a90c3a01.s3.amazonaws.com/. That would explain why there’s no / between your bucket DNS name and the app’s bucket address. You can change this in the Gaia config.json, via the readURL key.