Hey Remy,
FPC: 3.2.2 or 3.3.1 (via fpcupdeluxe)
Lazarus: 2.0.12 or 2.3.0 (via fpcupdeluxe)
Indy10: 10.6.2.38.2 installed via OPM
OS: Ubuntu 21.04 64b
On the project attached the event
OnCreatePostStream is never called and subsequently, the
ARequestInfo.PostStream is nil.
Even if I omit the event
OnCreatePostStream, I still get a null
ARequestInfo.PostStream.
I'm testing with cURL:
$ curl -X POST http://127.0.0.1:6969 --data-binary "@rpc-request-test.json"
and the JSON file's content is: (Zipped version attached)
{
"jsonrpc": "2.0",
"method": "test",
"params": [],
"id": 69
}
What baffles me is that, not even a month ago, I was able to compile this type of code and all was well, but now, I'm guessing, after 3.2.2 it suddenly doesn't work.
Is this something specific to my setup or can anyone else reproduce this?
I'm gonna try with these to eliminate versions:
- Lazarus 2.0.12 and 3.2.0
- Lazarus 2.0.6 and 3.0.4
If any of those combinations give me the same error then it's something with my system.
Many thanks in advance!!
Cheers,
Gus