Getting through the lunch app


#1

Lunch app tutorial: https://solid.inrupt.com/docs/app-on-your-lunch-break

I have nss installed on Windows and have been working with the Lunch app.
The app logs in although my provider is not what the instructions said.
(I was successful using the url of the server for provider, not my account on the server.
When I first registered for my account, it told me the latter.)

The next problem I faced was not loading rdflib.min.js.map and solid-auth-client.bundle.js.map. Neither of these files was included in the tutorial code at the point they became needed. I googled and downloaded from github - without knowing what they’re for etc. That at least eliminate the error.

I’m at the part where the app should return my profile.
It fails to fetch the card.

toConsumableArray.js:19 OPTIONS https://roger.wu2.hll.nu:2222/profile/card net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ toConsumableArray.js:19
async function (async)
(anonymous) @ toConsumableArray.js:19
fetch @ toConsumableArray.js:19
value @ fetcher.js:809
value @ fetcher.js:684
value @ fetcher.js:669
(anonymous) @ main.js:28
dispatch @ jquery.js:2
y.handle @ jquery.js:2

fetcher.js:857 Fetcher: https://roger.wu2.hll.nu:2222/profile/card Non-HTTP fetch error: TypeError: Failed to fetch

fetcher.js:955 Uncaught (in promise) Error: Fetcher: fetch failed: TypeError: Failed to fetch
at e.value (fetcher.js:955)
at fetcher.js:857
value @ fetcher.js:955
(anonymous) @ fetcher.js:857
async function (async)
(anonymous) @ main.js:28
dispatch @ jquery.js:2
y.handle @ jquery.js:2


#2

I’m not sure what is causing that. You could try debugging in the browser console and trying to identify the line in Fetcher, breakpoint there and inspect. I can’t help much today but will check back - you might get help on the Solid gitter too. Good luck.


#3

First obvious problem seems to be at fetcher.js:669 where originalUri is not defined.


#4

Hi rogerfgay,

Thanks for sharing your experience, gold.

The lunch app tutorial is now on this link in GitHub along with many other tutorials https://github.com/solid/information/blob/master/documentation/documentation.md so that you can make specific suggestions on how to improve it by submitting a pull request.

Your input is very welcome.

Mitzi


#5

Thanks. :slight_smile: