8 preview not working?
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.Makes sense … I should have been doing
gdp = gdp.Use....
. Thank you!