You are not logged in.
Pages: 1
Hello!
TestRestServer.dpr does not compile:
[dcc32 Error] TestRestServer.dpr(149): E2010 Incompatible types: 'UTF8String' and 'Pointer'
[dcc32 Error] TestRestServer.dpr(149): E2008 Incompatible types
and (DynArrayLoadJson(customers, Pointer(json), TypeInfo(TCustomerItemArray)) <> Nil) then
according to the tooltip help, the second param should be RawUtf8 and the return type is Boolean not a reference.
also
[dcc32 Error] TestRestServer.dpr(161): E2035 Not enough actual parameters
authUser.PasswordHashHexa := TAuthUser.ComputeHashedPassword(customers[i].LoginPassword);
according to the tooltip help AuthUser.ComputeHashedPassword is quite changed.
Are there newer examples working with the current release cloned from Github?
Or are there missing steps from the frontpage "3. Discover and enjoy:" section?
2025. 05. 11. 16:36:53;http://bouchez.info;Letiltott URL;Belső tiltólista;P:\Embarcadero projects\Components\mORMot2\test\mormot2tests.exe;DESKTOP-BMCNO0S\adamp;62.210.254.173;5FB663FEDABFE1C7A6AABB0BC3AA683CD143E907
with disabled antivirus it fails anyway, requests administrator rights:
Software version tested: 2.3.10978 (2025-05-11 16:19:09)
Windows 11 64bit 24H2 (10.0.26100.3915) [ms1250 3.7GB 65F41B01]
12 x AMD Ryzen 5 8400F 6-Core Processor [16MB] (x86)
on ASUS System Product Name System Version
Using mORMot 2.3.10978 11 May 2025
TSqlite3LibraryStatic 3.46.1 with internal MM
Generated with: Delphi 12.1 Athens 32 bit Win compiler [ins]More precisely Delphi 12 Community Edition[/ins]
Time elapsed for all tests: 1m34
Performed 11 May 2025, 16:38:02 by adamp on DESKTOP-BMCNO0S
Total assertions failed for all test suits: 30 / 128,754,683
! Some tests FAILED: please correct the code.
Done - Press ENTER to Exit
000000000069e024 " EXC EHttpApiServer {Message:"HttpSetServiceConfiguration failed: ERROR_ACCESS_DENIED (5)",LastApiError:5,LastApi:"hSetServiceConfiguration"} [Main] at 983570 {12 1.77 1.95 15.4GB/31.7GB 65f41b01}
000000000069e08b " EXC ERestHttpServer {Message:"TRestHttpServer: http.sys URI registration error 5 ERROR_ACCESS_DENIED for http://+:888/root (administrator rights needed, at least once to register the URI)"} [Main] at 4bcf7f {12 1.77 1.95 15.4GB/31.7GB 65f41b01}
0000000001173ddd " EXC EHttpApiServer {Message:"HttpSetServiceConfiguration failed: ERROR_ACCESS_DENIED (5)",LastApiError:5,LastApi:"hSetServiceConfiguration"} [Main] at 983570 {12 1.77 1.95 15.3GB/31.7GB 65f41b01}
0000000001173e4f " EXC ERestHttpServer {Message:"TRestHttpServer: http.sys URI registration error 5 ERROR_ACCESS_DENIED for http://+:888/root0 (administrator rights needed, at least once to register the URI)"} [Main] at 4bcf7f {12 1.77 1.95 15.3GB/31.7GB 65f41b01}
000000000159ecf8 " EXC ERestHttpServer {Message:"TRestHttpServer: http.sys URI registration error 5 ERROR_ACCESS_DENIED for http://+:888/root (you need to register the URI - try to use useHttpApiRegisteringURI)"} [Main] at 4bcf7f {12 1.77 1.95 15.3GB/31.7GB 65f41b01}
There is nothing about run as administrator on the Github page, should I be dare enough to turn off NOD32 and run as admin?
Pages: 1