Hi, and thanks for reaching out.
That error message implies a problem in authentication or security settings, and I can confirm writing to the server v24.3 from RStudio does work with appropriate permissions, so some troubleshooting questions:
-
Can you clarify how you're structuring the selectRows and insertRows calls? Presumably you're using the same apiKey authentication with both (possibly via a netrc file?) though the way you typed the question doesn't make that clear.
-
Assuming it's the same apiKey you confirmed that the apikey was generated from an account with permission to insert/import into the table? If that account only has read access, insert would not work of course. Any chance container or account permissions changed?
-
And was it an apiKey or a sessionKey that possibly expired? Regenerating a new apiKey and trying that would be good.
I've tried a few things locally and while I can't reproduce the specific error you report seeing, I did notice some unexpected error messages when I simulated missing a step in the upgrade process:
When you upgraded to 24.3, had you been using a context path (such as "/labkey" if you deployed with a configuration file named "labkey.xml")? If so, your baseUrl in R scripts may include it (i.e. for a local dev machine, something like "http://localhost:8080/labkey/").
If you've now deployed at the root as recommended, try the insert again without that part of the baseUrl. If making that change makes the insert work, then confirm that your application.properties includes a legacyContextPath set to match the context path previously in use.
context.legacyContextPath=/labkey
Hopefully one of these ideas helps,
--Molly