Comments (3)
I really can't reproduce this. Here is an attempt:
local inspect = require "inspect"
local new_factory = CassandraFactory({ hosts = "helloworld",
port = 45678,
timeout = 1000,
keyspace = configuration.cassandra.keyspace
})
local err = new_factory:prepare()
print(inspect(err))
local api_t = faker:fake_entity("api")
local api, err = new_factory.apis:insert(api_t)
print(inspect(err))
It's just doing as currently expected, failing on prepare and throwing an error on insert:
{
database = true,
message = "host not found"
}
But since main.lua
exits on a prepare error, I really don't understand how this can happen. Please provide a test to reproduce.
from kong.
Please try to reproduce against master.
from kong.
I'm now getting
[lua] init_by_lua:5: Startup error: host not found
Can't reproduce.
from kong.
Related Issues (20)
- Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec. HOT 3
- Can't start postgresql 16 over tls HOT 6
- reference resolving issue HOT 3
- How to add official support for s390x arch HOT 1
- Kong unit tests using busted framework does not with kong 3.0.0 using cassandra db (3.10, 3.11). These are working fine with kong 2.8.3 HOT 3
- Custom kong plugins are not displayed in kong manager with the list of plugins HOT 3
- Kong plugin file-log always logs response connection header as close HOT 8
- Bug in proxy-cache plugin not returning age header HOT 3
- Cannot restrict routes to specific consumers via auth plugins HOT 3
- Bug in proxy-cache plugin returning compressed cached content to clients not supporting compression HOT 5
- http-log create incorrect elasticsearch mapping and trigger parse error HOT 3
- kong gateway doc, upstream_keepalive_max_requests and nginx_http_keepalive_requests default value not match in nginx-kong.conf HOT 8
- kong 500 error:received: 500; {"message":"An unexpected error occurred"} HOT 11
- Kong ingress controller failed to fetch secrets for kong consumers if restarted (either due to some crash or planned) HOT 2
- URI is sometimes `/kong_error_handler` on upstream status 502s HOT 2
- lua/5.1/kong/db/schema/init.lua:1244: attempt to index a nil value HOT 2
- [kong] schedule.lua:172 [job prefetch]Redis bgsave failed. Error: ERR unknown command 'bgsave' HOT 2
- Control Plane fails to pull information from database pending "migrations finish" command HOT 2
- In Kong 3.6, X-Kong-Request-Debug-Output is not provided in the response header for successful scenarios HOT 3
- AI-Proxy plugin: "An unexpected error occurred" when upstream URL is missing port/path HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kong.