Skip to content

Cannot fill countries based on flights - 500 errror #642

Description

@Phyks

The bug

Hi,

When trying to fill in countries details from my flights, I get a 500 error from the server:

{
	"0": {
		"error": "{message:\"countries.values(...).toArray is not a function\",code:-32603,data:{code:\"INTERNAL_SERVER_ERROR\",httpStatus:500,stack:\"TypeError: countries.values(...).toArray is not a function\\n    at file:///data/airtrail/airtrail/build/server/chunks/server-BcHnv8Cg.js:3470:82\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\\n    at async resolveMiddleware (file:///data/airtrail/airtrail/build/server/chunks/server-BcHnv8Cg.js:245:30)\\n    at async callRecursive (file:///data/airtrail/airtrail/build/server/chunks/server-BcHnv8Cg.js:275:32)\\n    at async callRecursive (file:///data/airtrail/airtrail/build/server/chunks/server-BcHnv8Cg.js:275:32)\\n    at async resolve (file:///data/airtrail/airtrail/build/server/chunks/server-BcHnv8Cg.js:305:24)\\n    at async inputToProcedureCall (file:///data/airtrail/airtrail/build/server/chunks/server-BcHnv8Cg.js:2322:22)\\n    at async Promise.all (index 0)\\n    at async resolveHTTPResponse (file:///data/airtrail/airtrail/build/server/chunks/server-BcHnv8Cg.js:2458:37)\\n    at async svelteRequestHandler (file:///data/airtrail/airtrail/build/server/chunks/server-BcHnv8Cg.js:2581:17)\",path:\"visitedCountries.importFlights\"}}"
	}
}

Operating System that is running AirTrail

Linux Debian

AirTrail Version

3.11.1

Your docker-compose.yml content

Your .env content

Reproduction steps

  1. Install latest version
  2. Add flights
  3. Go to statistics => countries count is 0 => choose to fill from flights

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions