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

Unable to connect to gcloud firestore emulator #7

Closed
jimcornmell opened this issue Oct 7, 2024 · 1 comment
Closed

Unable to connect to gcloud firestore emulator #7

jimcornmell opened this issue Oct 7, 2024 · 1 comment

Comments

@jimcornmell
Copy link

I can't connect to a emulator instance. I think the config is correct.

I'm running a firestore emulator locally with gcloud using this command:

gcloud emulators firestore start --host-port=127.0.0.1:8090

Then I hit the "Test Connection" button I get this error:

Connection test failed: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Not': was
expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source:
REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 4]

Also the console log in gcloud outputs the following (confirming it is trying to connect). Note the same 4 lines appear in the gcloud log each time I hit "Test Connection":

[firestore] Oct 07, 2024 11:34:01 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
[firestore] INFO: Detected non-HTTP/2 connection.
[firestore] Oct 07, 2024 11:34:01 AM io.gapi.emulators.netty.NotFoundHandler handleRequest
[firestore] INFO: Unknown request URI: /api/config

Here is a screenshot of the config in IDEA and the console log showing gcloud output.

image

Here is the output of gcloud version.

Google Cloud SDK 495.0.0
alpha 2024.09.27
beta 2024.09.27
bq 2.1.8
bundled-python3-unix 3.11.9
cloud-firestore-emulator 1.19.9
core 2024.09.27
gcloud-crc32c 1.0.0
gke-gcloud-auth-plugin 0.5.9
gsutil 5.30
kubectl 1.29.8

Here is datagrip version info:

DataGrip 2024.2.2
Build #DB-242.21829.162, built on August 29, 2024
Licensed to Jim Cornmell
You have a perpetual fallback license for this version.
Subscription is active until September 23, 2025.
Runtime version: 21.0.3+13-b509.11 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-45-generic
Jenkins Plugin 0.13.20-2023.2
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 32
Registry:
  debugger.watches.in.variables=false
  debugger.new.tool.window.layout=true
  documentation.show.toolbar=true
  ide.experimental.ui=true
  i18n.locale=
  ide.images.show.chessboard=true
  editor.minimap.enabled=true
Non-Bundled Plugins:
  IdeaVIM (2.17.0-eap.1)
  com.intellij.ml.llm (242.21829.196)
  org.toml.lang (242.20224.155)
  PythonCore (242.21829.142)
  com.jetbrains.sh (242.20224.237)
  com.intellij.properties (242.20224.155)
  org.jetbrains.plugins.terminal (242.21829.162)
  com.intellij.ideolog (242.21829.162)
  org.jetbrains.plugins.yaml (242.21829.162)
  com.intellij.css (242.21829.3)
  com.intellij.grazie.pro (0.3.336)
  com.jetbrains.plugins.webDeployment (242.21829.162)
  com.perl5 (2024.2.2)
  org.firebase4idea (1.0.2-242)
  com.daniel-espinoza.inline-error (0.4.0)
  IdeaVimExtension (1.7.4)
  org.asciidoctor.intellij.asciidoc (0.43.1)
  PlantUML integration (7.11.2-IJ2023.2)
  org.elasticsearch4idea (2024.1.4-242)
  net.seesharpsoft.intellij.plugins.csv (3.4.0-242)
  com.werfad (1.0.0)
  com.tang (1.4.14-IDEA242)
  GrepConsole (13.1.0-IJ2023.3)
  com.github.b3er.idea.plugins.arc.browser (0.32)
  dev.feedforward.tldrintellij (0.0.2)
  de.netnexus.camelcaseplugin (3.0.12)
  com.nasller.CodeGlancePro (1.9.1)
  krasa.CpuUsageIndicator (1.18.0-IJ2023)
  dev.meanmail.plugin.nginx-intellij-plugin (2024.3)
  Jenkins Control Plugin (0.13.20-2023.2)
  String Manipulation (9.14.1)
  com.godwin.json.parser (1.7.1)
  com.github.chencn.yamlandprops (1.0.5)
  org.jetbrains.idea.grammar (2022.3.2)
  Docker (242.21829.162)
  com.intellij.kubernetes (242.20224.175)
  mobi.hsz.idea.gitignore (4.5.3)
  zielu.gittoolbox (600.0.1+242)
  org.nemwiz.jira-commit-message (3.4.2)
  org.sonarlint.idea (10.10.0.79575)
  com.intellij.bigdatatools.core (242.21829.142)
  com.intellij.bigdatatools.kafka (242.20224.159)
  com.intellij.bigdatatools.binary.files (242.20224.159)
  com.intellij.bigdatatools.rfs (242.21829.142)
  com.intellij.bigdatatools.metastore.core (242.20224.159)
  com.intellij.bigdatatools.spark (242.20224.159)
  com.intellij.bigdatatools.zeppelin (242.20224.159)
  com.intellij.bigdatatools.flink (242.20224.159)
Current Desktop: KDE
@AntonShuvaev
Copy link
Owner

Thanks for reporting the issue. The problem was that you were trying to connect to the Firestore Emulator, but only the option to connect through the Emulator UI was available. I've now added a separate configuration option for connecting to the Firestore Emulator.

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