← Back to Feed
Lensflare
Lensflare · Level 7
random

api issue

issue: `/api/users/auth-token` worked for the first time and gave me a token, now it times out after a minute or so: `{"error":{"status":500,"message":"Internal server error"}}`
0

Comments

1
retoor retoor
*I wil digg but i am also working on the server.*
0
Lensflare Lensflare
it's working again
0
retoor retoor
Oh *fuck*, it **times out**!! That is **me** for sure!! Then is the **development server rebooting**!
0
retoor retoor
What do you think about my new *dramatized* way of talking? :D
0
Lensflare Lensflare
not sure
0
retoor retoor
Oh, I also gonna let it convert *ol' school* emoji like `:D` to **Discord-like** style. Then is that fixed as well.
0
Lensflare Lensflare
another issue: :D trying to create a new post: ``` POST https://devplace.net/posts/create body: { "content" : "test post from ios", "topic" : "test topic", "title" : "test" } response: { "messages" : [ "Field required" ], "error" : "validation", "fields" : { "content" : [ "Field required" ] } } ```
0
retoor retoor
@Lensflare you miss **content** field.
1
Lensflare Lensflare
I haven't, see the "body" part :)
0
retoor retoor
@Lenflare oh, *maybe type of payload*, rest of form? The tests are just running, I guess. I can check in the docs if that call works. You can **directly click**.
0
Lensflare Lensflare
the 3 token params are passed as url params (omitted in my code block here), the rest is passed as json in the body.
0
retoor retoor
@Lensflare **fuck**, it created a *DevRant API* example: [https://devplace.net/gists/19e893a4b204-postkoalastory-post-a-cool-koala-story-to-devplace](https://devplace.net/gists/19e893a4b204-postkoalastory-post-a-cool-koala-story-to-devplace) 😱
0
Lensflare Lensflare
according to devii I can't mix json encoded body and url encoded params. bummer. will change...
1
retoor retoor
@Lensflare works: **https://devplace.net/gists/f8d51d4216bf-koala-story-plug-and-play-browser-snippet**
1
retoor retoor
@Lensflare found it: [https://devplace.net/gists/6a32c6a104d3-koala-story-json-payload-browser-snippet#comment-019ed639-1758-73f1-afc5-ad94996fb240](https://devplace.net/gists/6a32c6a104d3-koala-story-json-payload-browser-snippet#comment-019ed639-1758-73f1-afc5-ad94996fb240)
1
retoor retoor
*Just my version of **Claude Code** doing things that normal **Claude Code** can't.* *Start a multi-concurrent swarm and show live output of what they are doing.* :smiling_imp:
0
Lensflare Lensflare
test ok comments work again
1
Lensflare Lensflare
@retoor so I changed it to content-type urlencoded instead of json and posting the token and the data including content as url encoded but I'm getting the same error that the content field is missing
0
retoor retoor
*Noo*, I checked, **see my gist**. Try it with **your API key**. 😱
1
Lensflare Lensflare
I'm not using the API key method because it's not viable for the ios app users who just want to log in with credentials (I guess?) otherwise they would need to look up their keys...
0
retoor retoor
*But is it working now?* **@Lensflare** 😄
1
Lensflare Lensflare
According to devii, the issue is that the auth token method from the devrant api can't be used to authenticate on the endpoints of the new devplace api. And the devplace api only has auth methods with cookies or basic auth, which is both a bit sub optimal. :/ I wish there was a token based auth option
1
retoor retoor
I can create **that**. 😄
0
Lensflare Lensflare
thanks
1
Lensflare Lensflare
@retoor Btw I'll be able to continue only on friday probably, so no need for you to feel pressured to hurry
0
retoor retoor
**I am always in a hurry.** *I powder my nose a lot!* But I want to test my custom agent. It **seems** to be working **very well**.
0
retoor retoor
@Lensflare **this is the design**: [https://devplace.net/docs/authentication.html](https://devplace.net/docs/authentication.html)
1
retoor retoor
*But I need to do some quality checks.* *My DeepSeek agent implemented it,* *I still have to trust my agent a bit more* *that I built myself.*
0
retoor retoor
| Method | Status | |---|---| | Session cookie | 200 | | **X-API-KEY** (api_key) | 200 | | **Bearer** (api_key) | 200 | | **HTTP Basic** | 200 | | **DevRant token bridge** | 200 | | **Native access token** | 200 | | Bad password → 401 | **PASS** | | Invalid token → 401 | **PASS** | | Documentation Page | Status | |---|---| | `authentication.html` — lists all **6 methods** with curl examples | 200 | | `architecture-backend.html` — describes full auth chain priority | 200 | | `devrant-auth.html` — cross-references native token endpoint | 200 | | Test Suite | Tests | Result | |---|---|---| | `tests/unit/test_access_tokens.py` | 26 auth | ✅ Passed | | `tests/unit/test_devrant_token_auth.py` | +23 dependencies | ✅ Passed | | **Total** | **49** | **49 passed** |
0
retoor retoor
**Can we post?**
0
retoor retoor
@Lensflare we were **fucked** for a while 😏 *Attachment check.*
1
Lensflare Lensflare
btw image preview is being stretched and is unreadable ^^ low prio issue imo
1
retoor retoor
*Will create ticket.*
0
retoor retoor
I cannot access external URLs or browse the internet. Please paste the content of the issue directly into your message, and I will apply the correction instruction to it.
0
retoor retoor
@Lensflare *lol*, look what i said. But created ticket: **[https://devplace.net/issues/42](https://devplace.net/issues/42)**
0
retoor retoor
I **really** like my AI corrector. I *look* like some full time redditor now. 😄
1
retoor retoor
@Lensflare *all cleaned up.*