DA/JS 500 or 404 error

HI,

My version is DA/RO 8.1.87.1147 , js framework: angularjs
Delphi 2010

I developed a custom DA server with js support . When I use DA custom server as web server.
I got the error in chromo console but the page and all function can working correctly.
The error is internal server 500 and the screen in console log.

As I try to deploy to appache web server.
I got the error 404 and stop me me for further processing.
The error in console is as attached.

It seems that everytime I make a data call no matter is adaptor getdatacall or custom data call function.

It will show this error 500 in da server but in apache as I cant execute so I cant confirm may be same 404 error in it.

Please advise the problem.

Also I want to confirm the following in da custom server as web server.

  1. file name encoding , if I use chinese character in file name, it cant display or find that file. I only can use english as the file name or path name? will it support unicode file name?

  2. I try to put a mp4 video and serve it with da web server. But it cant play normally but apache can. Did I set it wrong in da server or it cant support play video?

  3. If user need use IE as the browser, Is it Only IE 10 or above can support or what is the IE version that support DA server.

  4. adapter.getSQLData , RemObjects.DataAbstract.Util.createRequestInfoV6 DASQL is still not supported in delphi DA custom server?

Thank you for information

Joe

Hi ,
I find the error for 500 reason. it is no session created error. then will prompt for the session login.

For the 400 error, it is my mistake on the connection string in the , it should use "http://localhost:9003/json"
but I use the “http://” + window.location.host + “/json”, it come with error for that.

For the above point 1-4 confirmation, please advise.

you can use SendExceptionsAs500 property and change default behavior. it can be useful in development phase, but not for release.

pls see Unicode characters in URLs topic

You can use TROHTTPFileDispatcher. You need to assign it to ExtendedDispatchers of your server.
Note: you can customize ContentType via OnRequest event.

pls address to Indy specification (if TROIndyHTTPServer is used as server).

DA SQL isn’t supported by custom DA/D server. but you can receive data via SQLGetData for custom SQL.