Skip to content
This repository has been archived by the owner. It is now read-only.

/v1/display_name returns 404 if not set #144

Closed
zaach opened this issue Sep 10, 2015 · 14 comments
Closed

/v1/display_name returns 404 if not set #144

zaach opened this issue Sep 10, 2015 · 14 comments
Assignees

Comments

@zaach
Copy link
Contributor

@zaach zaach commented Sep 10, 2015

via irc:

jrgm> yeah, so /v1/display_name returns 404 for no name set. What if that was 200 OK with the empty string instead.

@seanmonstar
Copy link
Member

@seanmonstar seanmonstar commented Sep 10, 2015

I like 204 No Content.

@rfk
Copy link
Member

@rfk rfk commented Sep 10, 2015

The avatar endpoint returns an empty object {} if there's no avatar, we could do the same thing here for consistency.

@jrgm jrgm changed the title display_name returns 404 if not set /v1/display_name returns 404 if not set Sep 15, 2015
@shane-tomlinson
Copy link
Member

@shane-tomlinson shane-tomlinson commented Sep 15, 2015

Asked in triage: will a change from 404 to 204 affect any clients?

@shane-tomlinson
Copy link
Member

@shane-tomlinson shane-tomlinson commented Sep 15, 2015

Asked in triage: will a change from 404 to 204 affect any clients?

@zaach does not believe so.

@shane-tomlinson
Copy link
Member

@shane-tomlinson shane-tomlinson commented Sep 15, 2015

@seanmonstar - tag!

@rfk
Copy link
Member

@rfk rfk commented Sep 16, 2015

FWIW you can view the app logs from profile-server at [1]. There seem to be quite a lot of {status: 403, errno: 999} responses in amongst the 404s.

[1] https://kibana.fxa.us-west-2.prod.mozaws.net/index.html#/dashboard/elasticsearch/Profile%20App%20Logs

@rfk
Copy link
Member

@rfk rfk commented Sep 16, 2015

will a change from 404 to 204 affect any clients?

It's not clear to me where these /v1/display_name requests are coming from. None of the logs in the dashboard above include user-agent information. The content-server has a getDisplayName method that would call it, but AFAICT it's not used by any active code. I can't find references to it in desktop or fennec code.

@rfk
Copy link
Member

@rfk rfk commented Sep 16, 2015

@jrgm is there a profile-server nginx dashboard that we can check against, rather than the app-level logs I linked above?

@zaach
Copy link
Contributor Author

@zaach zaach commented Sep 16, 2015

Clients are using the /profile endpoint, which delegates to /display_name IIRC

@rfk
Copy link
Member

@rfk rfk commented Sep 16, 2015

Ah, so profile-server is generating these by talking to itself?

@seanmonstar
Copy link
Member

@seanmonstar seanmonstar commented Sep 16, 2015

Most likely :D

@jrgm
Copy link
Contributor

@jrgm jrgm commented Sep 16, 2015

Oauth and Profile nginx are lumped together in
https://kibana.fxa.us-west-2.prod.mozaws.net/index.html#/dashboard/file/oauth_http_status.json
But here's one with profile-server split out, and only for request:display_name
https://kibana.fxa.us-west-2.prod.mozaws.net/index.html#dashboard/temp/AU_T5Ng73q0_6xopp8hI

However, no 404 there.

Here they are. But yes, maybe just an internal call. Still, a lot of noise, but since our first-level monitors for http status drive off nginx logs, perhaps not as much an issue for monitoring as I was thinking. Nonetheless, I like 204 better ;-)

@rfk rfk modified the milestones: FxA-27: fennec web login, FxA-0: quality Sep 17, 2015
@rfk
Copy link
Member

@rfk rfk commented Oct 1, 2015

just bumping this as a gentle reminder that we should target it for the current train

@zaach zaach closed this in #150 Oct 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants