Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Posting JSON with a Period in a Key results in an Interal Server Error #40

Open
SilasReinagel opened this issue Aug 15, 2018 · 1 comment

Comments

@SilasReinagel
Copy link

SilasReinagel commented Aug 15, 2018

This is a major issue, since it prevents storing email addresses, which is a very important use case.

Post Body: {"silas.reinagel":"value"}

Result:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Error</title>
    </head>
    <body>
        <pre>Internal Server Error</pre>
    </body>
</html>
@akshendra
Copy link
Contributor

akshendra commented Oct 6, 2018

It is because Firebase keys cannot contain .

Keys are UTF-8 encoded and can't contain new lines or any of the following characters:
. $ # [ ] / or any ASCII control characters (0x00 - 0x1F and 0x7F)

Probably a better error should be returned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants