question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

8 preview not working?

See original GitHub issue

Describe the bug

Exception thrown: 'System.InvalidOperationException' in System.Private.CoreLib.dll: ''Execute' must not be called on GremlinQueryExecutor.Invalid. If you are getting this exception while executing a query, set a proper GremlinQueryExecutor on the GremlinQuerySource (e.g. with 'g.UseGremlinServer(...)' for GremlinServer which can be found in the 'ExRam.Gremlinq.Providers.UseGremlinServer' package).'

Cannot connect to any gremlin-server. I’ve tried running Janus & OrientDb. I can connect just fine using my console / groovy.

Version information 8.0.0-preview-0586

Minimal working example

        private static IGremlinQuerySource CreateRelationsQuerySource(
            GremlinConfiguration gdbConfiguration, 
            string dbEnvironment,
            Microsoft.Extensions.Logging.ILogger logger)
        {
            return g.ConfigureEnvironment(env => 
                {
                    var model = GraphModel.FromTypes(
                        vertexTypes: new[]
                            {
                                typeof(SiteAccount)
                            },
                        edgeTypes: new[]
                            {
                                typeof(ClientSiteRelation)
                            });

                    var gdb = env.UseLogger(logger)
                        .UseModel(model);
                    if (dbEnvironment.Equals(EnvironmentVariable.DB.COSMOS))
                    {
                        gdb.UseCosmosDb(builder => builder
                                .ConfigureWebSocket(socket => socket
                                    .ConfigureQueryLoggingOptions(o => o
                                        .SetQueryLoggingVerbosity(QueryLoggingVerbosity.None))
                                )
                                .At(gdbConfiguration.WssEndpoint, DataStore.Gremlin.Database, DataStore.Gremlin.ClientSiteRelationsGraph)
                                .AuthenticateBy(gdbConfiguration.AuthKey)
                            );
                    }
                    else
                    {
                        gdb.UseJanusGraph(builder => builder
                                .AtLocalhost()
                                .ConfigureQueryLoggingOptions(o => o
                                .SetQueryLoggingVerbosity(QueryLoggingVerbosity.None))
                            );
                    }

                    return gdb;
                });
        }

Additional context Running the gremlin-servers in docker, but port 8182 is open and everything is operating properly.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
danielcwebercommented, May 20, 2020

Things in Gremlinq are immutable. Have a look at the samples project at https://github.com/ExRam/ExRam.Gremlinq.Samples. You call UseJanusGraph but throw away the result! It’s meant to be fluent. Observe the return value and update your variable accordingly, it’ll work.

0reactions
dgioulakiscommented, May 20, 2020

Makes sense … I should have been doing gdp = gdp.Use..... Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preview Pane Not Working in Windows 10? 8 Ways to Fix It
1. Ensure the Preview Pane Isn't Disabled · 2. Rule Out the File Specific Issues · 3. Restart Windows Explorer · 4. Tweak...
Read more >
Top 8 Fixes for Preview Pane Not Working in Windows 10
1. Enable Preview Pane · 2. Enable Show Preview Handlers · 3. Disable Always Show Icons Setting · 4. Change File Explorer Startup...
Read more >
Top 6 Ways to Fix Preview Pane Not Working on Windows 11
1. Enable Preview Pane · 2. Check File Explorer Options · 3. Restart Windows Explorer · 4. Tweak Performance Options · 5. Run...
Read more >
windows 8. Picture thumbnail preview not showing when I ...
a) Navigate to My Documents – Pictures folder. b) Right click on the window and choose View – Large Icons. c) Let's see...
Read more >
Windows 8.1 no longer showing some thumbnails or ...
Ensure that the Preview pane is on. · Ensure that Folder options > View > Always show icons, never thumbnails is unchecked. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found