Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: configGtfs.getConfig(...) is undefined #20

Open
kalon33 opened this issue Jul 29, 2022 · 1 comment
Open

Uncaught TypeError: configGtfs.getConfig(...) is undefined #20

kalon33 opened this issue Jul 29, 2022 · 1 comment

Comments

@kalon33
Copy link
Contributor

kalon33 commented Jul 29, 2022

Dear Panu,

I got this error when trying to launch kartalla from my server, where I thought I changed the proper parameters and generated the json file:

Heppa luppa! main.js:6:13
Uncaught TypeError: configGtfs.getConfig(...) is undefined
    Config http://yyy.net/kartalla/js/config.js:12
    main http://yyy.net/kartalla/js/main.js:8
    onload http://yyy.net/kartalla/index.en.html:1
config.js:12:28

(domain in the URL has been caviardised)

Could you help me find out what's wrong?

Thanks for your help.

@panur
Copy link
Owner

panur commented Jul 31, 2022

It's difficult to say what's wrong without seeing your changes. The first thing that you should check is that the URL parameter "data" has proper value. If the name of your GTFS file is "foo" then you should have something like this: "index.en.html?data=foo". After that make sure that there's an entry for "foo" in config_gtfs.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants