Answer by mikyll98 for How to deactivate or override the Android "BACK"...
The selected answer is outdatedWillPopScope is now deprecated, and shouldn't be used anymore. Reference: Android Predictive BackTo support Android 14’s Predictive Back feature, a set of ahead-of-time...
View ArticleComment by mikyll98 on Kong API Gateway Open Source on docker with https
This. I think OP is overlooking some relevant information, because it's impossible to have the GUI not showing "Network Error" with that setup... Kong Manager Network Error
View ArticleComment by mikyll98 on Flutter commands is not working in my Windows 10
Please post code and errors as text, instead of images (see Why should I not upload images of code/data/errors?). What do you mean by "it is not running"? Is it stuck or does it return nothing?...
View ArticleComment by mikyll98 on...
I've tried reproducing your problem without success. I get the expected result (java.awt.Rectangle[x=0,y=0,width=1920,height=1080] and AffineTransform[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) for both calls...
View ArticleComment by mikyll98 on I need to paste on x11 file
To extend what @Gerhardh said, if you write a "great question" (which means it's clear what the problem is, you don't omit important details, and is straightforward to reproduce) it's much more likely...
View ArticleAnswer by mikyll98 for Integrate Python plugin in APISIX Instance
About the ErrorThe error you're facing, as stated in the log message, is due to bad indenting in the configuration file (config.yaml). Most likely you missed some space or tab, so you should look for...
View ArticleAnswer by mikyll98 for Kong request transformer - inject X-User-Id:...
You can't expect request-transformer plugin to magically✨ retrieve the JWT claims and store them in a header, that's just not what it does :)FactsAccording to the documentation page, you can use...
View ArticleComment by mikyll98 on Kong : {"message":"no Route matched with those values"}
Please report the exact steps you made to create the service and the route, or provide a MRE. Are Kong and the service running on Docker, are them standalone applications or something else? Is the...
View ArticleComment by mikyll98 on Kong Gateway: I got an error when I run docker-compose up
That doesn't seem to be an error, but a notice (globalpatches.lua), and as @AlexanderMashin said, you didn't include kong start in the docker run command
View ArticleComment by mikyll98 on Starlette/FastApi route path components with forward...
@hangc you need to include :path in the parameter, for it to work
View ArticleAnswer by mikyll98 for Apache APISIX in Standalone mode - route wildcards for...
Solution: radixtree_uri_with_parameterYou can enable router-radixtree with path parameters by setting apisix.router.http: radixtree_uri_with_parameter in conf/config.yaml:# [...]apisix: router: http:...
View ArticleKong Ingress Controller: How to remove a plugin entry from a configuration?
I'm learning Kong API Gateway, and I'm trying to configure it using the Kubernetes Ingress Controller.I've been able to add a service plugin, following this tutorial, but I cannot find anywhere how to...
View ArticleAnswer by mikyll98 for Docker compose for apisix, etcd, apisix-dashbaord
The error is in the file dashboard_conf/conf.yaml, specifically in this snippet: users: - username: admin - password: adminAppearently, this results in an empty list of users (see the configuration...
View ArticleComment by mikyll98 on apisix docker wont start
@user3090303 I'm glad to hear that :) if it helped solving your issue, please consider marking it as the accepted answer
View ArticleAnswer by mikyll98 for Prime Numbers In a given range in Java
As pointed out by Turamarth, you need to reset the flag at each iteration. I also suggest you to loop until i <= n2, otherwise you would miss the last number, and add an input check.public static...
View ArticleAnswer by mikyll98 for Flutter ThemeData: colorScheme is prioritized for...
MaterialStateProperty was deprecated after v3.19.0-0.3.pre.As noted in the breaking changes — see Breaking Changes | Rename MaterialState to WidgetState) — it has been renamed to WidgetStateProperty...
View ArticleComment by mikyll98 on How apisix disables proxy_buffering for a route
I'm also interested in this issue, could you provide a MRE? What did you test the buffering feature with?
View ArticleAnswer by mikyll98 for How to Externalize Lua Code in APISIX...
TL;DRYou can use loadfile() inside the serverless functions config parameter. This function allows you to load the content of a file, which you can call and execute afterwards, in case it's a...
View ArticleAnswer by mikyll98 for catch Android back button event on Flutter
WillPopScope is now deprecated, and shouldn't be used anymore. Reference: Android Predictive BackTo support Android 14’s Predictive Back feature, a set of ahead-of-time APIs have replaced just-in-time...
View ArticleAnswer by mikyll98 for apisix file logger, get body response in the log
You have to use $resp_body instead of $response_body.Example:"file-logger": {"path": "/usr/local/apisix/apisix_log/test.log", "log_format": {"ip_client": "$remote_addr","http_verb":...
View ArticleAnswer by mikyll98 for Getting 404 Error in Apache APISIX Docker container...
I'm pretty sure the problem is you are not passing the Host header.Your request should look like this:curl http://172.26.50.10:7011/api/cnam/test/18 -H "Host: 10.1.10.112"The host attribute in a route...
View ArticleAnswer by mikyll98 for Unable to load custom plugins in Apache Apisix
You're setting the plugin list for the dashboard but not for APISIX.You have to add the custom plugin in apisix_conf/config.yaml. Example:apisix: node_listen: 9080 # APISIX listening port enable_ipv6:...
View ArticleAnswer by mikyll98 for APISIX Backup and Restore Steps 3.8.0 version
Typically you deploy APISIX in a Kubernetes cluster via Helm, so I suppose your setup is based on apisix/apisix (GitHub source) or bitnami/apisix (GitHub source), which are the most popular...
View ArticleAnswer by mikyll98 for Configure Multiple Global Rules in APISix Standalone Mode
From API7 Docs | Plugin Global Rules you can read:If the same plugin is configured in both objects, both instances of the plugin will be executed sequentially, rather than overwriting each other.I've...
View ArticleKong 502 Bad Gateway: "An invalid response was received from the upstream...
TL;DRI can't send HTTP request to local docker container (accessible via 127.0.0.1:4002) through Kong gateway.Kong Gateway components:Service test_service: url=http://127.0.0.1:4002;Route test_route:...
View ArticleAnswer by mikyll98 for APISIX ingress controller on Kind cluster not routing...
TL;DRThe problem is that you are binding the Service to the wrong port: 8090.ExplainationThe reason why your CURL request fails, is that:in APISIX container, port 8090 is not mapped to anything;even if...
View ArticleComment by mikyll98 on Apisix on Docker can not access etcd instance
I'll comment here, so you can delete the answer below. It seems like APISIX is not reading the configuration and using default values (default value of deployment.etcd.host is http://127.0.0.1:2379)....
View ArticleAnswer by mikyll98 for Apisix on Docker can not access etcd instance
The log message Request etcd endpoint 'http://127.0.0.1:2379/version' error indicates that the configuration is wrong or that APISIX wasn't able to load it properly.There are basically two...
View ArticleAnswer by mikyll98 for Kong rate limiting in cluster mode
TL;DRYes, the plugin makes 2 DB calls per request per service, when in cluster mode with Postgres as the backend.Long VersionKong's rate-limiting plugin, when configured in cluster mode, stores limit...
View ArticleAnswer by mikyll98 for Does etcd have an environment DEFRAGMENT_ENABLE?
TL;DRNo, bitnami/etcd currently (v3.6) doesn't provide a flag for defragmentation.Long AnswerAccording to bitnami/etcd image README, there is no such flag as ETCD_DEFRAGMENT_*, nor anything similar.If...
View ArticleAnswer by mikyll98 for how to provision routes in apisix traditional mode so...
There are different ways to achieve this:load Etcd data folderwait for Etcd service to be healthy and use etcdctlwait for APISIX service to be healthy and use Admin APISince the safest way to interact...
View ArticleComment by mikyll98 on Can't figure out how to write a While Loop
@DarkBee Not only that, but changing from a while to a for loop will achieve literally nothing... The problem is the loop in Start() method, as other answers have already pointed out
View ArticleKong Ingress Controller: Failed parsing resource errors,...
I write this post even though I already solved the issue, because I think it might help someone out there, since I couldn't the cause nor a solution anywhere.I'm learning Kong authentication...
View ArticleAnswer by mikyll98 for Kong Ingress Controller: Failed parsing resource...
The issue was caused by these two consumers:# Consumer for User JWT tokenapiVersion: configuration.konghq.com/v1kind: KongConsumermetadata: name: user annotations: kubernetes.io/ingress.class:...
View ArticleComment by mikyll98 on Get Application Directory
@JeffreyBlattman Can provide a link to where the docs says not to use this? I can't find it anywhere...
View Articlekubectl: List pods whose names start with a keyword string [closed]
Using kubectl, how can I get a list of the pods whose name starts with a particular string?ExampleMy pods:$ kubectl get pods -n kongNAMESPACE NAME READY STATUS RESTARTS AGEkong foobar-cc7654c7b-htvmx...
View ArticleAnswer by mikyll98 for Accessing text selected in SelectionArea Flutter
You can use onSelectionChanged.It's a ValueChanged<SelectedContent?>?, and you can access the selected text via SelectedContent.plainText.Example:class HomePage extends StatefulWidget { const...
View ArticleAnswer by mikyll98 for Is it possible to override APISIX default response...
TL;DRYes, it's possible to override APISIX default responses via a custom plugin.Solution Using a Custom Plugin custom-responseFile custom-response.lua:local plugin_name = "custom-response"local ngx =...
View ArticleIs it possible to override APISIX default response using a custom plugin?
Apache APISIX by default gives inconsistent responses when returning errors. Here are some examples:404 Not Found:{"error_msg":"404 Route Not Found"}502 Bad...
View ArticleComment by mikyll98 on Apisix route for swagger end point not working
/docs/* and /* match different routes. /docs/* matches all routes prefixed with /docs/, which is different from your swagger endpoint: /docs != /docs/. /* matches all routes prefixed with / (i.e. every...
View ArticleAnswer by mikyll98 for Add upstream HTTP header if not present with Kong API...
Yes, you can use Kong's request-transformer plugin.Example:plugins: - name: request-transformer config: add: headers: - "X-Foo-Bar:some_hardcoded_default"The add operation will set the header only if...
View ArticleAnswer by mikyll98 for How to Upload a New Certificate to Kong Using decK?
When you use the declarative configuration, you must provide the ID along with certificate specifications.Example:certificates: - id: "my-certificate" cert: | -----BEGIN CERTIFICATE----- ...your...
View Article