Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (5) exceeded

It looks ok to create a machine in AWS without a swarm agent, but it fails with one using consul discovery. This is the command to try to create a machine in AWS.
$ docker-machine create --driver amazonec2
--amazonec2-access-key <ACCESS_KEY>
--amazonec2-secret-key <SECRET_KEY>
--amazonec2-session-token <SESSION_TOKEN>
--amazonec2-region
--amazonec2-zone
--amazonec2-vpc-id <VPC_ID>
--amazonec2-iam-instance-profile
--swarm
--swarm-master
--swarm-discovery="consul://<CONSUL_IP>:8500"
--engine-opt="cluster-store=consul://<CONSUL_IP>:8500"
--engine-opt="cluster-advertise=eth1:2376"
swarm-master
Running pre-create checks...
Creating machine...
(swarm-master) Launching instance...
Waiting for machine to be running, this may take a few minutes...
Machine is running, waiting for SSH to be available...
Detecting operating system of created instance...
Detecting the provisioner...
Provisioning with ubuntu(upstart)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (5) exceeded

Is it Machine 0.5.2?

docker-machine version 0.5.2 ( 0456b9f )

Maybe related to https://github.com/docker/machine/issues/2530?

We should dump the daemon logs automatically when this type of error occurs.

I don't know if you're already aware of this, but when this happened, I ssh'ed into that machine and checked if the docker was running, but it was not. So I tried to start it, but it didn't seem to be starting at all.

Any update on this?

@AlexOugh Can you please print the output of the Docker daemon logs on the failing system?  Most likely sudo journalctl --no-pager -u docker

I have the same issue using AWS driver, token discovery and docker-machine version 0.5.3, build 4d39a66 on ubuntu 15.10 (it was working previously, i provisioned a new machine and now i'm getting the
....
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded

@nathanleclaire
docker-machine version 0.5.4, build 6643d0e, AWS driver (without swarm options)
-- Logs begin at Wed 2016-02-17 19:15:33 UTC, end at Wed 2016-02-17 19:24:28 UTC. --
Feb 17 19:18:40 myenv systemd[1]: Starting Docker Application Container Engine...
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.461744964Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.471206567Z" level=info msg="Firewalld running: false"
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.564058457Z" level=info msg="Default bridge (docker0) is assigned with an IP address <IP_ADDRESS>/16. Daemon option --bip can be used to set a preferred IP address"
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.644613154Z" level=warning msg="Your kernel does not support swap memory limit."
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.704391001Z" level=info msg="Loading containers: start."
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.704916743Z" level=info msg="Loading containers: done."
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.705157812Z" level=info msg="Daemon has completed initialization"
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.705420949Z" level=info msg="Docker daemon" commit=9e83765 execdriver=native-0.2 graphdriver=aufs version=1.10.1
Feb 17 19:18:40 myenv systemd[1]: Started Docker Application Container Engine.
Feb 17 19:18:40 myenv docker[20964]: time="2016-02-17T19:18:40.715152635Z" level=info msg="API listen on /var/run/docker.sock"
Feb 17 19:18:44 myenv systemd[1]: Stopping Docker Application Container Engine...
Feb 17 19:18:44 myenv systemd[1]: Stopped Docker Application Container Engine.
Feb 17 19:18:44 myenv docker[20964]: time="2016-02-17T19:18:44.649633528Z" level=info msg="Processing signal 'terminated'"
Feb 17 19:18:53 myenv systemd[1]: Started docker.service.
Feb 17 19:18:53 myenv docker[21611]: flag provided but not defined: -d
Feb 17 19:18:53 myenv docker[21611]: See '/usr/bin/docker --help'.
Feb 17 19:18:53 myenv systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Feb 17 19:18:53 myenv systemd[1]: docker.service: Unit entered failed state.
Feb 17 19:18:53 myenv systemd[1]: docker.service: Failed with result 'exit-code'.

Thanks -- Try with Machine 0.6.0 and see if it fares any better

Worked with 0.6.0, thanks!

Cool thanks @jbwinters.  Going to close this ticket all, please file a new one with information if the issues persist with 0.6.0

Facing similar problem. (machine driver is amazonec2)
% docker-machine regenerate-certs my-machine
Regenerate TLS machine certs?  Warning: this is irreversible. (y/n): y
Regenerating TLS certificates
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded
%

and I found this issue, checked
% docker-machine --version
docker-machine version 0.5.6, build 61388e9

so updated to
% docker-machine --version
docker-machine version 0.6.0, build e27fb87

then tried again, but got the same result.
It is certain the docker API daemon on host is up and listening, because I could get host machine's log below
% docker-machine ssh my-machine
ubuntu@my-machine:~$ sudo docker daemon -D
# ... many logs
INFO[0000] Daemon has completed initialization
INFO[0000] Docker daemon                                 commit=c3959b1 execdriver=native-0.2 graphdriver=aufs version=1.10.2
# ... many logs
INFO[0000] API listen on /var/run/docker.sock

DEBU[0018] Calling GET /v1.22/version
DEBU[0018] GET /v1.22/version
# these two logs were outputted on regenerate-certs

Is this because this machine is --driver amazonec2? or can I do anything?

What worked for me was adding a --amazonec2-ami param and setting it to
aws's Ubuntu 14.04 LTS image: ami-fce3c696 instead of the 15.10 (which
apparently is now default now).
On Thu, Mar 10, 2016 at 3:23 AM OCHIAI Hiromu<EMAIL_ADDRESS>wrote:

Facing similar problem. (machine driver is amazonec2)
% docker-machine regenerate-certs my-machine
Regenerate TLS machine certs?  Warning: this is irreversible. (y/n): y
Regenerating TLS certificates
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded
%
and I found this issue, checked
% docker-machine --version
docker-machine version 0.5.6, build 61388e9
so updated to
% docker-machine --version
docker-machine version 0.6.0, build e27fb87
then tried again, but got the same result.
It is certain the docker API daemon on host is up and listening, because I
could get host machine's log below
% docker-machine ssh my-machine
ubuntu@my-machine:~$ sudo docker daemon -D# ... many logs
INFO[0000] Daemon has completed initialization
INFO[0000] Docker daemon                                 commit=c3959b1 execdriver=native-0.2 graphdriver=aufs version=1.10.2# ... many logs
INFO[0000] API listen on /var/run/docker.sock
DEBU[0018] Calling GET /v1.22/version
DEBU[0018] GET /v1.22/version# these two logs were outputted on regenerate-certs
Is this because this machine is --driver amazonec2? or can I do anything?
—
Reply to this email directly or view it on GitHub
https://github.com/docker/machine/issues/2533#issuecomment-194728625.

@nathanleclaire
:thought_balloon: sorry for containing my trial-and-errors
% docker-machine ssh my-machine
Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-18-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

89 packages can be updated.
53 updates are security updates.

*** System restart required ***
Last login: Thu Mar 10 07:43:49 2016 from <IP_ADDRESS>
ubuntu@my-machine:~$ sudo journalctl -u docker
-- Logs begin at Thu 2016-03-10 07:38:24 UTC, end at Fri 2016-03-11 03:21:26 UTC. --
Mar 10 07:41:55 my-machine systemd[1]: Starting Docker Application Container Engine...
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.100877328Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.111232190Z" level=info msg="Firewalld running: false"
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.252275662Z" level=info msg="Default bridge (docker0) is assigned with an IP address <IP_ADDRESS>/16. Daemon option --bip can be used to set a preferred IP address"
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.398230144Z" level=warning msg="Your kernel does not support swap memory limit."
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.454126098Z" level=info msg="Loading containers: start."
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.454542482Z" level=info msg="Loading containers: done."
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.454809619Z" level=info msg="Daemon has completed initialization"
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.455064837Z" level=info msg="Docker daemon" commit=c3959b1 execdriver=native-0.2 graphdriver=aufs version=1.10.2
Mar 10 07:41:55 my-machine systemd[1]: Started Docker Application Container Engine.
Mar 10 07:41:55 my-machine docker[20968]: time="2016-03-10T07:41:55.465182083Z" level=info msg="API listen on /var/run/docker.sock"
Mar 10 07:41:57 my-machine systemd[1]: Stopping Docker Application Container Engine...
Mar 10 07:41:57 my-machine systemd[1]: Stopped Docker Application Container Engine.
Mar 10 07:41:57 my-machine docker[20968]: time="2016-03-10T07:41:57.781410041Z" level=info msg="Processing signal 'terminated'"
Mar 10 07:42:00 my-machine systemd[1]: Started docker.service.
Mar 10 07:42:00 my-machine docker[21618]: flag provided but not defined: -d
Mar 10 07:42:00 my-machine docker[21618]: See '/usr/bin/docker --help'.
Mar 10 07:42:00 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Mar 10 07:42:00 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:42:00 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 07:45:07 my-machine systemd[1]: Started docker.service.
Mar 10 07:45:07 my-machine docker[22326]: flag provided but not defined: -d
Mar 10 07:45:07 my-machine docker[22326]: See '/usr/bin/docker --help'.
Mar 10 07:45:07 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Mar 10 07:45:07 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:45:07 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 07:45:14 my-machine systemd[1]: Started docker.service.
Mar 10 07:45:14 my-machine docker[22344]: flag provided but not defined: -d
Mar 10 07:45:14 my-machine docker[22344]: See '/usr/bin/docker --help'.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 07:45:14 my-machine systemd[1]: Started docker.service.
Mar 10 07:45:14 my-machine docker[22348]: flag provided but not defined: -d
Mar 10 07:45:14 my-machine docker[22348]: See '/usr/bin/docker --help'.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 07:45:14 my-machine systemd[1]: Started docker.service.
Mar 10 07:45:14 my-machine docker[22354]: flag provided but not defined: -d
Mar 10 07:45:14 my-machine docker[22354]: See '/usr/bin/docker --help'.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 07:45:14 my-machine systemd[1]: Started docker.service.
Mar 10 07:45:14 my-machine docker[22361]: flag provided but not defined: -d
Mar 10 07:45:14 my-machine docker[22361]: See '/usr/bin/docker --help'.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Start request repeated too quickly.
Mar 10 07:45:14 my-machine systemd[1]: Failed to start docker.service.
Mar 10 07:45:14 my-machine systemd[1]: docker.service: Failed with result 'start-limit'.
Mar 10 07:45:21 my-machine systemd[1]: Stopped docker.service.
Mar 10 07:51:51 my-machine systemd[1]: Stopped docker.service.
Mar 10 07:51:57 my-machine systemd[1]: Started docker.service.
Mar 10 07:51:57 my-machine docker[23374]: flag provided but not defined: -d
Mar 10 07:51:57 my-machine docker[23374]: See '/usr/bin/docker --help'.
Mar 10 07:51:57 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Mar 10 07:51:57 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:51:57 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 07:53:40 my-machine systemd[1]: Stopped docker.service.
Mar 10 07:53:43 my-machine systemd[1]: Started docker.service.
Mar 10 07:53:43 my-machine docker[24577]: flag provided but not defined: -d
Mar 10 07:53:43 my-machine docker[24577]: See '/usr/bin/docker --help'.
Mar 10 07:53:43 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=125/n/a
Mar 10 07:53:43 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:53:43 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 07:58:28 my-machine systemd[1]: Stopped docker.service.
Mar 10 07:58:31 my-machine systemd[1]: Started docker.service.
Mar 10 07:58:31 my-machine docker[25869]: time="2016-03-10T07:58:31.075805960Z" level=fatal msg="Error starting daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid"
Mar 10 07:58:31 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 07:58:31 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 07:58:31 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 08:02:47 my-machine systemd[1]: Stopped docker.service.
Mar 10 08:02:50 my-machine systemd[1]: Started docker.service.
Mar 10 08:02:50 my-machine docker[28046]: time="2016-03-10T08:02:50.136510145Z" level=fatal msg="Error starting daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid"
Mar 10 08:02:50 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 08:02:50 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 08:02:50 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 08:09:17 my-machine systemd[1]: Stopped docker.service.
Mar 10 08:09:23 my-machine systemd[1]: Started docker.service.
Mar 10 08:09:23 my-machine docker[29349]: time="2016-03-10T08:09:23.381718212Z" level=fatal msg="Error starting daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid"
Mar 10 08:09:23 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 08:09:23 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 08:09:23 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 08:10:27 my-machine systemd[1]: Stopped docker.service.
Mar 10 08:10:33 my-machine systemd[1]: Started docker.service.
Mar 10 08:10:33 my-machine docker[30717]: time="2016-03-10T08:10:33.578601333Z" level=fatal msg="Error starting daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid"
Mar 10 08:10:33 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 08:10:33 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 08:10:33 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 10 08:11:15 my-machine systemd[1]: Stopped docker.service.
Mar 10 08:11:19 my-machine systemd[1]: Started docker.service.
Mar 10 08:11:19 my-machine docker[31858]: time="2016-03-10T08:11:19.667703053Z" level=fatal msg="Error starting daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid"
Mar 10 08:11:19 my-machine systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 08:11:19 my-machine systemd[1]: docker.service: Unit entered failed state.
Mar 10 08:11:19 my-machine systemd[1]: docker.service: Failed with result 'exit-code'.

@mlabieniec
Thank you!
but it's not found on my region:ap-northeast-1 :crying_cat_face:
so I'll try another AMI existing on Tokyo.

To reproduce this problem and inspect the effect of AMI, I create new machine by hitting
% docker-machine create --driver amazonec2 \
--amazonec2-region ap-northeast-1 \
--amazonec2-vpc-id vpc-123abc \
--amazonec2-security-group sg-my-servers \
my-service-machine

In this case, it works completely.
If my memory is correct, it is the same operation as what I got error.
and the AMI is ami-b36d4edd now. I regret NOT having logged AMI in error case.
So sorry, I've lost the way to reproduce this problem.
still waiting for @nathanleclaire's opinion. thanks for your help :)

@otiai10 If you try docker-machine provision my-service-machine on the problematic instance?
I think what happened is:

machine <0.6.0 created docker configuration file using -d (deprecated) instead of daemon (you can see this flag in the logs)
upgrade of docker version went to a new version which doesn't recognize this flag anymore
regenerate-certs doesn't replace the config file so the old (faulty) one was still in place

Anyway glad to hear it's working now @otiai10 !

I'm having the same error message but instead with DigitalOcean using generic driver.
i'm trying, with docker-machine create command, to create a machine over an existing DigitalOcean droplet (i must not create a new one droplet and delete the existing one). Using the digitalocean driver is not valid for this case and i'm using the generic driver solution.
I'm running docker-machine with the Windows 10 Ubuntu subsystem (also i have tried it with Git Bash) and i'm using Windows 10 Pro with Hyperv.
The DigitalOcean droplet has a Ubuntu 18.04.
Docker version is:
root@do-sctv:~# docker version
Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b7f0
 Built:             Wed Mar 11 01:25:46 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b7f0
  Built:            Wed Mar 11 01:24:19 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

The command i run is the following:
$ docker-machine create --driver generic --generic-ip-address 142.xx.xxx.xx --generic-ssh-user root --generic-ssh-key ~/.ssh/id_rsa_do_sctv do-sctv

and i get the following output:
Running pre-create checks...
Creating machine...
(do-sctv) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of r
etries (10) exceeded

I have enabled in the ufw firewall the following ports (in the droplet):
ufw allow 22/tcp
ufw allow 2376/tcp
ufw allow 7946/tcp
ufw allow 7946/udp
ufw allow 4789/udp

Also, i have tried docker-machine regenerate-certs --force --client-certs do-sctv with the same error.
When doing docker-machine ls i get the following error:
NAME            ACTIVE   DRIVER    STATE     URL                        SWARM   DOCKER    ERRORS
do-sctv         -        generic   Running   tcp://142.xx.xxx.xx:2376           Unknown   Unable to query docker version: Cannot connect to the docker engine endpoint

With docker-machine env do-sctv the output is:
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "142.xx.xxx.xx:2376": dial tcp 142.xx.xxx.xx:2376: connect: connection refused
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which might stop running containers.

Hope you can help me.
Thanks.

I seem to be receiving this issue in December 2020.


Support for Legacy Swagger v2.0

I'm investigating openapi-explorer as an alternative to swagger-ui, and it's mostly working, except all parameters are missing. For example, here's what swagger-ui renders for one of our GET actions:

And here's what openapi-explorer renders for the same URL and action:

I've looked through the config options and nothing is jumping out at me. Shouldn't the parameters "just work"? They're missing for every action.

Here's a bit more info. In the JSON spec file, the action mentioned above is defined like this:
    "/audit/exportLogs.do": {
      "$ref": "/web/api/api_json/audit.json#/paths/~1audit~1exportLogs.do"
    },

If I open that other file (audit.json), I see this:
{
  "swagger": "2.0",
  "info": {
    "version": "1.0.0"
  },
  "basePath": "/cvpservice",
  "paths": {
    "/audit/exportLogs.do": {
      "get": {
        "produces": ["application/json", "application/x-www-form-urlencoded"],
        "parameters": [
          {
            "description": "startTime",
            "in": "query",
            "name": "startTime",
            "required": true,
            "type": "string"
          },
          {
            "description": "endTime",
            "in": "query",
            "name": "endTime",
            "required": true,
            "type": "string"
          },
          {
            "description": "category",
            "in": "query",
            "name": "category",
            "required": true,
            "type": "string"
          },
          {
            "description": "objectKey",
            "in": "query",
            "name": "objectKey",
            "required": true,
            "type": "string"
          }
        ],
        ...

Here's another interesting data point: if I use the advanced search to search for startTime in only the request parameters, it seems to find it:

So openapi-explorer does "know" about this parameter, but why isn't it rendering it?

The reason this isn't rendering is because largely the swagger v2.0 has be obsolete for quite some time in favor of the standardize OpenAPI specification (which is v3.0). Anything that happens to "work" in here is largely accidental and is because it coincides with how the v3.0 is.
We have a couple of options here, but the best one is going to be to try to upgrade your spec to be v3.0 compatible. There are a bunch of tools to do this, after a couple of seconds of googling I found this one: https://mermade.org.uk/openapi-converter
So the question is, do you have the option to run an upgrade on your spec to make it compliant with the current standard?

Ah okay, I was kind of wondering if our spec was old. Thanks for confirming! Let me talk to our backend devs and see if we can publish a newer version of our spec.

Ah okay, I was kind of wondering if our spec was old. Thanks for confirming! Let me talk to our backend devs and see if we can publish a newer version of our spec.

If not, we can see what alternatives are available. Just as an example, you also don't need to change everything, but if you are in control of the generation/management of the spec, a simple thing like wrapping the type in a schema solves this:
"parameters": [
    {
        "description": "startTime",
        "in": "query",
        "name": "startTime",
        "required": true,
        "schema": {
            "type": "string"
        }
    }
]

Sounds good, I'll investigate that too. Feel free to close this issue.


Please bring back the query duration

Describe your feature request
Previously the query duration was shown in the Result view. It was a great indicator to see if I messed up a query that didn't give me an error. Currently if I rerun a query I can't tell if something changed.
Are you willing to contribute this feature?
No

Since Surrealist now uses the official SurrealDB Rust crate for making connections this is currently not possible as unlike the WebSocket protocol no time value is made available.
If SurrealDB would implement this functionality I would absolutely add the time value back as I too found it very useful. I'll keep looking into this.

Quick update, I've personally added support for retrieving query times into the SurrealDB Rust SDK and will be using it in the next Surrealist release.


Can not print pdf after digital signature in Acrobat reader.

After applying digital signature, the printing fails with message 'The document can not be printed' and 'No page selected for printing' showing up in Acrobat Reader.
Please find below the link of documents -

[https://drive.google.com/file/d/1Zkv0vs9gdBXNkdPkJlQ8pCJ19PnpfIV3/view?usp=sharing](Signed PDF)( not being printed.)

[https://drive.google.com/file/d/1T4nHVmMw-AjoNvWo7nJOYbDFfaCKDm_E/view?usp=sharing](Unsigned PDF)(Prints fine.)

I use Mac OS(v10.14) and Acrobat Reader (v19.12.20040.345140); I used OpenSSL's load_pkcs12 function for signing.

Under windows acrobat reader dc shows the same messages and wont print.
The file:wiki_page_unsigned.pdf is not valid, error(s) :
1.0.14 : Syntax error, Object {8:0} has an offset of 0
5.2.2 : Forbidden field in an annotation definition, Flags of Link annotation are invalid
.....
I don't know how acrobat will behave after signing file with errors, evince on linux works fine with  signed and unsigned files with wrong object offsets

@nilinswap @m32 I'm facing the same problem on Mac and windows when trying to print a signed document. Any ideas how to fix it?

:) my glass ball doesn't show the contents of pdf documents, send me your document, maybe I will see something and solve the problem

@m32 Hey, sorry about that. Here's the link to download the pdf in question - https://drive.google.com/file/d/1W7-Svg8L72A4DxbOLX68AoXgMAQSdquJ/view?usp=sharing

java pdf validate from pdfbox just throws error on this file, please post wkhtmltopdf generated file - just before signing
using a self-signed certificate will generate additional errors in the future

Details
Validating file "x.pdf" for conformance level pdf1.4 The key Count is required but missing.The value of the key Count is 0 but must be 1.The document does not conform to the requested standard.The document doesn't conform to the PDF reference (missing required entries, wrong value types, etc.).The document does not conform to the PDF 1.4 standard.Done.

https://www.pdf-online.com/osa/validate.aspx

Thanks for looking into this @m32
For sake of completeness, just posting a few things here.
Document before signing - https://drive.google.com/file/d/1Orxgx7BLjMKlGw4IO1zC_zz3vrH-w0uM/view?usp=sharing [This prints fine!]
Document after signing - https://drive.google.com/file/d/1xdLaMlGdu6ukUZRfEyGPfzu7OD-JskDW/view?usp=sharing [On printing from adobe acrobat (11.0.23), this gives the error 'The document can not be printed' followed by 'No page selected for printing' ]
I'm using wkhtmltopdf to convert HTML to PDF using pdfkit. Sample code here -
import pdfkit
import uuid
from django.template import Template as T
from django.template import Context

WKHTMLTOPDF_OPTIONS = {
    'page-size': 'A4',
    'encoding': 'UTF-8',
}
raw_html = '
Hello, {{ name }}!
'
data = {'name': 'Tapan'}

pdf_name = '{}.pdf'.format(str(uuid.uuid4()))
html = T(raw_html).render(Context(data))
pdfkit.from_string(html,
                   pdf_name,
                   options=WKHTMLTOPDF_OPTIONS)

I'm then signing this document with a self signed certificate. Can using a self signed certificate be causing problems?

Additional information that might help. I downloaded a sample PDF from here - https://smallpdf.com/shared#pt=02fdd17c-5a41-4a2c-a381-e094422dca8d
When I sign this document with a self signing certificate, I'm able to print it. So looks like the issue is with how the pdf is being generated by wkhtmltopdf.

Thank you for an example, I will look at him but I have no idea why pdfreader shows the file after signing as wrong. On Linux, evince doesn't make any problems, the signature is correct ... I'm surprised

File | pdf-before.pdf
Compliance | pdf1.4
Result | Document does not conform to PDF/A.
Details | Validating file "pdf-before.pdf" for conformance level pdf1.4 The key Count is required but missing.The value of the key Count is 0 but must be 1.The document does not conform to the requested standard.The document doesn't conform to the PDF reference (missing required entries, wrong value types, etc.).The document does not conform to the PDF 1.4 standard.Done.
Before signing, the pdfreader does not cause problems with printing, only after signing. However, the file is invalid, try validating it on: https://www.pdf-online.com/osa/validate.aspx

5 0 obj
<<
/Type /Page
/Parent 2 0 R
/Contents 12 0 R
/Resources 14 0 R
/Annots 15 0 R
/MediaBox [0 0 595 842]

endobj

It does not look like a valid pdf object, but later is referenced in signed annot:
15 0 obj
[ ]
endobj

@m32 Thanks for looking into this. I didn't understand the invalid object. Is it possible to see what the invalid object is and why it's invalid? Will help me to debug what I can do to get wkhtmltopdf to generate the pdf correctly. I tried using WeasyPrint to generate the document and sign it and that worked perfectly. I was able to print the signed document then.

Only someone from Adobe can answer your question about handling invalid objects after signing in acrobar reader

@tapanpandita we found out that wkhtmltopdf produces ill-formatted pdf which comes out to surface on applying digital signature. We are currently using chrome-puppeteer to generate pdf which is fine after signature. PS: Sorry for late reply.

Hey, i was facing the same issue.
PDF files generated by converting HTML to PDF using wkhtmltopdf are valid. But after signing, Acrobat kept crashing.
On debugging into the logfiles, i found that it was complaining about invalid Annotation Object.
As pointed before, the files have this annotation object reference /Annots 15 0 R
which is nothing but an empty object.

15 0 obj
[ ]
endobj

cms.py inserts the previous annotations into the signature header.
But in getannots it has a strip and then [1:-1]. Not sure why is that.
So the final signature annotation which gets built is /Annots[5 0 24 0 R] rather than the correct one which is /Annots[15 0 R 24 0 R]
removing the strip and the [1:-1] worked for me.

I added the -l option to pdf-make.py - the program then creates a link from page 1 to page 2. An unsigned file does not cause the acrobat reader to complain. Signing such a file in the acrobat reader shows up as an incorrectly signed file. I have the conclusion that the signed files are differently checked for compliance with the PDF standard than those which are not signed.
It may be the same with other elements of the file. After signing, acrobat reader behaves differently than before signing.

hey @m32 The signature object that gets created for the wkhtmltopdf file is wrong.
This is the start of the generated signature.

5 0 obj
<</Annots[5 0 24 0 R]/Type /Page /Parent 2 0 R /Contents 12 0 R /Resources 14 0 R /MediaBox [0 0 595 842 ]>>
endobj

The Annots object should be /Annots[15 0 R 24 0 R].
I was not able to understand the reasoning for this line data = fp.getvalue().strip()[1:-1].
What's the rational for removing the 2 characters?

the getannotation result must be combined with a new signature element and placed in array type together - hence the deletion of parentheses - and the function returns different results: 5 0 R or [5 0 R]

there is still some error after the correction
org.apache.pdfbox.preflight.exception.ValidationException: Unable to access Annotation
at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateAnnotation(SinglePageValidationProcess.java:219)

dumpobj returns 15 0 R  as it is a reference to pdf object. The strip and [1:-1] makes it 5 0  which is the problem.
So, we can either

add brackets in line 89 something like out.write(b"[%d 0 R ]" % (obj.objid)) or
not do .strip[1:-1].

I have released a new version. Please check how it looks with you now.
@karannshah line 89 cannot be changed.
.strip()[1: -1] I have changed to if data [0] == '[' - it helped me, hence the version

Yes, it works. Thanks.

Caused by: java.io.IOException: Error: Unknown annotation type COSArray{[]}
An empty annotation does not show the file to be invalid before signing - pdf-buggy.pdf.
While signing, you may need to create an annotation (image or button added), but the previous annotations, i.e. the empty one, are copied at the same time.
This can be seen by signing pdf-buggy.pdf by pdf-sign-cms-pdfrw.py. If previous annotations are not copied (line 327/328) AR will show the file without messages

Please check and send your comments. The new version uses the pypdf library to read and create pdf structures. I also rewrote the library with annotations. Now we can also sign password protected pdfs. Linearized pdfs are also supported.

Пожалуйста, проверьте и отправьте ваши комментарии. Новая версия использует библиотеку pypdf для чтения и создания структур pdf. Я также переписал библиотеку с аннотациями. Теперь мы также можем подписать защищенные паролем PDF-файлы. Линеаризованные PDF также поддерживаются.

1)After the update, a new problem came out. When I sign a document with user 1, then its signature is put as a certificate, and not as a signature. And when I sign this document by user 2, his signature is not put. It doesn’t cause any errors, but only the certificate of user 1 is in the file, and there is no way to sign the document by user 2.
221_Политология_Великова Нина Сергеевна.pdf
2)when i use 'signaturebox' and 'signature' :
Internal Server Error: /api/teachers/pdf/orders/sign/7569/
Traceback (most recent call last):
File "D:\test_projects\mrs25\venv\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "D:\test_projects\mrs25\venv\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\test_projects\mrs25\venv\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\test_projects\mrs25\venv\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\test_projects\mrs25\venv\lib\site-packages\django\views\generic\base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "D:\test_projects\mrs25\venv\lib\site-packages\rest_framework\views.py", line 495, in dispatch
response = self.handle_exception(exc)
File "D:\test_projects\mrs25\venv\lib\site-packages\rest_framework\views.py", line 455, in handle_exception
self.raise_uncaught_exception(exc)
File "D:\test_projects\mrs25\venv\lib\site-packages\rest_framework\views.py", line 492, in dispatch
response = handler(request, *args, **kwargs)
File "D:\test_projects\mrs25\scores\views\teachers.py", line 48, in post
f = self.get_sign_method()
File "D:\test_projects\mrs25\scores\views\teachers.py", line 39, in get_sign_method
return pdfworker.sign()
File "D:\test_projects\mrs25\scores\helpers.py", line 391, in sign
'sha256'
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\cms.py", line 501, in sign
return cls.sign(datau, udct, key, cert, othercerts, algomd, hsm, timestampurl)
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\cms.py", line 399, in sign
self.makepdf(prev, udct, algomd, zeros)
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\cms.py", line 268, in makepdf
pdfa = annotation.as_pdf_object(identity(), page=page0ref)
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\PyPDF2_annotate\annotations\base.py", line 65, in as_pdf_object
transform,
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\PyPDF2_annotate\annotations\base.py", line 170, in _make_appearance_stream_dict
stream = self.make_appearance_stream()
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\PyPDF2_annotate\annotations\text.py", line 265, in make_appearance_stream
line_spacing=A.line_spacing,
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\PyPDF2_annotate\annotations\text.py", line 294, in get_text_commands
path=HELVETICA_PATH, font_name=DEFAULT_BASE_FONT, font_size=font_size
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\PyPDF2_annotate\util\true_type_font.py", line 30, in get_true_type_font
font = TrueTypeFont(path, font_name, font_size)
File "D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\PyPDF2_annotate\util\true_type_font.py", line 43, in init
self._ttfFont = TTFont(self.ttfPath)
File "D:\test_projects\mrs25\venv\lib\site-packages\fontTools\ttLib\ttFont.py", line 122, in init
file = open(file, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'D:\test_projects\mrs25\venv\lib\site-packages\endesive\pdf\PyPDF2_annotate\annotations..\fonts\Helvetica.ttf'
3)Where and how can I read about dictionary parameter keys

The digital signature in the world of acrobat reader has different names due to the order of submission - certified and approved.
The signature is shown only if it has a unique field name (field: X on the Y page in the Acrobat Reader dialog), the field name is given in the sigfield parameter.
Information about the dictionary components is at the end of the cms.py file.
Unfortunately, I also have a problem with my language (polish ąćęłńóśżź) in the signature. Only text with letters in latin1 encoding is correctly shown, the rest of the world must use unicode ttf fonts.
From what I can see, not everything has been prepared in the whl package. Font Helvetica.ttf is not included.

Цифровая подпись в мире acrobat reader имеет разные названия в зависимости от порядка подачи - заверенная и утвержденная.
Подпись отображается только в том случае, если она имеет уникальное имя поля (поле: X на странице Y в диалоговом окне Acrobat Reader), имя поля указывается в параметре sigfield.
Информация о словарных компонентах находится в конце файла cms.py.
К сожалению, у меня также есть проблема с моим языком (польский ąćęłńóśżź) в подписи. Только текст с буквами в кодировке latin1 отображается правильно, остальной мир должен использовать шрифты Unicode TTF.
Из того, что я вижу, не все было подготовлено в пакете whl. Шрифт Helvetica.ttf не входит.

I used pip install

Hi,
It does not render properly annotation text in acrobat reader or masterpdf, due to fonts property, but it renders ok in default ubuntu pdf reader. I have signed with pdf-sign-cms-pypdf.py

I forgot about compressing fonts, it has been fixed in 1.5.6

Yes, it works perfect with pdf-sign-cms.py, but if fails in pdf-sign-cms-pypdf.py. Font is not embebed in the last.
Is there any option to render the annotation text and the image at the same signature?
Thanks in advance, great job!!

With new release of endesive this issue has

Please check and send your comments. The new version uses the pypdf library to read and create pdf structures. I also rewrote the library with annotations. Now we can also sign password protected pdfs. Linearized pdfs are also supported.

Yes! the new release solved my problem. Thanks for the help.


install_c_kernel

hello！I build a linux system with wsl2 and ubuntu, and when I run the statement “sudo install_c_kernel”, it does not run successfully. The error is 'command not found‘.
What's the solution? Thanks!

I find that you can use intall_c_kernel --user .


Generate gauge specification and implementation's from recorded script

A user should be able to generate gauge specifications along with implemented steps from a recorded taiko script.
When a user records a complete workflow it can turn into a gauge scenario.
Example:-
The following taiko script
await openBrowser();
await goto("google.com");
await write("taiko test automation");
await click("Google Search");
await closeBrowser();
can be converted into following
googleSearch.spec
# Specification

* open browser

## Scenario
* go to "google.com"
* write "taiko test automation"
* click "Google Search"

___

* close browser

and
googleSearchImplementation.js
step("open browser", async () => openBrowser());

step("go to <url>", async (url) => {
   await goto(url);
});

step("write <query>", async (query) => {
    await write(query);
})

step("click <link>", async (link) => {
    await click(link)
});

step("close browser", async () => closeBrowser());

DevNotes
Approach to achieve this
The decided solution is to generate the code from taiko

Have another command in taiko REPL (let's say .gauge)
User records a complete flow and use .gauge command
If a filename is not provided as an argument to .gauge command it will show the generated specification and implementations on the console.
if a filename if given figure out if it is a gauge project or not (based on file path).

if given name belongs to a gauge project Add the specification and implementations to the gauge project.
Or create a new gauge project and add spec to that.

Problems/Challanges

We might end up creating duplicate steps

How about recording will be converted to one method instead of one for each line.
With ability to load a script before recording https://github.com/getgauge/taiko/issues/272. One can record a logical chunk at a time. A scenario has many logical chunks.
Example - booking a movie ticket

This has movie selection, seat selection, payment...
Let's say you record script to select a movie first movie.js then selecting gold/executive seats are 2 separate logical chunks. Both can be recorded after playing back movie.js.
Finally payment flow can be recorded.
Finally when movie.js, goldseat.js, executiveseat.js payment.js are generated by taiko all can be converted to gauge steps for movieselection, seatselection,paymentoption... which user can work with and continue to refactor.

Thoughts?

@sguptatw This make sense.

Prompt user to enter spec/scenario/step name
Create scenario with only one step
exclude openBrowser and closeBrowser if the given path belongs to a gauge project
Add openBrowser and closeBrowser as beforeScenario and afterSceanrio if project is not gauge project (after creating a new project).

Here's what I think works best.
$ taiko
> openBrowser()
> goto("google.com")
> write("Gauge test automation")
> click("google search")
> closeBrowser()

> .step
step("<insert step name>", async () => {
    goto("google.com");
    write("Gauge test automation")
    press("Enter")
});

This is for copying it to a step implementation file or previewing the step. Note, that Taiko does not ask for the step name, use a place holder instead.
To save it to an external file
> .step tests/google.js

If the file does not exist generate the following.
/* globals gauge*/
"use strict";
const { openBrowser,write, closeBrowser, goto, press, text, contains } = require('taiko');

beforeSuite(async () => openBrowser({ headless: headless }));
afterSuite(async () => closeBrowser());

step("<insert step name>", async () => {
    goto("google.com");
    write("Gauge test automation")
    press("Enter")
});

If a file is already there. With steps append to it. For e.g.
/* globals gauge*/
"use strict";
const { openBrowser,write, closeBrowser, goto, press, text, contains } = require('taiko');

beforeSuite(async () => openBrowser({ headless: headless }));
afterSuite(async () => closeBrowser());

step("Pre existing step", async () => {
  goto('foo');
  click('bar');
});

step("<insert step name>", async () => {
    goto("google.com");
    write("Gauge test automation")
    press("Enter")
});

Other points.

.step will not create a spec file
.step will not initialize a gauge project.

Initializing a gauge project etc needs to be done outside taiko. Or on a separate command.

Question
If the generated code is having step text as "<insert step text here>" in the specification it is getting auto-completed as a step with only a static parameter.
Should the step text be reconsidered?

Questions

If the generated code is having step text as "" in the specification it is getting auto-completed as a step with only a static parameter.
Should the step text being generated reconsidered?
When multiple .step are recorded for the same project and code is added to gauge project, multiple hooks with open and closeBrowser are generated. Should the code generation for the hook be separated like

/*hook to open and close browser. Do not add this if it already exists*/
"use strict";
const { openBrowser, closeBrowser } = require('taiko');

beforeSuite(async () => openBrowser());
afterSuite(async () => closeBrowser());

/* globals gauge*/
"use strict";
const { write, goto, press, text, contains } = require('taiko');

step("insert step name", async () => {
    goto("google.com");
    write("Gauge test automation")
    press("Enter")
});

A step is generated for a gauge project. A project initialized with the template(the default is taiko template) already has the hook with openBrowser and closeBrowser. So on second thoughts I think we need not generate the hook details at all. Thoughts?

As the openBrowser and closeBrowser happens in the beforeSuite and afterSuite .step must not generate hook code as it will be initialized during gauge init js

The required changes has been made and should be available in https://github.com/getgauge/taiko/commit/06bd1cd297ae27034f51f1c566202a563e3259de .


React Native Support

Did anybody check RTCMultiConnection server with React Native?
is it possible to use RTCMultiConnection  functions in React Native?

Ok, I have an idea but I'm not sure if it's practically valid, I would love to see where this could lead though.
If you go to react-native-webrtc  repo, you see that you can import RTCPeerConnection, RTCSessionDescription, etc. to the javaScript realm, which theoretically should expose all webRTC APIs to JS, Right! They even hinted to that by saying.

Anything about using RTCPeerConnection, RTCSessionDescription and RTCIceCandidate is like browser.Support most WebRTC APIs.

Alright ! in your react-native directory you hit

npm install rtcmulticonnection

So you import RTCMulticonnection to your react-native app like this:
import {   RTCPeerConnection,   RTCIceCandidate,   RTCSessionDescription,   RTCView,   MediaStream,   MediaStreamTrack,   getUserMedia, } from 'react-native-webrtc'; import RTCMultiConnection from 'RTCMultiConnection';
Now, I know that this might come very wrong and you're probably yelling at me now, but "WHAT-IF". of course you'd also get rid of browser specific functionalities as the webRTC api will running now on the Native Realm when Components render, nonetheless , it should be easier than implementing the whole work flow by your own.

have you try ?

Something new here?

is this work?

is this work?

Just tried but the app doesn't fire up at all, complaining about a
TypeError: undefined is not an object (evaluating 'navigator:userAgent.indexOf')
Does anyone have any success with RN?

Just tried but the app doesn't fire up at all, complaining about a
TypeError: undefined is not an object (evaluating 'navigator:userAgent.indexOf')
Does anyone have any success with RN?


add BerReader.readOID()

i need readOID for parsing snmp packets. this passes superficial tests and has no impact on existing functionality.
this now includes fixes for writing OIDs with large (numerically) components.

Super sorry this took so long to get to (holidays and all).  It all looks good, although I think your typo is going to stick given the ordering of commits I see (ObjectDescritor).  I'll just fix afterwards.

Thanks David!
It's out in<EMAIL_ADDRESS>and I added you to the contributors field of the package.json file.


fix: redirect to realm iff it exists

Redirect to realm only if it exists, else proceed to show the template_response
fixes #7132

Merged as a14ec174732a92ecaac5640c70070232f6e6fcf4 after fixing the commit message.
Check out the Zulip commit message guidelines for more details: https://zulip.readthedocs.io/en/latest/version-control.html#commit-messages
BTW @darshanime you should set GIT_AUTHOR_NAME so you get credited properly in the release notes.

Sure @timabbott, will keep that in mind!


Badge

Badge
In this PR, I implemented the following features:

Implemented badge render conditionally

Hi @degisew,
I am impressed with your work...
Very good job.

You can merge it.
Nothing else to say

Thanks @Olivier-Kango


Include plain POST payload not only FormData

Is it by design that we it are able only to log FormData and not any other plain POST payload like JSON. I know it would be aweful to log binary data or stuff like that but maybe we can add some configurable filter on the content type of the request.
It would be nice if we can have logs of full payload of at least failed HTTP requests

Hi @ylashin
For this one, I think it may be a bit dangerous/tricky/risky to enable that by default (because of streamed contents that we don't want to consume, and possibly binary stuff or large chunks of data ...).
I wonder if it would be better to enable that as an "opt-in" mechanism for specific needs, for instance by explicitly adding some object to capture in the log event ...
This could look something like :
Context.AddToSerilogWebLogEvent("RequestContent", something, destructure: false)

(Context being an HttpContextor HttpContextBase or something of this family, i.e. something that lives for the duration of the request and can store arbitrary objects in a dictionary )
And then, when generating the event at the end of the request, the module could look in there and enrich the event with the registered properties ...
This mechanism could then be used directly from a given Controller Action / WebForm page , or more generically, for instance in MVC or WebAPI ActionFilters / ExceptionFilters ...

Thank @tsimbalar

Thank @tsimbalar , your suggestion would work fine but I was actually thinking of something like

Thank @tsimbalar , your suggestion would work fine but I was actually thinking of something like
ApplicationLifecycleModule.LogPostedFormData = LogPostedFormDataOption.Always;
ApplicationLifecycleModule.FilterPasswordsInFormData = false;

Currently the above logs posted form data only. My idea is to have another flag to log the full HTTP payload in certain cases (e.g. JSON content type and failed HTTP request)

This would be a welcome addition when working with WebAPI calls in dev, test and staging. Should be configurable to disable it through appsettings in a production transform.
I guess the existiong Serilog functionality in
.Destructure.ToMaximumStringLength(x)
whould be in effect if POST payload is too big?

This project is no longer being maintained and we are going to archive the SerilogWeb Repositories.
see:

https://github.com/serilog-web/classic/issues/82


SSH Connection: Create Time is wrong

Hi,
if i create a SSH connection and hover over the single files, there is a "Create Time" and a "Modify Time" shown as a tooltip. The "Modify Time" is alwas right, but the "Create Time" is most of the time just the current time and never the right creation date of the file. Is there a fix for that?

Wrong Repository


Obtain the annotation files “Sample_trainmin_train_Human36M_protocol_2.json”

Hi author,
It is wonderful work, Thank you for your code and models.
Where can I obtain the annotation files “Sample_trainmin_train_Human36M_protocol_2.json” and "Sample_64_test_Human36M_protocol_2" for training and testingthe H36M dataset on LocLLM？
Is it convenient for you to provide？

https://github.com/Jeff-sjtu/res-loglikelihood-regression?tab=readme-ov-file

How can you get the valid.json of mpii

How can you get the valid.json of mpii
https://drive.google.com/drive/folders/1En_VqmStnsXMdldXA6qpqEyDQulnmS3a

https://github.com/Jeff-sjtu/res-loglikelihood-regression?tab=readme-ov-file
Thanks!

太牛逼了兄弟

Can you run the command bash scripts/valid_h36m.sh?

I haven't trained and validated the Human3.6m dataset yet, and I'm currently experiencing issues downloading the dataset.

Can you run the command bash scripts/valid_h36m.sh?

I haven't trained and validated the Human3.6m dataset yet, and I'm currently experiencing issues downloading the dataset.

你好，方便加一下您的联系方式，交流一下该模型么。

2964554962


Debugging

I think it would be useful to create a debug function that outputs some pre tags and a print_r/ vardump. More for convenience than anything else. Im also thinking about packaging developer tools into a standalone plugin that can be removed very easily from production websites.

Not a flexbones issue


Test should "return" True/False

Currently, Test-TR "retrunes" True/False instead of returning True/False. No time to fix right now...

What resource you are talking about here?

He talks about MSFT_xVhdFileDirectory.psm1 in Line 263.
It says:         Write-Verbose "Test retruned $result"
Should say:  Write-Verbose "Test returned $result"


Mobile View - Missing Sticky Navigation

Not seeing the sticky navigation implemented

Updated here : https://liveresin.ubicilembu.com/products/


mutt: 1.11.2 -> 1.11.3

Motivation for this change
Bug fixes
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build mutt


Just for clarity sake, how would I find the game build number myself?

Download the background script from http://prod.cloud.rockstargames.com/titles/gta5/pcros/bgscripts/bg_ng_xxxx_y.rpf where xxxx_y equals your the game build, e.g. bg_ng_2372_0.rpf for build 2372, and extract "valentinerpreward2" via OpenIV.
say, what would the latest update (Los Santos Tuners) be and how would I find that out for myself?
Thanks!

Fileversion from gta5.exe

Personally, I would scan for 4C 8D 05 ? ? ? ? 48 8D 15 ? ? ? ? 48 8B C8 E8 ? ? ? ? 48 8D 15 ? ? ? ? 48 8D 4C 24 20 E8 in IDA to find the game build version and Online version. You would also see it in the bottom right when the game starts up  (without any mods that shorten the sequence). That file version solution is very elegant, tho.


Sparkc-73 support cross cluster table join for Spark SQL Cassandra integration

For integration tests, set <IP_ADDRESS> as a loopback alias address.

You should also take a look into RDDFunctions - I think these methods should also get cluster parameter.

Also either add support for this in Java API or create a separate ticket to make sure we won't forget about it before release.

For SharedEmbeddedCassandra - I'd really like it to be a kind of flexible array rather than hardcoded two objects. And we should have a single configuration yaml with more configurable fields. Your change will greatly improve our ability to do integration tests. However, if you make it more generic, we will benefit even more.

First round of review done

Can we open another ticket to improve the testing infrastructure(It will be big enough for a separate ticket :))? Let the function implementation be done in this PR?

So, at least please eliminate use of the second yaml file (add more placeholder to the one we use now) and please create the other tickets to cover those missing fixes.

Also, please make sure to not run the tests which require another localhost address to be configured. Just show some warning in that case and ignore the test.
After rebasing, there will be a script {{dev/run-tests.sh}}. You can add the configuration of additional loopback address in that file.


Add generic list of available stages

Page: /concepts/
Feedback: From chat room
Generic list of stages should go here, with pointer to provider-specific impl details.

I'd love to help out!

Thanks, Maarten.
Tag me on the PR when you're finished.
@mdirkse

@mdirkse , do you have a draft list? What do you think will be the stages?

tbh, when I said I'd like to help I meant help whoever is going to do this ;)
But I don't mind doing it myself, I just need a couple of days to get started.


Use getauxval to implement dynamic arch on ARM and AArch64

I've just came across this post the other day which suggests that even though the feature registers cannot be accessed in EL0, the kernel puts this info in the auxiliary vector which is the recommended way to do feature detection on ARM and AArch64 without string parsing.
If you are willing to hard code the enum values when glibc header does not provide them, you can also use dlsym to find this symbol in case an old glibc is used at compile time (this would be useful for julia since the arm binary is going to be compiled on a host with an old glibc).

Implemented now for aarch64 by ashwinyes in #1829

Original link leads to a login page now, the blog post has moved to https://community.arm.com/developer/tools-software/oss-platforms/b/android-blog/posts/runtime-detection-of-cpu-features-on-an-armv8-a-cpu


Store HTTP response data before open event

Cannot remove fallback buffer of HttpParser before emitting WebSocket open event
Fixes #867

This is almost identical to the solution I was going for BUT there is one issue - moving the std::string does not guarantee it's .data() remains the same. Small strings are (potentially) stored on the stack.
I'm thinking more like changing from std string to raw pointer of size FALLBACK_EXPECTED of about 2kb or so.

You are right. SSO breaks this. As an option std::string::reserve may be called to reserve 24 bytes or more to avoid SSO: https://github.com/elliotgoodrich/SSO-23#comparison


Unknown command "voice_fadeouttime"

Seems to be a removed command that you still have in the script? Or does it exist sometimes?
This is in CS:GO.

This command was removed from newer games but is likely still in the script for backwards game compatibility. (1.6, TFC, etc..) Depending on the game being played it could likely be removed so users don't think anything failed to work.


Where date = new Date() returns data from the day before

I have this query:
const rows = await db
    .selectFrom("overnight.daily_overnight_performance")
    .select(({ fn }) => fn.countAll().as("count"))
    .where("change_pct", ">", "0")
    .where("date", "=", new Date("2023-06-02"))
    .execute();

and result is [ { count: '5203' } ]
sql query result using compile() is:
sql: 'select count(*) as "count" from "overnight"."daily_overnight_performance"
where "change_pct" > $1 and "date" = $2',
  parameters: [ '0', 2023-06-02T00:00:00.000Z ]

Running the same query in database with this query:
select count(*) from overnight.daily_overnight_performance dop
where change_pct > '0'
and "date" = '2023-06-02T00:00:00.000Z';

returns

count

7167

Not the same result right?
So I've tried day earlier in database with query:
select count(*) from overnight.daily_overnight_performance dop
where change_pct > '0'
and "date" = '2023-06-01T00:00:00.000Z';

results in

count

5203

which is the now same as kysely result.
Why is that?
And why we cannot use string in where('date', '=', '2023-06-02') ?

This is probably caused by timezones. The date you create using new gets put to the local timezone, which switches its date.

I don't understand your answer and closing the issue. So compile method prints out the wrong SQL? If I run the same SQL kysely prints and the same in database which is in my timezone and get different results then something is wrong. Is there a solution?
Regarding the date string it's the kysely-codegen generated interface. It - doesn't generate Date string, but Timestamp

It's not the same input. You are trusting some console.log or debugger output, which shows you the date as an UTC ISO date. In your runtime environment it actually has a timezone.

I don't understand your answer and closing the issue.

Well too bad 😄 I'm helping you for free on my spare time. And this is the end of my help. Deal with it. If you don't like it, don't use Kysely.


RFC: @internal by default

⭐ Suggestion
Today you can use @internal JSDoc tag and stripeInternals flag to erase private but exported APIs. It will be good to have a reversed option, that all exports are @internal unless they explicitly opt-out.
Option 1: @public JSDoc tag
If an export is commented with @public JSDoc tag, the declaration is emitted. Otherwise, treat it as @internal.
Example:

A/utils/index.ts

/** @public */
export const a = 1
export const b = 2

With stripeInternal: all, it emits the following declaration file:
export const a: number

Option 2: Entry files
Allowing to specify a set of entry files (or infer it from exports field of package.json).
If a type is not viable from one of the entry files, the type of it will not be emitted.
Example:

A/index.ts

export { A, B } from './utils'

With typeEntries: ["./index.ts"], only type referenced by A and B is emitted, all other declarations are treat as private.
🔍 Search Terms
internal by default declaration project reference
✅ Viability Checklist

My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

Add a new compiler option: stripeInternal: "all", and use @public JSDoc to allow the emit of declarations.
📃 Motivating Example
It will improve the protection of internal APIs.

Is this something for https://api-extractor.com ?

api extractor will benefit from it, but with only tsc there is also benefit (with stripeInternal flag)

Something like this might be useful for TS itself when converted into modules; without namespaces, you can't apply @internal to entire sections of code and instead have to explicitly mark everything.

imo, @public is not a good candidate because it already has different meaning in classes (though in plain jsdoc it would mean exactly this). But the feature would be very nice to have.

Terser and UglifyJS uses: "@license", "@preserve"


fix: nightly docker image name

Which issue does this PR close?
Fix https://github.com/CeresDB/ceresdb/actions/runs/4310351950
Rationale for this change
After #684, image publish has errors
ceresdb/ceresdb-server:nightly-20230302: server message: insufficient_scope: authorization failed

What changes are included in this PR?

Are there any user-facing changes?

How does this change test

https://github.com/jiacai2050/ceresdb/actions/runs/4311415390
Ref

https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages

Codecov Report

Merging #687 (4b89bbf) into main (f0b687b) will increase coverage by 0.00%.
The diff coverage is 9.09%.

:exclamation: Current head 4b89bbf differs from pull request most recent head 7fe44a9. Consider uploading reports for the commit 7fe44a9 to get more accurate results

@@           Coverage Diff           @@
##             main     #687   +/-   ##
=======================================
  Coverage   67.54%   67.55%
=======================================
  Files         281      281
  Lines       44302    44301    -1
=======================================
+ Hits        29925    29926    +1
+ Misses      14377    14375    -2

Impacted Files
Coverage Δ

cluster/src/config.rs
75.00% <ø> (-2.78%)
:arrow_down:

components/logger/src/lib.rs
27.98% <0.00%> (ø)

server/src/config.rs
38.09% <ø> (+0.88%)
:arrow_up:

server/src/grpc/storage_service/mod.rs
45.11% <0.00%> (-0.02%)
:arrow_down:

server/src/grpc/storage_service/write.rs
39.42% <0.00%> (+0.21%)
:arrow_up:

server/src/http.rs
0.00% <ø> (ø)

analytic_engine/src/manifest/details.rs
95.47% <28.57%> (-0.47%)
:arrow_down:

analytic_engine/src/instance/write_worker.rs
72.01% <0.00%> (+0.19%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[WIP] Efficiency Update (EHP & EHB)

Implements #125

Add ehpRank, ehpValue, ehbRank and ehbValue properties to the snapshot schema
Add exp, ehp, ehb, ttm and tt200m properties to the player schema
Add exp, ehp, ehb, properties to the delta schema
Add EHP and EHB delta calculations adjustments
Adjust EHP and EHB rates to player type/build

To-do:

[x] TTM calculation
[x] EHP/EHB calculation
[x] EHP/EHB competitions
[x] Store EHP and EHB (and ranks) in snapshots
[x] EHP/EHB deltas
[x] EHB/EHB records
[x] Add TTM, TT200m, EHP and EHB to a player's details
[x] Apply different rates depending on player type/build
[ ] Integrate @dekvall 's rates repository
[ ] Virtual Hiscores (EHP/EHB leaderboards)
[ ] Player page TTM and TT200m breakdown
[ ] EHP/EHB Rates breakdown page

@dekvall We should do a final review on the rates' formats, to integrate with this, not much left to do


Unable to analyze AncestryDNA

Any attempts to analyze AncestryDNA are met with "Unable to determine the filetype from the header.".

Looks like the header you're looking for is outdated.  The first line of AncestryDNA exports is now #AncestryDNA raw data download.

Yeah I think the file I had for it was wrong. Thanks!


JSON key file is missing key prefixes

Some of the keys in this file are missing the prefix characters like '+' and "~" in /Branch-SDK/src/io/branch/referral/Defines.java.
For example,
Campaign("campaign")
should be
Campaign("~campaign")
I am not sure if this file is supposed to be used externally, but if so, a few of the Enums need to be corrected. If not, could we please get a public file for JSON keys?
Thanks!

@stephen-workpop Thanks for pointing this. The Defines file is not meant for external usage. We will   make it package locked. We are handling adding ~ internally. Could you please try following method instead
LinkProperties#setCampaign or BranchShortLinkBuilder#setCampaign

Thanks for the information. I was just trying to read in the incoming referring params so I could log to Mixpanel where each user came from. I'll just use hardcoded strings rather than constants if this constants file is not for public consumption. Thanks!


HTML report missing violation resolution details for a violation with Fix the following section and related nodes.

HTML report missing violation resolution details for a violation with Fix the following section and related nodes.
It would be nice to have the resolution suggestion section with related nodes details for each violation entry similar to that of deque axe chrome plugin as shown below.

Thank you very much for your suggestion,
I will work on this during the next days.

I have published 2.1.1 version with added functionality of Fix the following and Related nodes.

Please check release notes of https://github.com/lpelypenko/axe-html-reporter/releases/tag/2.1.1

Please let me know if you found any issue with the Fix section and Related Nodes.

Please let me know if you found any issue with the Fix section and Related Nodes.

Thanks for the fix. I can now see the Fix the following and Related nodes.

Please let me know if you found any issue with the Fix section and Related Nodes.

Thanks for the fix. I can now see the Fix the following and Related nodes.


[3.x] Requirements::includeInHTML inserts things into more than one  tag

For example: if I insert a third-party Javascript snippet (like an A/B tester, etc) into my page via:
Requirements::customScript('//.....');

... and my custom script has a string literal like var whatever = "<head></head>", then Requirements::includeInHTML will inject requirements into that </head> as well as the closing tag that is actually part of the DOM. This theoretically would also affect code documentation examples that have a </head> in them (that aren't HTML escaped).
Adding a limit of 1 to the preg_replace calls seems safe and fixes the problem (unless you had the same thing happening in the head tag itself).

I suggest moving away from regexp for body manipulation and use DOMDocument. http://stackoverflow.com/questions/12378675/adding-style-tags-to-head-with-php-domdocument

Concerns:

Performance
DOMDocument doing unwanted things to the page

I suggest moving away from inline scripts ;-)

We couldn't afford more than a few ms for the operation so I agree with perf concerns.
As well as avoiding custom scripts generally, I'd suggest refactoring to replace only the first instance of

I'd suggest refactoring to replace only the first instance of /head

So that's what #6780 does, but if you don't "force JS to bottom", which you don't by default in SS, then a snippet in the head tag which contains </head> will still be the first occurrence and it'll actually cause more problems than it currently does.
In my case I'm forcing JS to bottom so the snippet isn't the first occurrence and limiting the replacements works for me, but as @tractorcow suggested I've just modified my JS snippet so it has </he" + "ad> instead and doesn't get picked up by the regex.

This area does look like it could be improved to be honest, but without increasing load time slightly using DOM document I'm not sure what the best solution is...

@robbieaverill The underlying issue is "why are we doing more than one search & replace pass?" There should be exactly 1 execution of code that looks for a </head> and writes into it, and everything else that wants to use this should feed into it.

Is it as simple as just refactoring these 2 lines into one?
Requirements.php:904
				$content = preg_replace("/(<\/head>)/i", $requirements . "\\1", $content);
				$content = preg_replace("/(<\/head>)/i", $jsRequirements . "\\1", $content);

PR reopened at #6780

Resolved in #6780 for 3.5+


verifyOTP test update

readme getME route

 new env variable for access token and refresh token expiration time

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

8 of 8 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.7%) to 92.398%

Totals

Change from base Build<PHONE_NUMBER>:
-1.7%

Covered Lines:
141

Relevant Lines:
148

💛  - Coveralls


504 Gateway Time-out because nuxt app is hanging

Version
v2.4.0
Reproduction link
Backend:
https://github.com/kalenjordan/pros.global
Frontend:
https://github.com/kalenjordan/nuxt-test
Steps to reproduce
It's happening right now on my app, but I will probably restart the app shortly so that it's functional again. It seems to happen every 2 to 8 hours, and I'm not sure why, but the app simply stops responding.
Going to https://pros.global/ gives a 504 Gateway Time-out from nginx. If I access the nuxt app directly by going to http://pros.global:3000, it simply hangs forever.
What is expected ?
The nuxt app would respond with something, at least an error message of some kind.
What is actually happening?
There is no response from the Nuxt app, it just hangs forever, causing nginx to 504 timeout.
Additional comments?
Also there isn't anything being logged into sentry. This seems to be correlated with the axios 500 error that I posted about here: https://cmty.app/nuxt/nuxt.js/issues/c8707

This bug report is available on Nuxt community (#c8708)

@kalenjordan That reason could be anything. As there is no frontend code in your repo one could only guess what's wrong.

@manniL sorry about that - I just updated the ticket with the link to the frontend code - https://github.com/kalenjordan/nuxt-test

Hi!
Could we reproduce this issue by calling the production serveur? (Pros.global)
So we could reproduce this bug on localhost without running the Api server.

Doesnt this code trigger a memory leak in ssr? https://github.com/kalenjordan/nuxt-test/blob/master/plugins/vue-inject.js
Probably you should add an if statement to only set values on Vue's prototype if they dont exist yet (eg first time it runs).

Nice thanks @pimlie! I'll check that. Is there a way to monitor memory usage in general?

It’s plan to be integrated soon ☺

@pimlie I think I'm already doing it as per the docs though?
https://nuxtjs.org/guide/plugins/#inject-into-vue-instances

Yeah, actually I was trying to trigger a memory leak with your code this morning and couldnt trigger it. So I guess the answer to my question is No, it doesnt ;)

Same issue v2.4.5. Node server increases ram when have requests then hangs forever

@sonnh58 this is caused by a memory leak in userland code.

my code return error Error: Request failed with status code 504, when use npm run dev sometime。
And I find that nuxtServerInit runs many times all the time, and this problem only occurs in development mode.I want to know why？

Closing here as it's a userland issue.
If someone can verify it's not, feel free to ping me here.

hard to debug it .

hard to debug it .

check your plugins
dont wrap Vue.use() or Vue.mixin() in function

@kalenjordan , were you able to resolve this issue? I'm currently faced with the same issue. Works well in SPA mode but hangs and timeout on universal refresh. Kindly guide if you were able to fix this earlier

No I wasn't :(
On Mon, Jul 6, 2020 at 3:41 PM Olumide Omotoso<EMAIL_ADDRESS>wrote:

@kalenjordan https://github.com/kalenjordan , were you able to resolve
this issue? I'm currently faced with the same issue. Works well in SPA mode
but hangs and timeout on universal refresh. Kindly guide if you were able
to fix this earlier
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nuxt/nuxt.js/issues/5090#issuecomment-654454476, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALYQNIYGL5NLJFHOVYGSYTR2IZG5ANCNFSM4GZB5HSQ
.

--
Kalen
<EMAIL_ADDRESS>


Fixing .gitignore

Pull Request Description
What issue does this change request address?
closes #58
What are the significant changes in functionality due to this change request?
Fixes gitignore to ignore files that can be generated by testing.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual.
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Regression tests have to complete successfully.
[ ] 5. If significant functionality is added, there must be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test.
[ ] 6. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.

@mandd or @wangcj05  Can you take a look at this pull request? Thanks.

checklist is good, pr can be merged.

@joshua-cogliati-inl : Thank you a lot. I have merged your PR.


Utap doesn't respect exit code

Hello!
When tests fail they must return the 1 exit code.
But when piped with utap, exit code is always 0.

I use Node test runner, which returns correct code itself:

Is set -o pipefail what you're looking for?

Don't think so.
When I tried other reporters (like tap-diff and etc.), they return same exit code, which was transfered by pipe.

I apologize, I should have presented my point in a more precise fashion.
It is certainly possible for a TAP formatter to return the same exit code as the test suite itself just because the input can be interpreted as an error when it contains TAP TestPoint starting with not ok.
In my opinion, it's a hack - a leaky abstraction that is against UNIX philosophy.
You would not expect foo | sed s/bar/baz/ to return you anything different from 0 exit code even if foo actually failed because the task of substituting bar to baz in its output in and of itself succeeds pretty well.
In the same sense the task of formatting the not ok TAP output with a nice red cross next to it actually does succeed, semantically speaking...
To summarize, my point is whether or not foo | bar should return foo's exit code or bar's one can only be decided in the context of the script itself in a general semantic case. By default bash takes the exit code of the last command in the pipe, but this can be modified by various means, the easiest of which would be prepending the command with set -o pipefail, e.g.
set -o pipefail
npm test && npm deploy

where you'd have your pipe in the npm test script


feat!: update min node to v20

Summary by CodeRabbit

New Features

Updated all packages to require Node.js version 20 or higher for improved compatibility and access to new features.

Bug Fixes

Ensured that all configurations align with the latest Node.js version requirements, enhancing stability and performance.

@coderabbitai summary
@coderabbitai review

@coderabbitai review


Patient Identifiers

https://www.hl7.fi/fhir/finnish-base-profiles/1.0-rc2/StructureDefinition-fi-base-patient.html
Format looks weird on this page.
PIC looks like a HETU (Finnish national ID), but I haven't heard it referred to this way. Maybe we're just weird in Apotti referring to it this way, but probably worth adding a synonym.
We support this in Apotti today.

PIC stands for "Personal Identifier Code". It is the correct abbreviation for HETU.
https://dvv.fi/en/personal-identity-code

Yupp - wikipedia agrees PIC is right.

I'm just asking for HETU to be added into the documentation as a synonym for easy searching. (PIC "Also abbreviated as HETU")


experimenting with data filtering in mongo

to minimize deserialization of data we aren't actually going to transmit. Prelim tests show significant speedups for queries that pick a little data out of a large BGC profile, but more study needed before this is production ready.

Also adds a significant improvement by way of coercing start and end dates for queries when not provided; makes things return much faster for small-region requests over all time.


Needs to show device-wide statistics based CPS, TPS and Throughput information

Describe the bug
A clear and concise description of what the bug is.
This is not a bugs. customers want to show device-wide statistics regarding some of total statistics information such as CPS, TPS and Throughput etc. Many of other competitors can support device-wide CPS, TPS and Throughput information. Our AST is support very useful statistics and if we can support device-wide statistics summary like as CPU and Memory, it will be more useful to get insight of device's traffic statistics.
As i know related information already collected so, make some of calculation and draw it on the device overview dashboard.
To Reproduce
Steps to reproduce the behavior:

Go to '...' (Which dashboards / panels it effects. )
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here, including BigIP service account permission level, BigIP Versions.
Attachments
If the issue is in regards to missing data in dashboards, please also run the following from the installed host and attach the output:
curl 'localhost:9090/federate?match[]=%7B__name__%3D~"f5.%2A"%7D'

Logs for the collector can be gathered with:
docker logs application-study-tool-otel-collector-1 --tail 1000

Hey @f5minions just to ensure I'm understanding the request.  You're looking for, within the Device Overview dashboard, a method to determine total VS concurrent connections, data rate, and total http requests?


LGTM.com - false positive Parameter unit hides X Values with the same name.

LGTM seems to get confused by namespaces named similarly to parameters:
https://lgtm.com/projects/g/sandsmark/freeaoe/snapshot/bb4ecd90c328b27a29eec3db7b06ae26c52e9490/files/src/actions/ActionGather.cpp?sort=name&dir=ASC&mode=heatmap#xb49a13678798e2a1:1
https://lgtm.com/projects/g/sandsmark/freeaoe/snapshot/bb4ecd90c328b27a29eec3db7b06ae26c52e9490/files/extern/genieutils/include/genie/dat/Unit.h?sort=name&dir=ASC&mode=heatmap#x15a494f3a56258ea:1

Thank you for the report. There's something wrong with how we parse the code in your project. Let's use https://github.com/Semmle/ql/issues/3012 as the central place to track the parsing issue. If the particular FPs reported in this issue don't go away when #3012 is fixed, then please reopen.


Update ion demo token for 1.50 release

Thanks for the pull request @mramato!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:

Perhaps OK to insta-merge these?


Electron Installer

I just have a question regarding the Electron installer which interfaces with the CNAB bundles for offline installations
Source

Microsoft also today launched Visual Studio extension for building and hosting these bundles, as well as an example implementation of a bundle repository server and an Electron installer that lets you install a bundle with the help of a GUI.

Cant seem to find it in the source code of this repo or is it not yet released?

Sorry, that was my fault. I made a last-minute decision to hold off on it because we had a couple of bugs that made it really hard to use. I didn't want everyone's first experience with it to be painfully difficult. I'll check in again with the team and see where we stand.
Again, I'm very sorry about that.

It was released at KubeCon. Here's the link: https://github.com/deislabs/duffle-coat


onEnable / onDisable Callbacks

I am populating a ui-select with remote data, but I don't want to fetch the data if the ui-select is disabled. It would be nice to have an onEnable event to allow a function call when the select becomes enabled.

+1

Closing as legacy issue.
I this case I imagine the value passed to the search-enabled attribute could just be $watched


Support language Portuguese Brazil (Files)

Dear @jeremykenedy , here are the translation files to support the Brazilian Portuguese language, I hope it helps.
Files Translation:

app.php
forms.php
laravelusers.php
modals.php

pt-br.zip
My greetings
Nicolas dos Reis Barbosa de Oliveira

Thank you!
This has been added to the project in commit https://github.com/jeremykenedy/laravel-users/commit/2d2755402262f41b054feec1c11f4b8298e58155
And is available in 3.3.0


Add GLAD match_condition to match rules

In GLAD Flow Mapping format there is a column MatchCondition defined as:

Single character. =, >,<,~. Meaning 'equal to','a superset of', 'a subset of', 'a proxy for'. Assumes = if not present

We currently don't have this definition in each match rule.

Strong negative reaction to including these symbols verbatim. I have used verbs from a common semantic ontology for these concepts in the past, but don't find them now. Given our matching strategies I would put this as nice to have for now.


proc:  reenable TestNextNetHTTP on Windows

Explicitly use localhost in HTTP test as required by Windows.
Part of #363.

Merged, thanks.


Add miss animations to Minions and DualHitParts

As discussed on discord, the Minions and DualHitParts do not visibly react to players hitting them early. This makes it seem like they should still be hittable, while they are in fact not accepting nor blocking any input, causing a chain reaction of missed notes because the player keeps attempting to hit that note. It is what I believe is giving players the feeling that random misses are occuring, instead of it being the fault of HitWindows.
I've added a basic animation that plays whenever the object is missed, so that players are notified of their mistakes, and that they should adjust their timing.
Video: https://streamable.com/0nrq1c

I feel like there should be a visible difference between an early miss and a late miss.  It looks super weird seeing the pippidons falling before they reach the hit targets.


Navigation Menu

Describe the feature in detail (code, mocks, or screenshots encouraged)
Just found this through YouTube. I'm fairly new to Svelte, but I love what I'm seeing on your channel and your work here. Will you implement the "Navigation Menu" component from the original set of components?
It happens to match something I'm looking for and I'd be willing to throw in a bit of cash to sponsor it/you.
What type of pull request would this be?
New Feature
Provide relevant links or additional information.
https://ui.shadcn.com/docs/components/navigation-menu

Hey @carwei ! This component will come once the Radix Svelte primitive that supports it has been created.  Radix Svelte is mostly being developed by one person, so I would direct that compensation incentive over to Radix Svelte. As soon as the Radix primitives that support the nav menu are read to go, I will release the same one that appears on the original shadcn/ui.

Closing this issue due to the new temp component issue created for tracking this - #102


Basic I/O Operation working as intended?

Running the "Basic I/O Operation" from https://www.npmjs.com/package/memorystream the output is "World!". Is this intended? The chunk "Hello" passed to the initialization of the memory stream is not emitted on "data". Thanks for clarification.
var MemoryStream = require('memorystream');
var memStream = new MemoryStream(['Hello',' ']);

var data = '';
memStream.on('data', function(chunk) {
    data += chunk.toString();
});

memStream.write('World');

memStream.on('end', function() {
    // outputs 'Hello World!'
    console.log(data);
});
memStream.end('!');

hmm, looks this is a bug for Duplex streams will fix quick

One more question, is the stream supposed to hold data if there is no listener? Should this snippet write back "foo bar "?
var MemoryStream = require('memorystream');
var stream = new MemoryStream();

stream.write("foo ");
stream.write("bar ");
stream.end();

console.log(stream.toString());

actually no, because you created Duplex(readable and writeable) stream. For hold data you might use writeable stream:
var stream = new MemoryStream(null, {readable: false});//MemoryStream.createWriteStream();
stream.write("foo ");
stream.write("bar ");
stream.end();
console.log(stream.toString());

Do you want option for hold data for duplex stream too? I can implement it while will fix bug :)

No need to implement it just for me, the clarification is enough. Many thanks.

fixed


Publish jar with Jaeger all-in-one test container and utility classes

https://github.com/jaegertracing/jaeger-analytics-java/tree/master/proto/src/test/java/io/jaegertracing/api_v2
This is helpful to use tracing in e2e tests. It could be moved to a separate module or test-jar.

I agree - publishing the module and making it available on maven central would be very helpful.

The module has been already created https://github.com/jaegertracing/jaeger-analytics-java/tree/master/testcontainers.
It seems that the latest release failed and the artifacts didn't get in.

I have triggered a new release 0.6.0.

What exactly would I add to my gradle build so that I can have access to the jaeger-testcontainers jar?
I've tried io.jaegertracing:jaeger-testcontainers:0.6.0 but It does not work?
I get Could not resolve io.jaegertracing:jaeger-testcontainers:0.6.0.
Is there a specific repository I should add to the build?

The 0.6.0 build also failed. It should be all good with 0.7.0, although it might take a couple of hours to propagate to maven central.

Thanks it all works now


Reduce report generation memory footprint

They're way to many StringBuilder.toString for building the javascript series.

done in gatling-highcharts


Fix pdf download

We fixed the pdf download. Flatex was detecting the user agent of the script as python bot and blocked it. Using another user agent fixed the 503 response. We updated the regex as well, so everything is working now. :-)
One suggestion:
A lot of other projects concerned with flatex downloads always consider the maximum of 100 pdfs for a time range. If someone might be too active on flatex the 100 documents could be reached within the 14 days time delta. Maybe we will add a check for this next week. :-P
Greetings from Graz! :-)

Thank you!


ES - Download page - Editor description is not translated

In the Download page the i18n handles "p5.js-editor" and "editor-includes" are correct on the corresponding yaml files, but are still in English on the Spanish Download site.

this error was showing either because the website wasn't built with recent changes or because of the cache of the browser, do Shift+Command+R for force reload or open an incognito window to check that it is working.


get docker path - [closed]

In GitLab by @guyingyan on Mar 14, 2018, 09:05
Merges dev-devops -> dev-devops

In GitLab by @wknet123 on Nov 13, 2019, 10:37
the API Server Coverage is  %   UI Coverage is 38.11%   check console log

In GitLab by @wknet123 on Nov 13, 2019, 10:37
the it is failed check console log

In GitLab by @wknet123 on Nov 13, 2019, 10:37
the it is failed check console log

In GitLab by @wknet123 on Nov 13, 2019, 10:37
closed


feat(sdks): implement SDK-specific API customizations

This pull request introduces several SDK-specific OpenAPI configurations to the runner API configuration. These customizations will enhance the SDKs we are planning to release.

@victorges, here are the changes you requested. If you can do the other pipelines, that would be great 🙏🏻.

@victorges I made some small changes to cleanup the code and ensure the worker code is updated to reflect your new changes.  I also created a pull request to update the go-livepeer code which depends on the golang bindings in the worker  module. You can find that pull request here. I have to do some quick back compatibility tests but after that we are good for release.

@victorges tested for back compatibility so we can merge.


Fix FFTW wisdom loading on Python 3.x

FFTW wisdom was being loaded and saved without explicit encoding/decoding of strings, which is no longer valid in Python 3.x. I fixed that, made the (de)serialization use JSON so we don't have to worry about parsing the wisdom file (just putting stuff in and getting it back out again), and added a simple load/save test to the suite.

Oh and some weird thing with the astropy_helpers went away when I upgraded it, so that commit's in here too.


Is there any to update locale without executing translate

I have a language select directive on the page
I'd like select a language and refresh the page

Here is my code:
  // app.config
  $translateProvider.useMissingTranslationHandlerLog();
  $translateProvider.useStaticFilesLoader({
      prefix: 'resources/locale-',                      // path to translations files
      suffix: '.json'                                   // suffix, currently- extension of the translations
  });

  $translateProvider.registerAvailableLanguageKeys(
      ['zh_CN', 'en_US'],
      {
          'en*': 'en_US',
          'zh*': 'zh_CN',
          '*'  : 'en_US'
      }
  );
  $translateProvider.fallbackLanguage('en_US');
  $translateProvider.determinePreferredLanguage();
  $translateProvider.useLocalStorage();

  tmhDynamicLocaleProvider.localeLocationPattern('bower_components/angular-i18n/angular-locale_{{locale}}.js');

// on language selected
this.changeLanguage = function(locale) {
  ...
  $translate.use(locale).then(function() {
    // refresh current state(ui-router)
    $state.transitionTo($state.current, $stateParams, { reload: true });
  })
}

What happens is all the text get translated first and then the page get refreshed. This is not good for user experience.
Since $state.transitionTo doesn't reboot the angular app, I can't just update the 'storage' and do the transition

btw, I'd like to reload the page because I have to fetch all the data from backend by language

Any ideas for this?
Thanks a lot.

But that is exactly what you coded so far. You first change the locale texts and then go for a transition to the next (same) state with forced reload.

Well, as you mentioned, yes, in my code I first change the locale texts and then go for a transition...
That's just because I didn't find a better solution.
I'm wondering if there's something like this.
this.changeLanguage = function(locale) {
  ...
  $translate.set(locale); // something like this, only set locale, and it would take effect after the transition
  $state.transitionTo($state.current, $stateParams, { reload: true });
}

I'd tried to update the localStorge, but it only work after I refresh the page.


DBZ-7616 Incremental snapshot query doesn't honor message.key.columns order

closes: https://issues.redhat.com/browse/DBZ-7617

@mfvitale Applied, thanks!

@mfvitale Could you please prepare a PR against 2.5? There are some files missing in 2.5. Thanks


Documentation shows incorrect field name for toggling automatic alerting on services

In the documentation, it shows that add_on_alert is what's used to control automatic alerting on services. However, terraform plans with that field run into errors. After inspecting the source code, I saw that the correct field is called alert_on_add and my plans completed successfully once I switched to that.

Hello there! Thanks for reporting this. I've open a PR to fix this: #62


Style of delete button in producttable

The column width of the delete button must be restricted.

already done that in my local copy. :)

Sorry just to be clear - do you mean the problem where the delete button goes off the page?


fix issue #122

Hello, this as I believe, is a fix of #122 . Found no instructions on how to contribute. Thus I'm not sure to what branch it must be merged (do not think that this fix is for master). Can we somehow release it?

now tests are green, please take a look

Hi @tbarabanov, we're bringing the project back to life, and we'll go through all the existing PRs, yours included 🙂 thanks for your patience!


Documentation troubles

Some issues I had while reading the documentation.

the twitchio.ext.commands.command and twitchio.ext.commands.cooldown decorators (notice the lowercase) are missing. The capitalized versions, the classes, are present, and then an example shows the decorators. The decorators do take signatures, and the classes too, but while the signature of the cooldown class and decorator are identical, the command class takes parameters and the command decorator does not.
Are there interferences with the ordering and/or cumulation of decorators ? The example shows the cooldown being applied before command, but is that mandatory (I think there are such interferences in some stdlib decorators, so I think it's worth mentioning) ? Is it possible to add several cooldowns of different values on the same command ?
the command decorator prevents the decorated functions from taking extraneous optional parameters, i.e to call a command's method with an optional parameter tweaking its behavior, from another command's method. Documenting that would help.
about the cooldown decorators, how do the subscriber and mod cooldowns work ? Do they restrict the use of the command by the mods only, and then limit their use of it ? Or do they rather let peones use it at will and only limit the mods/subscribers ?

If I find others I can add them here.

This doesn't seem to be an issue with the library. I'll convert this to a discussion.


accepting and rejecting wot from the cli

add accept and reject for wot from the cli. works like this:
alice> keybase wot vouch bob -m "bob is amazeballz"
bob> keybase wot list
Web-Of-Trust for bob
-------------------------------
Voucher: alice
Attestation: "bob is amazeballz"
Status: PROPOSED
    `keybase wot accept alice` to accept this into your web-of-trust
-------------------------------

bob> keybase wot accept alice
bob> keybase wot list
Web-Of-Trust for bob
-------------------------------
Voucher: alice
Attestation: "bob is amazeballz"
Status: ACCEPTED
-------------------------------

alice can now see them because it's been accepted
alice> keybase wot list bob
Web-Of-Trust for bob
-------------------------------
Voucher: alice
Attestation: "bob is amazeballz"
Status: ACCEPTED
-------------------------------

###########################
the listing CLI doesn't really show the confidence node very nicely, but it does spit out the info. happy to give that some love. it currently looks like this:
Additional Confidence: &{VouchedBy:[6ed8919ce20490a5e3ad8630a4fab619] Proofs:[] UsernameVerifiedVia:audio Other:some other info KnownOnKeybaseDays:100}

this test i just added should fail until https://github.com/keybase/keybase/pull/5232 gets merged