-
Notifications
You must be signed in to change notification settings - Fork 112
GET request for '/' should return HTTP 200 #155
Comments
Ideally this page would also explain how to add a bzz:// URL handler to your browser (if there isn't one yet) |
Note: you can not add a bzz:// handler to your browser, see #151 (comment) |
@gbalint just FYI, i'm poking around here to see if i can help on this issue. |
@gbalint what kind of status info do you think would be good? and would that be delivered as an error message? just for reference, here's what i'm getting when i ping |
Here is an idea. Welcome to Ethereum Swarm. and then have an input form with title "enter a name or a hash" and default value theswarm.eth and when the button is clicked, the user gets redirected to bzz://theswarm.eth Than, in future, we can extend this landing page with links to the stats page, admin page etc. etc. |
I agree it should be a landing page for swarm. And can serve as 'status'
until a more detailed definition of what 'status' should return.
Should maybe check for accept header, also json requests should be accepted
(returning just 200 OK).
…On 24 Dec 2017 12:27 p.m., "Aron" ***@***.***> wrote:
Here is an idea.
The page starts with
Welcome to Ethereum Swarm.
and then have an input form with title "enter a name or a hash" and
default value theswarm.eth and when the button is clicked, the user gets
redirected to bzz://theswarm.eth
Than, in future, we can extend this landing page with links to the stats
page, admin page etc. etc.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#155 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFY34h-BX7NXmMZ6ibwM1Uye7-hNuNAks5tDomBgaJpZM4Q-_Nr>
.
|
Great, so we're thinking about making it a landing page with an input form that can accept hashes or ENS domains, knit together the correct address and send the user on their way? Any other links to be provided on the landing page? @holisticode how (if at all) does the page currently handle json requests? And what's the protocol now for accept header? Last, are there any web development guidelines for swarm that could direct what the landing page looks like? Thanks in advance for any help! |
I feel like having a minimally functional landing page is a good first step. The current landing-error-page I consider to be (almost) a bug.
that's my feeling for a good minimal working example, yes.
Perhaps just one to https://swarm-guide.readthedocs.io/en/latest/ ? |
@homotopycolimit okay, sounds good. i'd like to get some work done on this. i want to make sure my git etiquette is correct: i'll create a new branch from the ethereum-go master and work on a new method for the |
I think this issue is specifically only for @gbalint What's our policy for moving from ethersphere/go-ethereum to ethereum/go-ethereum repo? Shall we say that when we are all happy here at ethersphere, cooganb shall create a PR to the ethereum/go-ethereum repo and we approve and merge there? I forgot what (if anything) we had decided. |
@homotopycolimit I think we decided that currently we stay with ethersphere fork. I suggest @cooganb the same method as ours: first make a PR against ethersphere/go-ethereum/master and when the discussion is over there and the PR is accepted, then make another PR against ethereum/go-ethereum/master, mention that the swarm team approved the change, and get it reviewed by the go-ethereum team too. |
Another question: what should be the result if the content-type in the request header is application/json? Let's not reduce our usecase to the web browser. |
ah! I had only considered the browser! I don't know what the json response should be. You want there to be a default json response too? ...Maybe just a very simple json files with a single entry |
I like having standard-like extra fields in the json with meta-information, something like: But that would mostly make sense if we would use the same format across our json responses. |
What could be a good first step to solve the issue at hand (i.e. get from an error to a valid HTTP 200)? I'd also like to emphasize that the browser http://localhost:8500 landing page is the first thing that most people who are currently playing around with swarm will see; at it will be the first thing they see after successfully installing and starting swarm. |
Ok, let's skip the json response for this issue, it can be a separate one: #185 |
hey all, i'm trying to get my setup going and encountered a few issues. first, i checked out a local branch from the ethersphere/go-ethereum master, but when trying to push the new branch back to the master to create the first "blank" PR, i get this:
does someone need to grant me permission to push? or am i doing something incorrectly with the command line? second, i'm trying to figure out how to test my code before asking for a pull-request. i'm a novice, so my apologies in advance for basic questions, but how exactly do i go about testing changes on the code locally to be confident enough to issue a real PR? |
you want to fork the ethereum/go-ethereum repository and push to your own fork. |
Let me know if I did this correctly! |
No, your pull request is not correct: You would like to submit the PR in the other direction: into ethersphere:master from your fork. And I would also create a branch in your fork and not submit the PR from master. You can also see that it is not what you wanted because the diff contains a lot of stuff which is not made by you: |
@cooganb I suggest you to read this guide, it helps understanding forks, PRs and the whole workflow to contribute to an open source project: https://gist.github.com/Chaser324/ce0505fbed06b947d962 |
this is great! thank you!
…On Thu, Jan 4, 2018 at 3:18 AM, Balint Gabor ***@***.***> wrote:
@cooganb <https://github.com/cooganb> I suggest you to read this guide,
it helps understanding forks, PRs and the whole workflow to contribute to
an open source project: https://gist.github.com/
Chaser324/ce0505fbed06b947d962
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#155 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHxGKYMJjnF9AyQfEkO62JUMIRMIADRRks5tHJd7gaJpZM4Q-_Nr>
.
|
@homotopycolimit okay! round 2. apologies for my earlier issue . followed the doc you sent @gbalint and hopefully did it correctly this time. |
@cooganb Yes, the PR is in correct format now 👍 |
…equest when running Swarm (#15926) * swarm: began work on GetHandleFile method re: issue #155 * swarm: now able to serve landing page template * swarm: added landing page template * swarm: landing page has working input * swarm: fixed CSS issue in template * swarm: deleted extra lines * swarm: deleted time header and made redirect a relative path * swarm: removed code mistakenly left
GET request for just '/' (as opposed to
bzz:/
etc.) should return a HTTP 200 and some minimal status info, not an error about an invalid protocolhttps://github.com/ethereum/go-ethereum/blob/master/swarm/api/http/server.go#L555
The text was updated successfully, but these errors were encountered: