lookups failing on remote server

on the local dev machine the lookups are working on all the forms.

just noticed that on the remote test server the lookups are failing for every form. “An error occurred while communicating to the server.”

no console or debug errors.

local dev is at localhost/app
remote dev is at mysite.ca/app

logged in as hard-coded administrator, tried with edge/chrome. error logs show no entries.

You may

  1. Enable debug: http://www.hkvforums.com/viewtopic.php?f=18&t=49192,
  2. Press F12 in Chrome and check the HTTP response for the lookup actions, read:
    https://developers.google.com/web/tools/chrome-devtools/network/reference#headers
    https://developers.google.com/web/tools/chrome-devtools/network/reference#response

failure at:

LOCALHOST – OK:
http localhost/mySpace/api/jupload?id=x_EmployeeDocumentAttachments&table=clients_employees_docs&session=ABCDEF.&csrf_name=csrXXXXXXXX&csrf_value=123456790

SERVER:
http mySpace.ca/api/jupload?id=x_EmployeeDocumentAttachments&table=clients_employees_docs&session=ABCDEF.&csrf_name=csrXXXXXXXX&csrf_value=123456790
Request Method: GET
Status Code: 302 Found

lookup Request URL: http mySpace.ca/api/lookup Request Method: POST Status Code: 302 Found
lookup Request URL: http mySpace.ca/api/lookup Request Method: POST Status Code: 302 Found

error Status Code: 200 OK
404
Error
Route ‘api/lookup’ not found.

error Status Code: 200 OK
error Status Code: 200 OK
error Status Code: 200 OK

Route ‘api/jupload’ not found.

resolved.

I moved the site to the root of the web server as it will be the only app running, this seemed to have resolved the issue. i’m suspecting i’m having some rewriteBase issues.

sticcino wrote:

i’m suspecting i’m having some rewriteBase issues.

I agree.