appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.35k stars 3.72k forks source link

[Bug]: Queries return AE-DTS-4013 after porting from v1.34 to a clean install of v1.39 #36139

Closed markzerobrush closed 1 month ago

markzerobrush commented 2 months ago

Is there an existing issue for this?

Description

(Note: I searched existing issues and found similar-sounding issues, but none related to this version of the community edition of Appsmith.)    I needed to move our app from an old vm to a new one. After pulling the app from git into the new instance I found that all of my REST API queries returned this:   AE-DTS-4013 DEFAULT_REST_DATASOURCE is not correctly configured. Please fix the following and then re-run: [No datasource configuration found. Please configure it and try again.] (None of my queries requires a default datasource, by the way.)

I stumbled upon a "fix" by editing a broken query's url. If I add a space at the beginning, it then works -- it seems it is provoking appsmith to regenerate its metadata but including a section that was missing before.

After checking in the code and comparing the metadata between the working and non-working versions of the query, I see that the "working one" has an additional "datasourceConfiguration" section under "datasource" (that's missing in the broken one). Enclosed is a screenshot of the diff.

AE-DTS-4013

Thank you! (Hope this helps. I spent a lot of time on this and learned a few things. ;-) )

Steps To Reproduce

  1. bring up a new appsmith instance (in this case, the latest, v1.39).
  2. connect it to git, and bring down the bits
  3. REST API queries that worked previously now all return AE-DTS-4013
  4. see description section above for what I found that seems to be the problem in the metadata.

Public Sample App

No response

Environment

Production

Severity

Medium (Frustrating UX)

Issue video log

No response

Version

Self-hosted v1.39

ericambo commented 1 month ago

I can confirm I'm having this same issue. self-hosted v1.36.1

Nikhil-Nandagopal commented 1 month ago

@markzerobrush @ericambo which version was your application on before the upgrade?

Nikhil-Nandagopal commented 1 month ago

Closing this till we have more information