pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev2026-02-09 08:59 pm
Entry tags:

Question thread #148

It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
etfb: (Default)

[personal profile] etfb 2026-02-19 12:54 pm (UTC)(link)
Has anything changed about the Dreamwidth interface/flat API? When I post to the LiveJournal equivalent with mode=sessiongenerate and a deliberately wrong password (for testing purposes), it gives me an error as expected:
errmsg
Invalid password
ljsession

success
OK


When I do the same to the Dreamwidth URL, it gives me this:
errmsg
Client error: No mode specified.
success
FAIL


I'm using Postman for testing, and putting the parameters in the Body section as form-data. As I say: works fine with LJ, not with DW. Any hints on what I should be looking for?
etfb: (Default)

[personal profile] etfb 2026-02-20 04:02 am (UTC)(link)
Interesting: I tried x-www-form-urlencoded instead of form-data, and it went through OK, even when I put in the correct API key/password. So it looks like a recent change has made DW decide to only accept that one content type where previously it accepted the other, or maybe even both.

Making required changes to timmc/ljdump v2.0.0 to see if this works there too...