Closed kazlauskis closed 1 year ago
I've raised a similar issue at https://github.com/BiologicalRecordsCentre/ABLE/issues/626. Am investigating. Hadn't realised it was linked to training, thanks. There was a warehouse update released yesterday which may be related.
@kazlauskis I've put a patch in place which fixes the issue I was having. Is it looking okay to you now?
@kazlauskis The Butterfly Count app says "Sorry, Failed to fetch" when I try to submit a 15 minute count. I'm worried in case I have broken something by making my patch.
Although @johnvanbreda has just made a change affecting JSONP responses to spatial services which may also be relevant.
@JimBacon @BirenRathod our apps can't upload records anymore. This affects all our apps and not just the test records. I am away at the moment so I can't see exactly what's happening. Can you guys remove whatever changes that were done to the backend today? Inc. the new warehouse headers.
Linked to https://github.com/NERC-CEH/fit-count-app/issues/181
I will do it now.
@JimBacon the only change to spatial services was to add a content-type header set to application/javascript for JSONP requests to the spatial web services. I don't think they are used by the app at all. The changes were necessary to get round the changes to the headers on warehouse1.
@kazlauskis Is it possible to send me the error, so I can revert back to that particular one instead of reverting back all headers?
@JimBacon @BirenRathod our apps can't upload records anymore. This affects all our apps and not just the test records. I am away at the moment so I can't see exactly what's happening. Can you guys remove whatever changes that were done to the backend today? Inc. the new warehouse headers.
Linked to NERC-CEH/fit-count-app#181
Also, when I asked you before you mentioned the app works fine. did you not check the uploading records?
I am away until later in the evening. Try various combinations and use iRecord app for a test.
I have reverted the two backend code changes by doing git checkout v8.23.0
and commenting out the one line of code I added.
I still see a problem. @BirenRathod, have you changed any server settings on warehouse1?
@JimBacon Well, I have added headers this morning after testing with @kazlauskis. After I got confirmation from him I left the settings remain as it is.
@kazlauskis I have now reverted it back. Check if it works okay.
Yes, it works now.
@kazlauskis If apps don't work without these headers it will be a problem when we move the warehouse next Wednesday. it is mandatory to use on a new server, so need to find a solution. I can't do without looking into the error.
I have committed my fix to the repo and tagged it v8.23.2. Git automatically closed this issue but I have not deployed it to the live server. Travis has just reported that my build is broken. Sigh.
The problem with the tests on Travis was resolved and the fix has been deployed to live. This should resolve the original issue. Some discussion about this overflowed in to https://github.com/BiologicalRecordsCentre/iRecord/issues/1529
The problem with the apps all failing was unrelated and due to server configuration changes. These changes were reverted.
Uploading a training sample record like this fails. Uploading non-training records works OK.
POST https://warehouse1.indicia.org.uk/index.php/services/rest/samples
Error: