You are not logged in.
Pages: 1
I've got an interface-based service that works perfectly well on Windows but gives me a 406 "failed parsing ... from input JSON" on Linux (x64 Fedora and CentOS). The JSON received at the server looks identical on both platforms so it's a puzzle. Anyway, before digging in further, just to confirm the recommended FPC version for mORMot 2 - is it still "fixes-3.2" in fpcupdeluxe or is 3.4 ok? Also, I see that a few users are using the cross-compiler - anyone using the x64 cross-compiler for Linux from Windows? So far I've been building on a Fedora VM rather than cross-compiling.
Thanks, Bob
Offline
FPC fixes-3.2 seems fine.
Also ensure you got the latest https://github.com/synopse/mORMot2/commit/8d3dc2b2 fix.
About cross-compilers, check the fpcupdeluxe github - sometimes you need to refresh your setup.
Also consider using WSL on Windows instead of a VM.
It is just fine for compiling and running console test apps or server apps.
Online
Ok thanks - I pulled that fix but still have the problem. Will investigate....
Offline
Sorry - my bad - I'd completely missed the fact that I need to register my record type using Rtti.RegisterFromText in FPC.
Cheers, Bob
Last edited by rdevine (2023-03-13 15:15:10)
Offline
Pages: 1