text:
[BUG] Deleting one etcd node, deletes two in an RKE2 cluster

Rancher Server Setup

Rancher version: 2.7.8 and 2.7.9-rc2
Installation option (Docker install/Helm Chart): docker install

Information about the Cluster

Kubernetes version: v1.26.8+rke2r1
Cluster Type (Local/Downstream): downstream

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom) Admin

Describe the bug
[BUG] Deleting one etcd node, deletes two in an RKE2 cluster
To Reproduce

Deploy an RKE2 cluster in AWS - 3 etcd, 2cp and 3 worker nodes
Once the cluster is up and Active, scale down etcd node by 1. When the cluster comes back up Active, scale down etcd node by one more.
Then scale back up the etcd by 2 more nodes. Total now is 3. (Noticed issue does not happen in this step)
Once the cluster is up and Active, scale down etcd node by 1.
Two etcd nodes get deleted (Noticed issue consistently happens in this step)
And then it provisions the second one back.

Result
Rancher logs:
2023/10/16 18:36:06 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:06 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5 was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:06 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5 was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:06 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:07 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for plan to be applied
2023/10/16 18:36:07 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for plan to be applied
2023/10/16 18:36:07 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:07 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for plan to be applied
2023/10/16 18:36:08 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for plan to be applied
2023/10/16 18:36:12 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:12 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:13 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:13 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:13 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:13 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:14 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:14 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:14 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:15 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:16 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring bootstrap node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5: waiting for probes: kubelet
2023/10/16 18:36:17 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:22 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: sowmya-new-rke2-pool1-668cd8754x6bcgp-9fxb5
2023/10/16 18:36:22 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:22 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for plan to be applied
2023/10/16 18:36:22 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for plan to be applied
2023/10/16 18:36:22 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for plan to be applied
2023/10/16 18:36:23 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for plan to be applied
2023/10/16 18:36:23 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for plan to be applied
2023/10/16 18:36:24 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for plan to be applied
2023/10/16 18:36:27 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:28 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for probes: kubelet
2023/10/16 18:36:28 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for probes: kubelet
2023/10/16 18:36:29 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for probes: kubelet
2023/10/16 18:36:29 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring etcd node(s) sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz: waiting for probes: kubelet
2023/10/16 18:36:31 [ERROR] [planner] rkecluster fleet-default/sowmya-new-rke2: error during plan processing: Operation cannot be fulfilled on machines.cluster.x-k8s.io "sowmya-new-rke2-pool1-668cd8754x6bcgp-m24tz": the object has been modified; please apply your changes to the latest version and try again
2023/10/16 18:36:31 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:31 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:31 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:31 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:32 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:32 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:32 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:32 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:32 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:32 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:32 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:32 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:32 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:33 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:33 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:33 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:34 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:36 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:37 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn
2023/10/16 18:36:37 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:37 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:37 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:39 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:40 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:41 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:41 [INFO] [machineprovision] fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq: reconciling machine job
2023/10/16 18:36:41 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:41 [INFO] [machineprovision] Machine rke-machine.cattle.io/v1, Kind=Amazonec2Machine sowmya-new-rke2-pool1-4e9f9ade-glcdq has already been deleted
2023/10/16 18:36:41 [ERROR] error syncing 'fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq': handler machine-provision-remove: Operation cannot be fulfilled on amazonec2machines.rke-machine.cattle.io "sowmya-new-rke2-pool1-4e9f9ade-glcdq": StorageError: invalid object, Code: 4, Key: /registry/rke-machine.cattle.io/amazonec2machines/fleet-default/sowmya-new-rke2-pool1-4e9f9ade-glcdq, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 939783f8-9e5b-4373-921a-81a1edbb6c88, UID in object meta: , requeuing
2023/10/16 18:36:42 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:42 [INFO] [planner] rkecluster fleet-default/sowmya-new-rke2: configuring control plane node(s) sowmya-new-rke2-pool2-5fffb8db68xbhl9n-2s7rr,sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql
2023/10/16 18:36:42 [ERROR] [rkebootstrap] fleet-default/sowmya-new-rke2-bootstrap-template-q5pzb: cluster fleet-default/sowmya-new-rke2 machine fleet-default/sowmya-new-rke2-pool2-5fffb8db68xbhl9n-95kql was still joined to deleting etcd machine fleet-default/sowmya-new-rke2-pool1-668cd8754x6bcgp-pvdbn

Expected Result
Only one etcd node should get deleted

@sowmyav27 , is this the same as https://github.com/rancher/rancher/issues/42582 ?

@snasovich yes, looks like that one. I will close this issue.


text:
[v2.7] Update Nutanix node driver to version 3.6.0 / rancher 2.7

Update Nutanix node driver to version 3.6.0 for rancher 2.7

Ticket #44983 - Test Results - ✅
Verified on Rancher v2.7-3def2db5944369c53249e7fe44f661734a625db4-head:

Fresh install of Rancher v2.7-head
Navigate to Cluster Management > Drivers > Node Drivers, and observe nutanix driver
Verified - v3.6.0 is available
Active nutanix driver
Verified - driver successfully activates and is available for use

Screenshot:

i just check with v2.7-head (bd0bb77) and driver is always in 3.4
@snasovich @Josh-Diamond

@tuxtof , latest v2.7-head images are no longer published to DockerHub and are only available from Rancher Prime registry.
https://github.com/rancher/rancher/commit/bd0bb772b60a447d352789b3d7c4368ffe50eecf is before https://github.com/rancher/rancher/pull/45003 was merged.

OK i don't have access to this registry

source: gharchive/issue

authors: Josh-Diamond snasovich tuxtof

repo: rancher/rancher

license_type: permissive

license_source: github-api


text:
Kubectl on host returns error: couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:"apiVersion,omitempty""; Kind string "json:"kind,omitempty""

Rancher versions:
Rancher 	v1.6.2
Infrastructure Stack versions:
kubernetes (if applicable):
Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.6", GitCommit:"7fa1c1756d8bc963f1a389f4a6937dc71f08ada2", GitTreeState:"clean", BuildDate:"2017-06-16T18:34:20Z", GoVersion:"go1.7.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"2+", GitVersion:"v1.2.0-rancher-1", GitCommit:"ed6532f975cff184196dbe214de8fa0198b415ef", GitTreeState:"clean", BuildDate:"", GoVersion:"", Compiler:"", Platform:""}
Docker version: (docker version,docker info preferred)
Client:
Version:      1.12.6
API version:  1.24
Go version:   go1.6.2
Git commit:   78d1802
Built:        Tue Jan 31 23:35:14 2017
OS/Arch:      linux/amd64
Server:
Version:      1.12.6
API version:  1.24
Go version:   go1.6.2
Git commit:   78d1802
Built:        Tue Jan 31 23:35:14 2017
OS/Arch:      linux/amd64
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
Ubuntu 16.04.02 LTS
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
AWS
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Two node rancher. This is on the Kubernetes / Rancher master, trying to run kubectl commands manually and returning an error, I believe this is due to different server and client version installed.
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
Kubernetes
Steps to Reproduce:

Download and run Rancher/stable docker container
Setup environment in Rancher with Kubernetes
SSH into Rancher Master and install kubectl
Create YAML file:

kind: PersistentVolume
apiVersion: v1
metadata:
name: repo-DB-pv
labels:
type: amazonEBS
spec:
capacity:
storage: 20Gi
accessModes:
- ReadWriteOnce
awsElasticBlockStore:
volumeID: vol-0cc2XXXXXXX
fsType: ext4

kubectl create -f repo-pv.YAML

Results:
$ kubectl create -f repo-pv.YAML
error: couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:"apiVersion,omitempty""; Kind string "json:"kind,omitempty"" }
Note: This is an issue for all kubectl commands run on the host (except for version), running the commands in Rancher Kubernetes CLI works correctly however.
Rancher CLI shows kubectl version as 1.5.4 for both server and client:

kubectl version
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.4", GitCommit:"7243c69eb523aa4377bce883e7c0dd76b8470
9a1", GitTreeState:"clean", BuildDate:"2017-03-07T23:53:09Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"
}
Server Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.4-rancher1", GitCommit:"6ed2b64b2e1df9637661077d877
a0483c58a6ae5", GitTreeState:"clean", BuildDate:"2017-03-17T16:58:04Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"li
nux/amd64"}

Creating ~/.kube/config and placing this into the host allowed

I also faced same issue.
Most likely this is caused by Rancher authentication.
kubectl config view
apiVersion: v1
clusters:
- cluster:
    insecure-skip-tls-verify: true
    server: http://rancher.abc.com:80/r/projects/1a34/kubernetes:6443
  name: abc
contexts:
- context:
    cluster: abc
    user: abc
  name: abc
current-context: abc
kind: Config
preferences: {}
users:
- name: abc
  user:
    token: abc123ABC

If I request over there:
$ curl http://rancher.abc.com:8080/r/projects/1a34/kubernetes:6443
Found.

But kubectl expects to see the APIVersion (exactly like said in error):
{
"paths": [
"/api",
"/api/v1",
"/apis",
"/apis/",
"/apis/admissionregistration.k8s.io",
"/apis/admissionregistration.k8s.io/v1beta1",
"/apis/apiextensions.k8s.io",
"/apis/apiextensions.k8s.io/v1beta1",
"/apis/apiregistration.k8s.io",
"/apis/apiregistration.k8s.io/v1beta1",
"/apis/apps",
"/apis/apps/v1",
"/apis/apps/v1beta1",
"/apis/apps/v1beta2",
"/apis/authentication.k8s.io",
"/apis/authentication.k8s.io/v1",
"/apis/authentication.k8s.io/v1beta1",
"/apis/authorization.k8s.io",
"/apis/authorization.k8s.io/v1",
"/apis/authorization.k8s.io/v1beta1",
"/apis/autoscaling",
"/apis/autoscaling/v1",
"/apis/autoscaling/v2beta1",
"/apis/batch",
"/apis/batch/v1",
"/apis/batch/v1beta1",
"/apis/batch/v2alpha1",
"/apis/certificates.k8s.io",
"/apis/certificates.k8s.io/v1beta1",
"/apis/events.k8s.io",
"/apis/events.k8s.io/v1beta1",
"/apis/extensions",
"/apis/extensions/v1beta1",
"/apis/networking.k8s.io",
"/apis/networking.k8s.io/v1",
"/apis/policy",
"/apis/policy/v1beta1",
"/apis/rbac.authorization.k8s.io",
"/apis/rbac.authorization.k8s.io/v1",
"/apis/rbac.authorization.k8s.io/v1beta1",
"/apis/storage.k8s.io",
"/apis/storage.k8s.io/v1",
"/apis/storage.k8s.io/v1beta1",
"/healthz",
...
...
...
"/logs",
"/metrics",
"/swagger-2.0.0.json",
"/swagger-2.0.0.pb-v1",
"/swagger-2.0.0.pb-v1.gz",
"/swagger.json",
"/swaggerapi",
"/ui",
"/ui/",
"/version"
]
}

I guess this answer worths to be reviewed.

This error can happen in case you have no ~/.kube/config in place.

I got this error on google cloud. Needed to run:
gcloud container clusters get-credentials <CLUSTER_NAME>

I had a similar error in other circumstances. try simply add -o yaml as the output of the apply command

Seems you need to rerun aws configure and set output to json instead of text.

Seems you need to rerun aws configure and set output to json instead of text.

this saved my day!

Seems you need to rerun aws configure and set output to json instead of text.

this saved my day!

Same!

Seems you need to rerun aws configure and set output to json instead of text.

Same!

set AWS_DEFAULT_OUTPUT=json env before running your command if you don't want change your default aws-cli output

authors: OctavioBR emanuele-leopardi gargamile ica10888 imcom m-abramovich mcarbonera sobankhan12 williwlwilliwll yuriy-filatov


text:
Add the user field to rancher clients.

Purpose: To add the user to the client so functions have an easy way to access the user the client that created the client without having to pass that user from the test layer down to the function using it (which can be a headache)

We just need it to pass the GHA on rancher and few times, and we should be good to go.

Sounds good I just made a rancher PR for it. I'll rerun it a few times after it passes.

Can we get backports for this @susesgartner?

source: gharchive/pull-request

authors: igomez06 markusewalker susesgartner

repo: rancher/shepherd


text:
Router tree visual bug

In the most recent build the lines of the router tree have a weird visual.  I don't know if this was a required change, but the lines fade over the names of the components.

There is already an pr for it I think.

Oh nice!

Closed by PR #294

authors: frederikschubert mobinni vanessayuenn

repo: rangle/batarangle

license: mit

license_source: bigquery


text:
handle optional object ids in url

It's useful to consolidate GET requests for single or multiple objects as follows:
class Todo(Resource):
    @swagger.operation()
    def get(self, todo_id=None):
        # return single or multiple todos depending if todo_id is None
api.add_resource(Todo, '/todo', '/todo/<todo_id>')

If I understand correctly, flask-restful-swagger only recognizes the first url and ignores the second url option.
Perhaps we could support multiple decorators, one per url?

@rantav flask-restful-swagger binds the swagger docs of the HTTP methods supported by the resource. if we have two endpoints /todo/  and /todo/id, they will have to be get methods of two different resources (correct me if i am wrong). Having two difference resources adds of lot of unnecessary code.

authors: livni praveen-p

repo: rantav/flask-restful-swagger


text:
[1.12.x] Fluid Autocrafting

I have come accross a strange issue with autocrafting certain Items that include buckets in the recipe. I am aware that this may be an insulated issue with a specific mod - Thermal Foundation - however, right now, I think it's a Refined Storage issue.
When I try to auto-craft the special TF blends (Signalum, Lumium, Enderium), the process gets stuck on the crafting part with the message "No Machine Found" in the Crafting Monitor. Then, after I remove the pattern from the crafter for a short moment, the crafting instantly finishes and the output can be found in the system.
Crafting Preview (lets me press Start without complaints):
https://i.imgur.com/NxzMaws.png
Crafting Monitor - shows "No Machine Found" for a simple crafting recipe:
https://i.imgur.com/47J13KG.png

Minecraft: 1.12.2
Forge: 14.23.0.2512
Refined Storage: 1.5.20

Issue occurs on a server.

Is the pattern a processing pattern or regular pattern?

I have tried with both variants, and got the same result.

Are you having a duplicate pattern in one of your crafters?

Just thoroughly checked through the whole system, and haven't found any duplicates

I'm not sure if you worked with structures before, but here is a structure file with all the parts needed. Should work with just Refined Stroage and Thermal Foundation installed, however, I don't know how well structures work with mods.
refinedstorage.zip

Refined Storage doesn't support exporting to structure files.

Ah, I wasn't aware of that. In any case, I reproduced it in a creative world on an insulated system.

Making new report with detailed issue description - it's a critical issue.

I had the same issue, but when I disable oredictionary mark in pattern grid, it repairs!

authors: Odysseius Szum123321 raoulvdberge

repo: raoulvdberge/refinedstorage


text:
[1.12.2] Server crash on autocrafting attemp

Issue description:
user tried to autocraft a recipe whitch worked in former version.
What you expected to happen:
craftin of recipe (it was an easy draconic evolution core)

Minecraft: 1.12.2
Forge: 1.12.2-14.23.0.2512
Refined Storage: 1.5.21

Does this issue occur on a server? [yes/no]
yep, server
If a (crash)log is relevant for this issue, link it here:
crash-2017-10-22_18.12.15-server.txt

We are having server crashes on auto crafting as well. The crash-2017-11-01_09.55.21-server.txt was an attempt to craft 10 crafters.
crash-2017-10-31_16.27.38-server.txt
crash-2017-10-31_16.37.20-server.txt
crash-2017-11-01_09.55.21-server.txt

Not sure if it is related to this issue (seems like it might be?), but I've recently started having autocrafting lock up my client (SSP), and when I restart, it hasn't autocrafted. Then I'll go into my system and try to remove items that were involved in the autocraft, and some random item will completely crash the game. Neither gives me a crash report. When I then go back into the game, the offending item will be completely gone from my system. I've had it affect both modded items and vanilla items.
It appears as though it only effects items saved in the disk drives, not things attached to external storage, but that could obviously just be a coincidence.


text:
MP3 Optimierung

Moin @raph-ael,
ich hatte auch bereits überlegt eine Electron-App zur Verwaltung des TonUINO zu erstellen. Allerdings habe ich noch kaum Erfahrung mit Electron & NodeJS da ich beruflich hauptsächlich mit PHP arbeite. Und auch die Zeit die ich in meiner Freizeit als Familien-Vater investieren kann, ist leider sehr überschaubar :disappointed:
Um so dankbarer bin ich dir für deine Initiative! :hugs:
Ein Feature welches ich in meine App gerne integrieren wollte, war eine automatische Optimierung der MP3 beim übertragen auf die SD-Karte. Hierbei könnte man z.B. eine optimale Bitrate einstellen, zu Mono konvertieren und eigentlich auch das ID3 entfernen. Dadurch könnte man Platz + IO auf der SD sparen und dem DFPlayer die beste Grundlage liefern.
Bislang habe ich sehr gute Erfahrungen mit sox gemacht für das es auch ein npm Paket gibt.
Bin gespannt was du von der Idee hälst :smile:

Ja ich denke audio processing Möglichkeiten müssen rein. Im Forum kam das Thema gain auch auf, das also alle mp3s auf die gleiche Lautstärke gelevelt werden können.
Es sollte aber unbedingt auch individuell Einstellbar sein, damit wenn jemand einen Hifi Tonuino mit Stereo baut auch hohe Auflösungen mit Stereo behalten kann.
diese plugins habe ich gefunden und sehen insteressant aus:
https://www.npmjs.com/package/audio-processing
https://www.npmjs.com/package/mp3gain.js
Auch hier aber das Kunststück diese auf allen Platformen ans laufen zu bekommen, eventuell muss ich da mit Abhängigkeiten in den Installationspaketen arbeiten.

Hm...sox steht plattformübergreifend zur Verfügung, bedeutet aber in der Tat eine externe Abhängigkeit :thinking:
Beim Thema "gain" muss man aufpassen das man nicht "ReplayGain" erwischt... bin mir nicht sicher ob der DFPlayer das unterstützt...

repo: raph-ael/tonuino-toolbox

license: MIT


text:
SEPA error

When uploading the SEPA files to test-services like mobilefish.com, I keep receiving the same error: "Element '{urn:iso:std:iso:20022:tech:xsd:pain.001.001.03}CstmrDrctDbtInitn': This element is not expected. Expected is ( {urn:iso:std:iso:20022:tech:xsd:pain.001.001.03}CstmrCdtTrfInitn ).
". How can I change "CstmrDrctDbtInitn" to "CstmrCdtTrfInitn" ? Help is very appreciated!
thanks.

Can you show me the code you wrote? It looks like you're confusing debits and transfers.

Basically i’m writing a gym membership management system that controls the accesgate, allows you to add, edit and remove certain members and handles the creation of SEPA files. I have to charge every member 22.50 euro’s. The problem is that i’m completely new to SEPA payments, and the only thing I want to do is create a SEPA file of type “pain.001.001.03”. I’m just trying stuff out with the code provided in the screenshot.

from sepaxml import SepaDD
import datetime, uuid
config = {
"name": "Test von Testenstein",
"IBAN": "NL50BANK1234567890",
"BIC": "BANKNL2A",
"batch": True,
"creditor_id": "DE26ZZZ00000000000",  # supplied by your bank or financial authority
"currency": "EUR",  # ISO 4217
#"instrument": "B2B"  # - default is CORE (B2C)
}
sepa = SepaDD(config, schema="pain.001.001.03", clean=True)
payment = {
"name": "Test von Testenstein",
"IBAN": "NL50BANK1234567890",
"BIC": "BANKNL2A",
"amount": 5000,  # in cents
"type": "RCUR",  # FRST,RCUR,OOFF,FNAL
"collection_date": datetime.date.today(),
"mandate_id": "1234",
"mandate_date": datetime.date.today(),
"description": "Test transaction",
#"endtoend_id": str(uuid.uuid1())  # autogenerated if obmitted
}
sepa.add_payment(payment)
with open('some_file.xml', 'w') as fh:
fh.write(str(sepa.export(validate=False).decode('utf-8')))

Van: Raphael Michel notifications@github.com
Verzonden: Thursday, August 15, 2019 6:10:01 PM
Aan: raphaelm/python-sepaxml python-sepaxml@noreply.github.com
CC: hennesdekok hennesdekok@hotmail.com; Author author@noreply.github.com
Onderwerp: Re: [raphaelm/python-sepaxml] SEPA error (#19)
Can you show me the code you wrote? It looks like you're confusing debits and transfers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/raphaelm/python-sepaxml/issues/19?email_source=notifications&email_token=AKZED7ILB73MRMMGHB65LB3QEV5VTA5CNFSM4IL6HZS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4MHYOQ#issuecomment-521698362, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKZED7IFKADOYZWHHPYGCF3QEV5VTANCNFSM4IL6HZSQ.

The problem is that i’m completely new to SEPA payments, and the only thing I want to do is create a SEPA file of type “pain.001.001.03”

Well, that's not going to happen. The pain.001 formats are for SENDING money TO someone. If you want to CHARGE someone, you'll need the pain.008 formats.

I really appreciate your help. Now I can go further with the development of my first ever created software! Many thanks Raphael!

Van: Raphael Michel notifications@github.com
Verzonden: Friday, August 16, 2019 8:50:08 AM
Aan: raphaelm/python-sepaxml python-sepaxml@noreply.github.com
CC: hennesdekok hennesdekok@hotmail.com; Author author@noreply.github.com
Onderwerp: Re: [raphaelm/python-sepaxml] SEPA error (#19)
The problem is that i’m completely new to SEPA payments, and the only thing I want to do is create a SEPA file of type “pain.001.001.03”
Well, that's not going to happen. The pain.001 formats are for SENDING money TO someone. If you want to CHARGE someone, you'll need the pain.008 formats.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/raphaelm/python-sepaxml/issues/19?email_source=notifications&email_token=AKZED7K2TNFVXHNDVHICIILQEZE2BA5CNFSM4IL6HZS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4N2OBQ#issuecomment-521905926, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKZED7NRC7HG6ICJQYZOSS3QEZE2BANCNFSM4IL6HZSQ.

authors: hennesdekok raphaelm

repo: raphaelm/python-sepaxml


text:
Clean up and sort CPM packages.

Description
Ensure that all CPM packages are in sorted order and are defined consistently.
Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.
[x] The cmake-format.json is up to date with these changes.
[ ] I have added new files under rapids-cmake/

[ ] I have added include guards (include_guard(GLOBAL))
[ ] I have added the associated docs/ rst file and update the api.rst

/merge

repo: rapidsai/rapids-cmake


text:
Bump rapids to 24.10

Just bumping the RAPIDS version to 24.10 post burndown for 24.08.

Thanks Ray! 🙏
Could we bump the build/number too?
https://github.com/rapidsai/xgboost-feedstock/blob/9b6bce7a82de189356b8ac655aa4932263a55c2f/recipe/meta.yaml#L3

We are about to make a new patch release (2.1.1) for XGBoost. It contains an important bug fix for our customers (https://github.com/dmlc/xgboost/pull/10632). Is it possible to make it a part of RAPIDS 24.08 ?

Are we holding off this PR until after 24.08 ?

Asking Ray offline. FWIW am happy for this to go in whenever Ray would like

Ray confirmed we can merge. Will go ahead and do that now

authors: hcho3 jakirkham raydouglass

repo: rapidsai/xgboost-feedstock


text:
Provide public method to initialize widgets with given IDs

Currently, the method of initializing widgets with given IDs is done via a private method that is put into the window object:
window.$rwidgets = function(ids)

We should expose this method as part of the public interface:
window.$rwidgets = exports.initWidgets = function(ids)

See marko-widgets-browser.js
This addresses the inability to write your own JavaScript code to dynamically initialize the widgets that were rendered to an HTML fragment on the server-side when using eval() is not an option.

Also, see #25 which should be fixed along with this issue.

Fixed by https://github.com/marko-js/marko-widgets/commit/eba73f8dabf68e05388297fa6152e875c958293a

authors: patrick-steele-idem philidem

repo: raptorjs/marko-widgets


text:
Downloading hashtags with hundreds of thousands of pics

Hi, I tried your app and works incredibly. Much better than instaloader and instalooter in the hashtag downloading business. The only problem I can predict is when downloading some hashtags with thousands or millions of pics. Is there any option to prevent directories from overloading? Downloading 300k pictures into the same dir can easily harm any usable filesystem. Any way to avoid this? PS. I know the --limit argument, but that would only download a part of possibly downloadable images. TIA

@nihelmasell the way I treat this issue is to set media-types to None and gather the image-metadata. From this, I have all the information in a json file, including the media url, which is better than thousand of images/videos in a folder.

@nihelmasell @luizfdflores Are you guys able to download the JSON with several photos metadata (40-50) with hundreads of comments in each photo? When i run the script, it gets stuck and retrieves an error:
Repeated error HTTPError('429 Client Error: - for url: https://www.instagram.com/graphql/query/?query_hash=33ba35852cb50da46f5b5e889df7d159&variables={"shortcode":"BxFIDyqniRD","first":50,"after":"QVFBNHlnaEJFNmZLMWhNRXVSZ2FycERSYm9jQ0ZBVF9jWVpiMnRXR0tTLTFWMlVzXzlHY3NkQzhReEVPa21KZ1B6UjFfUldFY0N4dm8tTHh5bFZpUG52MQ=="}')
(A)bort, (I)gnore, (R)etry or retry (F)orever?

authors: gonrodrigues99 luizfdflores nihelmasell

repo: rarcega/instagram-scraper

license: unlicense


text:
No support for Pimoroni Pico Plus 2 W

This board combines an RP2350B with the same wireless chip in Pico W.
There is not yet a board definition for it. Based on the schematics we can know that they wire an RM2 (Infineon CYW43439) using the same pins used on Pico W and the LED is routed through the chip as well.

I was told to use the dev branch and compile using set(PICO_BOARD "pico_w").

Fixed in develop (and also master! :tada: )

I was told to use the dev branch and compile using:
set(PICO_PLATFORM "rp2350")
set(PICO_BOARD "pico_w")

That does not work with SDK 2.0.0 main branch.

That definitely won't work, because pico_w uses the rp2040, not the rp2350.

authors: Slion gonzalolarralde lurch

repo: raspberrypi/pico-sdk


text:
chore: add clippy::string_slice

Fixes: https://github.com/ratatui-org/ratatui/issues/1056

btw @EdJoPaTo I think you were right about that multiple dependencies lint.
❯ cargo tree -i windows-targets@0.48.5 --target all
windows-targets v0.48.5
├── parking_lot_core v0.9.9
│   └── parking_lot v0.12.1
│       └── crossterm v0.27.0
│           └── ratatui v0.26.2 (/Users/joshka/local/ratatui)
└── windows-sys v0.48.0
    └── mio v0.8.10
        ├── crossterm v0.27.0 (*)
        └── signal-hook-mio v0.2.3
            └── crossterm v0.27.0 (*)

❯ cargo tree -i windows-targets@0.52.5 --target all
windows-targets v0.52.5
└── windows-sys v0.52.0
    ├── console v0.15.8
    │   └── better-panic v0.3.0
    │       [dev-dependencies]
    │       └── ratatui v0.26.2 (/Users/joshka/local/ratatui)
    ├── is-terminal v0.4.12
    │   └── criterion v0.5.1
    │       [dev-dependencies]
    │       └── ratatui v0.26.2 (/Users/joshka/local/ratatui)
    └── winapi-util v0.1.8
        ├── same-file v1.0.6
        │   └── walkdir v2.5.0
        │       └── criterion v0.5.1 (*)
        └── walkdir v2.5.0 (*)

I think this was probably done well enough elsewhen.

repo: ratatui-org/ratatui


text:
refactor(block): store titles as (Position, Line) tuple

ratatui::widgets::block::Title is deprecated in favor of using Line to represent titles.
This removes an unnecessary layer of wrapping (string -> Span -> Line -> Title).
This struct will be removed in a future release of Ratatui (likely 0.31).
For more information see: https://github.com/ratatui/ratatui/issues/738
To update your code:
Block::new().title(Title::from("foo"));
// becomes any of
Block::new().title("foo");
Block::new().title(Line::from("foo"));

Block::new().title(Title::from("foo").position(Position::TOP));
// becomes any of
Block::new().title_top("foo");
Block::new().title_top(Line::from("foo"));

Block::new().title(Title::from("foo").position(Position::BOTTOM));
// becomes any of
Block::new().title_bottom("foo");
Block::new().title_bottom(Line::from("foo"));

I originally wrote this as just the pre-factoring, but after looking at the impact of the refator (which was fairly small), I decided to combine that into this one PR.

I'd like to get @orhun and @TadoTheMiner's thoughts on this before merging.

repo: ratatui/ratatui


text:
v0.5.0 crashes if can't get the channel list from Slack

Started yesterday when Slack reported connectivity issues, we experienced one more crash after that. IMO Slackin should handle this case (when it can't get the channel list or other non crucial information from Slack API) instead of crashing.
Here are the logs:
Tue May 12 2015 14:42:54 GMT+0000 (UTC) – online 1, total 5 (+481ms)
Tue May 12 2015 14:42:55 GMT+0000 (UTC) – fetching
Tue May 12 2015 14:42:55 GMT+0000 (UTC) – online 1, total 5 (+426ms)
Tue May 12 2015 14:42:56 GMT+0000 (UTC) – fetching

/usr/local/lib/node_modules/slackin/node/slack.js:70
        res.body.channels.forEach(function (channel) {
                          ^
TypeError: Cannot call method 'forEach' of undefined
    at SlackData.onres (/usr/local/lib/node_modules/slackin/node/slack.js:70:27)
    at /usr/local/lib/node_modules/slackin/node/slack.js:41:17
    at Request.callback (/usr/local/lib/node_modules/slackin/node_modules/superagent/lib/node/index.js:746:30)
    at Request.<anonymous> (/usr/local/lib/node_modules/slackin/node_modules/superagent/lib/node/index.js:135:10)
    at Request.emit (events.js:95:17)
    at ClientRequest.<anonymous> (/usr/local/lib/node_modules/slackin/node_modules/superagent/lib/node/index.js:921:12)
    at ClientRequest.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:122:23)
    at CleartextStream.socketOnData [as ondata] (http.js:1584:20)

Maybe your token is not admin or your internet connection is troubling... to download the list of channels, in my case it download more than 3MB.

Definitely an API connection issue but (it seems) it wasn't our fault but the recent issue on Slack's side as you can see it on their status page https://status.slack.com/
IMO this (if Slack API is down) should be handled properly (presenting an error message for example) and should not crash the slackin server.

Same issue. Slackin has actually been crashing on a daily basis with this error for me.

For others facing this issue and looking for a solution: temporarily we fixed this by using Docker to run Slackin and we set a restart policy "always" for the container. Not an ideal fix but seems to be working.

Having the same issue here as well. Crashes multiple times a day.

Added this conditional and haven't had a crash in a few days. Not sure if its the best route, or if there will be any side effects. No issues apparent.
https://github.com/underscorephil/houstontech-site/blob/master/lib/slack.js#L45

We're seeing this too :(

Just started getting this problem. Will try reinstalling everything. Any advance on this?

The problem appears to be on this: https://github.com/rauchg/slackin/blob/master/lib/slack.js#L24
A similar solution to what @underscorephil suggested may be the answer. But I can't fix it now. =/

authors: NextGenDan jeanleonino maccman underscorephil viktorbenei vluzrmos

repo: rauchg/slackin


text:
🛑 Ceferino is down

In 8621c38, Ceferino (http://ceferino.funsadu.ar:60080) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ceferino is back up in b84bffd after 4 hours, 22 minutes.

repo: raulredes/funsadu


text:
Unknown header error

Hello! I tried Mist as a replacement for Elli in my application and got this error:
{"Error in process ~p with exit value:~n~p~n",
 [<0.172.0>,
  {#{function => <<"handler">>,gleam_error => assert,line => 245,
     message => <<"Assertion pattern match failed">>,
     module => <<"mist/http">>,
     value => {error,unknown_header}},
   [{mist@http,'-handler/1-fun-0-',3,
               [{file,"build/dev/erlang/mist/build/mist@http.erl"},
                {line,333}]},
    {glisten@tcp,'-start_handler/3-fun-0-',4,
                 [{file,"build/dev/erlang/glisten/build/glisten@tcp.erl"},
                  {line,211}]},
    {gleam@otp@actor,loop,1,
                     [{file,"build/dev/erlang/gleam_otp/build/gleam@otp@actor.erl"},
                      {line,92}]}]}]}

Here's the request headers from firefox
GET / undefined
Host: localhost:3000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate, br
DNT: 1
Connection: keep-alive
Cookie: csrftoken=redacted; firstVisit=redacted; sessionid=redacted; ph_GO532nkfIyRbVh8r-ts579S0ibtS4N7F8q1u7qy9FyY_posthog=%7B%22distinct_id%22%3A%22development-309%22%2C%22%24device_id%22%3A%2217f2233bb99e1f-0c5659974edb81-455a69-7e9000-17f2233bb9a8d6%22%2C%22%24user_id%22%3A%22development-309%22%2C%22%24initial_referrer%22%3A%22http%3A%2F%2Flocalhost%3A8000%2F%22%2C%22%24initial_referring_domain%22%3A%22localhost%3A8000%22%2C%22%24referrer%22%3A%22http%3A%2F%2Flocalhost%3A8000%2Fin-house-legal%2Fquery%2Fagreements%2F%22%2C%22%24referring_domain%22%3A%22localhost%3A8000%22%2C%22%24sesid%22%3A%5B1653655256592%2C%221810588be10b6a-070d87da3b86a88-402e2c34-4b9600-1810588be11e5a%22%5D%2C%22%24session_recording_enabled_server_side%22%3Afalse%2C%22%24active_feature_flags%22%3A%5B%5D%2C%22%24enabled_feature_flags%22%3A%7B%7D%7D; uid=SFMyNTY.MQ.3UIahins3fngCF2xLC2znGYe_xSbmG_bRdx0YSTwt_c; sessionid-3GDYO=redacted; CSRF-Token-3GDYO=tJoio2hbqKggK7fHZgFZyWVPnA7wySLf; CSRF-Token-CKIKR=Xc75SKFZS9qDDgLKD26rLYJtgtiH7Gja; sessionid-CKIKR=eikQox9V6M9sQwRnLHLj9HE5b2zRtopN; sessionid-NHOUY=wV9rHjEGqHzSpTfVrtMw3SkSUfV99YWq; CSRF-Token-NHOUY=ePu9N5NuRQSS6bwRfvrRTiSNdKjJV9Ro
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
Pragma: no-cache
Cache-Control: no-cache

My first thought from the code was that it's due to the Cookie header being large?

https://github.com/rawhat/mist/blob/master/test/http1_test.gleam#L51
I think this test case should cover this example!  Thank you 😊

authors: lpil rawhat

repo: rawhat/mist


text:
doom-themes recipe outdated and not building package correctly

I might be doing something stupid, but it looks like the recipe that straight.el uses for doom-themes is out of date, and I can't seem to get it to update.
I've done M-x straight-pull-all and M-x straight-check-all, also updated and rebuilt the melpa package specifically. Locally on disk the doom-themes melpa recipe file (straight/repos/melpa/recipes/doom-themes) is up to date containing the following:
(doom-themes
 :fetcher github
 :repo "doomemacs/themes"
 :files (:defaults
         "themes/*.el"
         "themes/*/*.el"
         "extensions/*.el"))

But using M-x straight-get-recipe I get the following:
(doom-themes :type git :flavor melpa :files (:defaults "themes/*.el" "doom-themes-pkg.el") :host github :repo "hlissner/emacs-doom-themes")

I'm not too familiar with straight's recipe lookup process, so maybe it's not pulling the doom-themes recipe from Melpa, but the :flavor value suggests it is. And I might be blind, but I didn't easily find anything to indicate what source a recipe comes from, aside from the :flavor thing.
The main issue this causes is that all the doom-themes-ext-*.el files/modes are not available, as they were recently moved into the extensions top-level directory. So they are not built by straight.el, meaning the extensions aren't available.
For now, I've worked around this issue using straight-recipe-overrides:
(setq straight-recipe-overrides
      '((nil . ((doom-themes :type git :host github
                             :repo "doomemacs/themes"
                             :files (:defaults
                                     "themes/*.el"
                                     "themes/*/*.el"
                                     "extensions/*.el"))))))

The recipe was updated on MELPA about two weeks ago.
https://github.com/melpa/melpa/pull/7822
Have you tried M-x straight-pull-recipe-repositories to update your local copy of the MELPA recipes?

@progfolio it seems it could have a been a me issue. After doing M-x straight-rebuild-all, straight.el now has the correct and up to date recipe without the override.
In the past I've always updateed "all the things" with M-x straight-pull-all followed by M-x straight-check-all. But seems that didn't do the trick this time. I had also tried M-x straight-pull-package RET melpa and M-x straight-rebuild-package RET melpa without any luck.
I tried rebuild-all because I got an error about a *.elc file in the with-editor package, and rebuilding the package fixed it. So I figured there might be others that straight-check-all had missed too.
I'm not sure if there's an actual issue here, so I'll leave this issue open for now.

M-x straight-rebuild-package RET melpa

This is a no-op because we don't build anything with MELPA. Pulling should update the recipes on disk, though.
The straight-check-all probably failed because it only rebuilds packages which have been modified. In this case, the doom-themes repository was not modified, only its MELPA recipe was modified.
I think we can close this issue. If a similar issue crops up or this issue persists, just comment here and we can reopen.

Right, rebuild being a no-op makes sense for the melpa package. Though the recipe had been updated on disk (straight/repos/melpa/recipies/doom-themes), and straight-pull-all had pulled the latest changes from the doom-themes repo (old repo URL redirects to the new one). While straight-check-all had rebuilt the package but missed all extensions/*.el files, yielding a semi-broken doom-themes package. That's how I noticed this issue in the first place cause the doom-themes-visual-bell-config command/func was no longer available after I had updated all packages.
And straight-get-recipe kept returning the old recipe across Emacs restarts too. It wasn't until I ran straight-rebuild-all that straight started picking up the new recipe, despite it being on disk the whole time under straight/repos/melpa/recipies/doom-themes.
Basically, something was very weird, but I can't re-produce it anymore, so ¯\_(ツ)_/¯
Also, thanks for your quick responses @progfolio :)

If you run into the situation again, try M-x straight-normalize-package doom-themes. It may have been a case of the cache being stale.

authors: jimeh progfolio


text:
Google Chrome Beta

Extension
https://www.raycast.com/raycast/browser-bookmarks
Description
Add support for Google Chrome Beta
Who will benefit from this feature?
Anyone using Google Chrome Beta
Anything else?
No response

Thanks for the feature request. Would you like to work on it? I can provide some guidance on how to contribute to this extension so that you can open a pull request. You can contact me here or in the Slack community if you need further help.
Note that opening up a PR and having it merged will earn you some credits as we want to reward contributions. You’ll then soon be able to exchange them in our swag store.

Hi Thomas! I would love to help, but I am far from capable of helping with this as I'm not a developer or coder and I hack things out to get them to work. lol .. Sorry!

Hey @thomaslombart @commandcontrolit , i will take a look.

Hey @thomaslombart @commandcontrolit, I will take a look. 😃

authors: commandcontrolit leotuil-ast thomaslombart tleo19

repo: raycast/extensions


text:
[Easy Dictionary] Something went wrong when search word

Extension – Easy Dictionary
Author: @tisfeng
Description
Easy Dictionary went wrong when search wrod
Error:
TypeError: Cannot read properties of undefined (reading 'status')

easydict.js:68:375236

---
65: - Added support for Apple \u{1F34E} system translation.
66: - Fixed deleting input box text will cause repeated query selected text problem.
67: - Fixed the bug of "\u2728 New Version Released" flashing when rendering action button.
68: `;var Ps="EasydictVersionInfoKey",Et="https://github.com",r2="https://api.github.com",Ie=class{constructor(){this.version="1.3.1";this.buildNumber=5;this.versionDate="2022-07-21";this.isNeedPrompt=!1;this.hasPrompted=!1;this.releaseMarkdown=Pi;this.fetchReleaseInfo=async a=>{try{let i=await Os.default.get(a);return console.log(`fetch github cost time: ${i.headers["x-request-cost"]} ms`),Promise.resolve(i.data)}catch(i){return Promise.reject(i)}}}getRepoUrl(){return`${Et}/${Ie.author}/${Ie.repo}`}getReadmeUrl(){return`${Et}/${Ie.author}/${Ie.repo}/#readme`}getIssueUrl(){return`${Et}/${Ie.author}/${Ie.repo}/issues`}getCurrentReleaseTagUrl(){return`${this.getRepoUrl()}/releases/tag/${this.version}`}getChineseWikiUrl(){return`${this.getRepoUrl()}/wiki`}getReleaseApiUrl(){return`${r2}/repos/${Ie.author}/${Ie.repo}/releases/tags/${this.version}`}storeCurrentVersionInfo(){let a=JSON.stringify(this),i=`${Ps}-${this.version}`;return Nt.LocalStorage.setItem(i,a)}.......`
69: `),trans_type:r,detect:t==="auto"},m={headers:{"content-type":"application/json","x-authorization":"token "+qr}};return new Promise((d,l)=>{ba.default.post(n,s,m).then(u=>{let c=u.data;console.log(`caiyun translate: ${c.target}, cost: ${u.headers[fi]} ms`),d({type:"Caiyun",result:c})}).catch(u=>{let c={type:"Caiyun",code:u.response.status.toString(),message:u.response.statusText};l(c),console.error("caiyun error response: ",u.response)})})}async function N0(e,a,i){let n=Q(a).deepLSourceLanguageId,t=Q(i).deepLSourceLanguageId||Q(i).deepLTargetLanguageId;if(!n||!t)return console.warn(`DeepL translate not support language: ${a} --> ${i}`),Promise.resolve({type:"DeepL",result:null});let o=Mt.endsWith(":fx")?"https://api-free.deepl.com/v2/translate":"https://api.deepl.com/v2/translate",r={auth_key:Mt,text:e,source_lang:n,target_lang:t};try{let p=await ba.default.post(o,Po.default.stringify(r)),s=p.data,m=s.translations[0].text;return console.log(`DeepL trans.......`
70:         tell application "Shortcuts Events"
71:           run the shortcut named "${e}" with input "${i}"
---

Steps To Reproduce

install the extension
search word in easy dictionary

The current behavior
report "Something went wrong"
The expected behavior
show the word explaination
Raycast version
Version: 1.38.2

You can try using the latest version to see if the problem still exists.
https://github.com/tisfeng/Raycast-Easydict/releases/tag/1.4.0

Looking at the logs I've got some idea, but I can't reproduce the problem on my end, can you describe in detail the steps to reproduce it? For example, what is the input text and does this problem occur every time or only in special cases? @passos

This bug should be fixed in the latest version, please test and verify it and let me know the result. Thanks

@tisfeng I have updated the extension to the latest version and the crash is still there.
I tried to clone your code and debug in dev mode. It turns out the problem is the extension is trying to call Youdao's API when it's been launched. However, the domain youdao.com is considered insecurely in my network environment and been blocked. So the call to this API will fail every time the extension been launched. And it will crash at background because the Promise error is not caught.
The current implementation will do this no matter Youdao translation service is disabled in preference or not. I disabled the call getYoudaoWebCookie(); at https://github.com/raycast/extensions/blob/main/extensions/easydict/src/dictionary/youdao/youdao.ts#L41 then it works now.
There is another issue related to this one. I noticed that when query the word in the extension, even I only turn on Google translation and disabled all the other translation services and options (include "Detect Language Speed First") in extension preference, but it still sends query requests to https://fanyi.baidu.com, https://www.bing.com and https://translate.google.cn.
I think it should follow the preference and don't send any request to the translation service if that translation service is disabled.

OK, I know this problem, thanks for your patient feedback.
First of all, I really didn't think about the possible error of getting the Youdao web cookie, which is too strange in your case. And getYoudaoWebCookie() this method is called every time the extension is started, to reduce the response time of subsequent Youdao requests. I will fix it later.
Regarding the second point you mentioned, it is actually normal, because the whole translation process is divided into two steps, the first one is to detect the text first, and the second one is to request the corresponding translation API. And in order to accurately detect the input, I have used Tencent, Baidu, Bing and Google for a total of four language detection API, and they will concurrently request once the text is input, which will not slow the speed.
In addition, I have made a special treatment for the language detection module, even if some of them fail to request, under normal circumstances will not cause the extension to crash, just may not be detected so accurately, so don't have to worry about this.

The latest version should have fixed the above bug,  https://github.com/tisfeng/Raycast-Easydict/commit/0c11ace2667a39b81421c3c04f181267eeeec2f9 , you can test it out. If there is no problem, I will release a fixed version later.

Thanks for the fix. It's not crash anymore with this update.
Btw, regard to the language detection feature, I turned off the option "Detect Language Speed First" and also set the "First Language" and "Second Language" it still requests to previous API endpoints (Google, Bing, Baidu, Tencent, Youdao, ...). I would love to have an option that can turn off this feature because I personally don't want to send my data to Tencent, Baidu or Youdao. Of course, this is nothing related to the crash in this issue.

The current language detection module will request all language detect APIs concurrently, and the Detect Language Speed First option only means to save time by quickly confirming the language type while maintaining as much accuracy as possible.
I already know your needs, in the future I may add an option to use only the language detection APIs of the services the user has turned on, for example, if only Google and Bing Translate are turned on, only those two language detection APIs will be used. But this may result in inaccurate language detection, as well as slowness. This is planned for future development, low priority.

Hi @passos, I've just released a new version with improvements to privacy issues https://github.com/raycast/extensions/pull/3061

Privacy improvement: Except for Google and Bing language detection (no key required, no personal information will be recorded!), other language detection will only be enabled when the corresponding translation engine is turned on by the user.

However, please note that in general the more language detection API there are, the faster the query response will be, and conversely, if only Google and Bing language detection API is used, the speed may be slow.

authors: passos tisfeng


text:
Cannot search for tabs

Extension
https://raycast.com/the-browser-company/arc
Description
Error:
Error: Command failed with exit code 1: osascript -e
    on escape_value(this_text)
      set AppleScript's text item delimiters to the "\""
      set the item_list to every text item of this_text
      set AppleScript's text item delimiters to the "\\\""
      set this_text to the item_list as string
      set AppleScript's text item delimiters to ""
      return this_text
    end replace_chars

    set _output to ""

    tell application "Arc"
      set _window_index to 1
      set _tab_index to 1

      repeat with _tab in tabs of first window
        set _title to my escape_value(get title of _tab)
        set _url to get URL of _tab
        set _location to get location of _tab

        set _output to (_output & "{ \"title\": \"" & _title & "\", \"url\": \"" & _url & "\", \"windowId\": " & _window_index & ", \"tabId\": " & _tab_index & " , \"location\": \"" & _location & "\" }")

        if _tab_index < (count tabs of first window) then
          set _output to (_output & ",\n")
        else
          set _output to (_output & "\n")
        end if

        set _tab_index to _tab_index + 1
      end repeat
    end tell

    return "[\n" & _output & "\n]"

466:1105: execution error: Not authorised to send Apple events to Arc. (-1743)
    at r_ (/Users/maxi/.config/raycast/extensions/606e26d8-b3c5-4760-8001-dccce1b872c4/search-tabs.js:53:57)
    at /Users/maxi/.config/raycast/extensions/606e26d8-b3c5-4760-8001-dccce1b872c4/search-tabs.js:53:8079
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async D1 (/Users/maxi/.config/raycast/extensions/606e26d8-b3c5-4760-8001-dccce1b872c4/search-tabs.js:53:41514)
    at async Object.E5 [as current] (/Users/maxi/.config/raycast/extensions/606e26d8-b3c5-4760-8001-dccce1b872c4/search-tabs.js:53:41593)

Steps To Reproduce

In MacOS 13 on MBP m1
Open raycast and launch the 'search tabs' action
An error occures with the message in the description

Current Behaviour
No response
Expected Behaviour
No response

@maxiim3 Hi Maxiim,
Can't reproduce the issue. On my end everything works fine.
Make sure you are using the latest Arc Browser and Arc extension versions (Raycast → Check For Extension Updates).
Also, try reinstalling Arc extension.

I am using the latest Arc version. Alright, i'll try again.

Hi and sorry for answering only now...
So i installed Arc extension again.
I am up to date on my MacOS, Raycast and Raycast' extensions.
I only have the ability to use the action Search History and Search Arc, which are working fine :

I can browse the history and it will open the selected tab in a new little arc window.

When using Open New Window or Open New Tab, I got an error message (See the video bellow)
When using Access Spaces and Favorite or Search Tabs I got a Failed to fetch latest data error. (See also the video)
https://github.com/raycast/extensions/assets/93276593/f66efb09-78a1-47cb-8a9c-55652c6a95b7
Best regards

✅  Resolved on my machine after a few weeks of frustration
First and Foremost: Enable Accessibility: Open "System Settings" > "Privacy & Security" > "Accessibility". Ensure Raycast is toggled.
Solution:

Automation Permissions: Similarly, go to "System Settings" > "Privacy & Security" > "Automation". Ensure Raycast  has permission to control Arc (which it does not).

Issue needs to be resolved by a config of sorts, requesting permissions from user upon first command run

🔔 @thomaspaulmann @pomdtr @zach-fuller @ankitchouhan1020 @pernielsentikaer @danpalmer @hugivar @danulqua

Hi !
Thank you for the answer.

First and Foremost: Enable Accessibility: Open "System Settings" > "Privacy & Security" > "Accessibility". Ensure Raycast is toggled. 👉 It was already checked. Raycast suggests it when loading for the first time.
Automation Permissions: Similarly, go to "System Settings" > "Privacy & Security" > "Automation". Ensure Raycast has permission to control Arc (which it does not). 👉 I didn't knowthis one !
So i toggled Arc in "System Settings" > "Privacy & Security" > "Automation", and it actually fixed a part of the problem.
I am now able to Access Spaces and Favorite, Open New Window,  Open New Tab.
But I still cannot use Search Tabs.

Here is the new Error i get :
Error:
SyntaxError: Unexpected token   in JSON at position 23031
    at JSON.parse (<anonymous>)
    at Object.E5 [as current] (/Users/maxi/.config/raycast/extensions/606e26d8-b3c5-4760-8001-dccce1b872c4/search-tabs.js:87:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

authors: danulqua gavin-burns-US maxiim3


text:
[Jira] I am unable to create a JIRA issue

Extension
https://www.raycast.com/raycast/jira
Description
Error:
Error: Worker terminated due to reaching memory limit: JS heap out of memory

NodeError:errors:405:5
[kOnExit]:worker:287:26
Worker.<computed>.onexit:worker:209:20

Steps To Reproduce
I am using the standard Create Issue command. The issue creation form loads, then crashes after a few seconds.
Current Behaviour
https://github.com/raycast/extensions/assets/29644050/74581fa1-5c47-471b-b840-8687e3dff283
Expected Behaviour
No response

Thanks for flagging this issue. Would you like to work on it? I can provide some guidance on how to contribute to this extension so that you can open a pull request. You can contact me here or in the Slack community if you need further help.
Note that opening up a PR and having it merged will earn you some credits as we want to reward contributions. You’ll then be able to exchange them in a swag store that we’ll launch soon!

Same thing here. I opened an issue, but then later I was unable to reproduce it. It is now back.

Looks like the problem for me is that my organizations issue metadata is absolutely MASSIVE (242,531 lines of formatted JSON).

@jenningsb2 Can you update your Jira extension and see if this issue is resolved?

It works as expected now! Thanks for fixing this @literallyjustroy !!


text:
Unsure how to update a modal dynamically via actions blocks

Is your feature request related to a problem? Please describe.
I don't think this is an issue per-se but I am unsure how to use Block Builder without this functionality
Describe the solution you'd like
Much of the time I want to be able to dynamically update and change modals based on input. Ie. If a user selects 'Tech Request' from a static select in an actions block, the handler sees the selection and then adds more blocks to that modal.
My issue relates to being able to mutate existing blocks. Perhaps this exists already but I am unsure how it would work. Before using this package my go-to was to take the old body.view.blocks, mutate it as necessary, and then call client.views.update with the new blocks.
Is there a way I can achieve this with Block Builder? Forgive me if it's built-in, I just can't figure it out!
Describe alternatives you've considered
I have tried getting just the blocks with .getBlocks() but the objects aren't compatible and can't be concatenated.
Additional context
None.

Hi there, thanks for the issue! It's a tough one, especially with all of the considerations of TypeScript. To have this functionality, for this to be completely type-safe, if I'm not missing anything, you'd have to actually convert the view payload to Block Builder objects, which would be very redundant, or you would need to use something like the as keyword, which isn't safe.
But I'd be interested in hearing how you imagine that as working. Something like Modal.replaceBlockAt(index, block)? Or maybe evening aliasing the blocks and replacing it by alias or block_id for that matter?
However, I can share how I approach this. It's fit my needs in every case, but that doesn't mean it's going to necessary fit yours.
How I approach this is that I build out the view from scratch every single time, passing in the necessary data to make decisions on adding/omitting blocks inside of the template itself. And I do that using the setIfTruthy, omitIfTruthy, etc., helpers. You can view some really simple examples of this right in this repo. Although it's not necessarily updating the views between requests, it's the same idea.
Let me know!

Hi Ray,
Thanks for getting back so quickly! Apologies for my slow response.
Though this differs from the way I've been using it, adjusting my approach and using these methods will satisfy my needs and probably provide a more robust way of building my app. I didn't even know they existed! I didn't notice them in the documentation. Thanks so much!
Regards,
Mike.
P.s. +1 to you for giving me the idea of putting JSON in the action_ids.

authors: mjcbfl raycharius

repo: raycharius/slack-block-builder


text:
No module named 'maploc.models.orienternet_model3'

how to fix this problem？

The bug should be fix. It is due to a staled checkpoint.
Please redownload the checkpoint and try again! Sorry for the inconvenience!


text:
📝 docs: convert summaries to hyperlinks

Hi there!
I love the port!
I thought I'd propose using hyperlinks instead of summaries to completely hide the large link parameters.
Changes...

Convert Summaries to Hyperlinks
Prepare the repo for transfer

for now, all I did was make the badges look at the Catppuccin repo (which is currently nonexistent)

Thanks for the PR! :D The badges will lead to dead links tho right?

Np!
Yes, the badges all are pointing to the catppuccin org version of this repo 👍

authors: coldenate rayhanadev

repo: rayhanadev/raycast


text:
Update README.md

Added an important note to readers about US English being loaded by default

Thanks!

authors: KamuelaFranco raymondjavaxx

repo: raymondjavaxx/swearjar-node


text:
How to use rtsp://username:password@ip:port/ to build RTSPControl class

I find that the RTSPControl  class have no username and password Construction method，so I have one rtsp like this: rtsp://username:password@ip:port//h264/ch1/main/av_stream,I can not use this Java library to finish RTSP command.If you have some suggestion,please tell me how to do this.Thank you very much!

I resolve it.
String b64 = Base64.getEncoder().encodeToString("admin".concat(":").concat("admin123456").getBytes(Charset.defaultCharset()));
stringToSend.append("Authorization: " + "Basic ".concat(b64) + CRLF);

repo: rayryeng/RTSPTest


text:
[text] Add DrawText() functions that take a specified length

Issue description
I am using raylib as a teaching tool for the D programming language. It is a wonderfully thought out and simple library, and I'm enjoying my time with it. One thing that sticks out to me when using from D is the requirement for text to be Null terminated. In most modern programming languages (D included), text consists of an array, which carries a length attribute, which makes null termination awkward and cumbersome.
Indeed, in the first line of DrawText, the code figures out the length of the text by scanning for the null terminator. A set of overloads that would accept pointer + length would be most appreciated, and the existing functions changed to wrappers that first fetch the length by searching for Null.
In D, it is quite cumbersome to work with string data that is null terminated, and generally the requirement is to call toStringz which allocates a new string that is null terminated when needed. Given that raylib doesn't really require null termination (and immediately converts it to a length variable in the first line of code), I think this should be a simple change. I'm willing to generate a PR if you wish.
I would recommend DrawTextN* for the name variant, for precedents like strncopy and strnprintf.
I will also note that I think this is only relevant for the DrawText family of functions, because it is the only reasonable place where generated text is needed. Literals for passing to e.g. InitWindow can include the null character in the literal easily enough.
Environment
N/A
Issue Screenshot
N/A
Code Example
In D:
// uses raylib-d binding (https://github.com/onroundit/raylib-d)
string name = "foo";
// existing
DrawText(toStringz(name), 100, 100, 15, Colors.WHITE);

// proposed
DrawTextN(name.ptr, name.length, 100, 100, 15, Colors.WHITE);

@schveiguy Sorry, no plans to redesign the library to accept an extra input paramater that, actually, it's not required in C language by design.
In any case, raylib uses a custom TextLength() function, I can consider allowing some option to replace it by a custom implementation (despite requiring recompiling the library with that option yourself), would it work for you?

@schveiguy Sorry, no plans to redesign the library to accept an extra input paramater that, actually, it's not required in C language by design.
In any case, raylib uses a custom TextLength() function, I can consider allowing some option to replace it by a custom implementation (despite requiring recompiling the library with that option yourself), would it work for you?

Unfortunately no, because the parameter is still only a char *. The length needs to be orthogonal to the actual string data.
There are plenty of precedents of C functions that do not require null termination for character data, but you are right that the "normal" string type in C is simply a null-terminated char *. It just makes things awkward for other-language bindings that use a pointer/length combination. The toStringz usage above actually requires an extra heap allocation to add the null character.
The more wide-spread use case (even for C) is when you have data that does not contain a null character that you can't modify for some reason. Like if you only wanted to show the first N characters of a string.
And FWIW, I wasn't requesting a redesign, just additional overloads.

Unfortunately no, because the parameter is still only a char *. The length needs to be orthogonal to the actual string data.
There are plenty of precedents of C functions that do not require null termination for character data, but you are right that the "normal" string type in C is simply a null-terminated char *. It just makes things awkward for other-language bindings that use a pointer/length combination. The toStringz usage above actually requires an extra heap allocation to add the null character.
The more wide-spread use case (even for C) is when you have data that does not contain a null character that you can't modify for some reason. Like if you only wanted to show the first N characters of a string.
And FWIW, I wasn't requesting a redesign, just additional overloads.

Sorry then, no plans to add those additional functions for the moment...

Sorry then, no plans to add those additional functions for the moment...

license: Zlib


text:
[raymath] Vector2/Vector3 Division by Value.

Issue description
Add Vector2/Vector3 Division by a Value.
Something like Vector2DivideValue()
Multiplication by value is already implemented as:
https://github.com/raysan5/raylib/blob/cda1324e87e0e3b3c1f488ac93a928d1b1b3d50b/src/raymath.h#L297-L303
(This can be used as an alternative to Vector2DivideValue() though.)
And, so are addition and subtraction by value.
https://github.com/raysan5/raylib/blob/cda1324e87e0e3b3c1f488ac93a928d1b1b3d50b/src/raymath.h#L226
https://github.com/raysan5/raylib/blob/cda1324e87e0e3b3c1f488ac93a928d1b1b3d50b/src/raymath.h#L242
Also  raylib-cpp already implements Division by value.
https://github.com/RobLoach/raylib-cpp/blob/c2900f60fa6785531a7e428e87962e77e28aa044/include/Vector2.hpp#L88-L94
Issue Screenshot
Now:

To:

I can create a PR, asking here in case it is considered bloat, or if there's any plans on adding it.

Have you considered just multiplying by 1/value?

@planetis-m Actually, that solution was proposed some time ago and I think it's the best solution instead of adding to additional functions.

authors: AnilBK planetis-m raysan5


text:
Add src/raygui.c to .gitignore

Hi,
While building with RAYLIB_MODULE_RAYGUI=TRUE, Makefile generates additional build artifact here: ./src/raygui.c Said file isn't excluded from git repo which is a bit annoying when embeding raylib inside of another repository.
This PR fixes mentioned issue.

@sleeptightAnsiC this file is geenrated in a very specific configuration and only required on some examples, I prefer not to add it to .gitignore, it could cause confusions in the future.


text:
Update README code to Swift 4

Checklist

[x] I've looked at the contribution guidelines.
[x] This pull request is complete and ready for review.

Description

thx!

authors: emanleet kelvinlauKL

repo: raywenderlich/swift-algorithm-club


text:
Gem tries to install native extensions globally

I am using a rbenv managed ruby and trying to locally install a gem package with a native extension. No matter what I do, gem tries to install it globally.
The gem I am trying to install is red-arrow. I tried the following options:
$ gem install red-arrow
$ gem install --user-install red-arrow
$ GEM_HOME=<path-to-rbenv-gem-home> gem install red-arrow
$ GEM_HOME=<path-to-rbenv-gem-home> gem install --user-install red-arrow

They still try to install the extension globally.

Hi, sorry you're having trouble, but this is an issue tracker for rbenv, not for gem which comes from Ruby. Rbenv doesn't control where gem will install gems. For what it's worth, gem install --user-install red-arrow should be the correct invocation. Also see "USER INSTALLATION DIRECTORY" in the output of gem env. Good luck!

authors: mislav rongcuid

repo: rbenv/rbenv


text:
mix test error - tigerbeetle - reason=release_too_high (0.15.4)

Steps to reproduce

git clone --recurse-submodules https://github.com/rbino/tigerbeetlex.git
cd tigerbeetlex/src/tigerbeetle
scripts/install_zig.sh
zig/zig build
./tigerbeetle version
./tigerbeetle format --cluster=0 --replica=0 --replica-count=1 --development 0_0.tigerbeetle
./tigerbeetle start --addresses=3000 --development 0_0.tigerbeetle
Open another terminal and run the following commands:

cd tigerbeetlex
mix deps.get
mix test

Error messages shown after running mix test
Running ExUnit with seed: 793230, max_cases: 32

error(client): 23646605303667990745101654218979763187: session evicted: reason=release_too_high (cluster_release=0.0.1)
thread 36150 panic: session evicted
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/vsr/client.zig:372:13: 0x7f30f1a5fd10 in on_eviction (tigerbeetlex)
            @panic("session evicted");
            ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/vsr/client.zig:180:50: 0x7f30f1a415b3 in on_message (tigerbeetlex)
                .eviction => |m| self.on_eviction(m),
                                                 ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/message_bus.zig:848:40: 0x7f30f1addc52 in on_message (tigerbeetlex)
                bus.on_message_callback(bus, message);
                                       ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/message_bus.zig:730:42: 0x7f30f1adcd9d in parse_messages (tigerbeetlex)
                    connection.on_message(bus, message);
                                         ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/message_bus.zig:987:42: 0x7f30f1adcc9c in on_recv (tigerbeetlex)
                connection.parse_messages(bus);
                                         ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/io/linux.zig:945:29: 0x7f30f1adc7d4 in wrapper (tigerbeetlex)
                    callback(
                            ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/io/linux.zig:625:28: 0x7f30f1a6281a in call_callback (tigerbeetlex)
        completion.callback(completion.context, completion, result);
                           ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/io/linux.zig:503:34: 0x7f30f1a44800 in complete (tigerbeetlex)
                    call_callback(completion, &result, callback_tracer_slot);
                                 ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/io/linux.zig:152:70: 0x7f30f1a43737 in flush (tigerbeetlex)
        while (self.completed.pop()) |completion| completion.complete(&self.callback_tracer_slot);
                                                                     ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/io/linux.zig:112:27: 0x7f30f1abfd46 in run_for_ns (tigerbeetlex)
            try self.flush(1, &timeouts, &etime);
                          ^
/home/jeryl/code/tigerbeetlex/src/tigerbeetle/src/clients/c/tb_client/context.zig:257:35: 0x7f30f1aa65dd in run (tigerbeetlex)
                self.io.run_for_ns(constants.tick_ms * std.time.ns_per_ms) catch |err| {
                                  ^
/home/jeryl/code/tigerbeetlex/deps/build_dot_zig/priv/zig-x86_64-linux-0.13.0/lib/std/Thread.zig:408:13: 0x7f30f1a7e3fa in callFn__anon_14187 (tigerbeetlex)
            @call(.auto, f, args);
            ^
/home/jeryl/code/tigerbeetlex/deps/build_dot_zig/priv/zig-x86_64-linux-0.13.0/lib/std/Thread.zig:674:30: 0x7f30f1a63732 in entryFn (tigerbeetlex)
                return callFn(f, args_ptr.*);
                             ^
???:?:?: 0x7f31c58cc3eb in ??? (libc.so.6)
Unwind information for `libc.so.6:0x7f31c58cc3eb` was not available, trace may be incomplete

Aborted

Logs shown on the running cluster ./tigerbeetle start --addresses=3000 --development 0_0.tigerbeetle
info(io): opening "0_0.tigerbeetle"...
warning(main): Grid cache size of 32MiB is small. See --cache-grid
info(main): multiversioning: disabled for development (0.0.1) release.
info(main): release=0.0.1
info(main): release_client_min=0.0.1
info(main): releases_bundled={ 0.0.1 }
info(main): git_commit=14abaeabd09bd7c78a95b6b990748f3612b3e4cc
info(replica): superblock release=0.0.1
info(main): 0: Allocated 673MiB during replica init
info(main): 0: Grid cache: 32MiB, LSM-tree manifests: 128MiB
info(main): 0: cluster=0: listening on 127.0.0.1:3000
warning(main): 0: started with constants.verify - expect reduced performance. Recompile with -Dconfig=production if unexpected.
info(message_bus): connection from client 23646605303667990745101654218979763187
warning(replica): 0: on_request: ignoring invalid version (client=23646605303667990745101654218979763187 version=0.15.4>0.0.1)
error(replica): 0: sending eviction message to client=23646605303667990745101654218979763187 reason=release_too_high
info(message_bus): peer performed an orderly shutdown: message_bus.MessageBusType(.replica).Connection.Peer{ .client = 23646605303667990745101654218979763187 }

Screenshot

I am also not able to use tigerbeetlex as a dependency at the moment. Here is the repo for reference: https://github.com/jeryldev/hello
hello (main) $ iex -S mix
Erlang/OTP 27 [erts-15.0.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Interactive Elixir (1.17.2) - press Ctrl+C to exit (type h() ENTER for help)
iex [12:07 :: 1] >       valid_opts = [
... [12:07 :: 1] >         name: :tb,
... [12:07 :: 1] >         cluster_id: <<0::128>>,
... [12:07 :: 1] >         addresses: ["3000"]
... [12:07 :: 1] >       ]
[
  name: :tb,
  cluster_id: <<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>>,
  addresses: ["3000"]
]
iex [12:07 :: 2] > {:ok, pid} = TigerBeetlex.Connection.start_link valid_opts
{:ok, #PID<0.360.0>}
iex [12:07 :: 3] > error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                                                error(message_bus): error connecting to replica 0: error.ConnectionRefused
      error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                                                error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                                                error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                                   error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                                                error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                      error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                                                error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                         error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                                                error(message_bus): error connecting to replica 0: error.ConnectionRefused
                            error(message_bus): error connecting to replica 0: error.ConnectionRefused
                                                                                error(message_bus): error connecting to replica 0: error.ConnectionRefused

BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo
       (l)oaded (v)ersion (k)ill (D)b-tables (d)istribution
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
^Chello (main) $

repo: rbino/tigerbeetlex


text:
fix: Fix Makefile for default make shell

Заметил при сборке следующую (почему-то скипаемую) ошибку:
https://github.com/rbkmoney/image-build-erlang/pull/28/checks?check_run_id=2620016836#step:6:9
 /bin/sh: 1: [[: not found

Makes sense:

The program used as the shell is taken from the variable SHELL. If this variable is not set in your makefile, the program /bin/sh is used as the shell.

Кажется /bin/sh это не совсем то что нужно, раньше был bash, он же используется внутри make wc_shell для удобства. Может сначала проверить что по-умолчанию? 🤔

Я не думаю, что в данном случае это критично: проверка будет идентичная, а далее таких ошибок нет.
Не до конца понимаю, что ты предлагаешь: bash действительно может быть в образе и в дальнейшем вызываться для удобства разработчика/админа, но make по умолчанию использует sh. С помощью SHELL=bash make можно переключить, вопрос – зачем? 🤔

repo: rbkmoney/image-build-erlang


text:
为什么在谷歌谷歌统计中数据（页面、场景值）没有实时更新

之前还是好好的，不知道为什么今天就实时数据没有了

具体是哪个统计
Acquisition > Sources > All  ?

Acquisition > Sources > All
real-time
events
screens
24号时候 Acquisition > Sources > All    访问一直都没数据过来，但是今天看的话就出现了几条24号的数据。
今天 real-time 和 Acquisition > Sources > All   部分有些数据可以被统计到，但是有些又没有。

我这里都正常，有些数据有延迟也正常。
如果和平时差的比较多，你检查一下你的转发服务器有没有异常

问过后端了，那边说没有报错之类的。之前还好好的

再测试测试看看，比如你访问一下某个页面，realtime里面看看会不会出现。排除一下转发服务器的问题。
数据延迟偶尔会碰到，但是基本上过一天就好了。

好的，谢谢你

hi 你知道为什么数据中会出现这种情况吗，文档说好像是没传入 utm_medium 值，但是在代码中只有一个入口限制处理了。但是还是会出现 (direct) / (none)。

应该是没有来源信息，就是小程序没有提供 options.scene
我这边也有少量这种情况 2%左右

但是判断中已经限制了呢，scene 必须存在才能执行函数的。

对啊，所以if里面的没有执行，那么这些session的客户就没有utm_medium之类的信息来表示来源

authors: jxZhangLi rchunping

repo: rchunping/wxapp-google-analytics


text:
No support for 2 factor auth on google

After installation and local run by
./pyportify
Tried on first page to login to google
expected result
I should've been asked about 2 Factor code
actual result:
Login not possible

Hi,
I have enabled 2FA and created App Password but still getting access denied, any suggestion to fix it?
Thank you!,
C:\Temp\pyportify-0.4.1>pyportify-copyall
Enter Google email address: migraine@gmail.com
Enter Google password:
Traceback (most recent call last):
File "site-packages\urllib3\connectionpool.py", line 601, in urlopen
File "site-packages\urllib3\connectionpool.py", line 346, in _make_request
File "site-packages\urllib3\connectionpool.py", line 850, in validate_conn
File "site-packages\urllib3\connection.py", line 326, in connect
File "site-packages\urllib3\util\ssl.py", line 329, in ssl_wrap_socket
File "ssl.py", line 407, in wrap_socket
File "ssl.py", line 814, in init
File "ssl.py", line 1068, in do_handshake
File "ssl.py", line 689, in do_handshake
ssl.SSLError: [SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:777)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "site-packages\requests\adapters.py", line 440, in send
File "site-packages\urllib3\connectionpool.py", line 639, in urlopen
File "site-packages\urllib3\util\retry.py", line 388, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:777)'),))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "pyportify\copy_all.py", line 67, in
File "pyportify\copy_all.py", line 61, in main
File "asyncio\base_events.py", line 467, in run_until_complete
File "pyportify\copy_all.py", line 38, in start
File "pyportify\google.py", line 26, in login
File "pyportify\gpsoauth_init_.py", line 67, in perform_master_login
File "pyportify\gpsoauth_init_.py", line 21, in _perform_auth_request
File "site-packages\requests\api.py", line 112, in post
File "site-packages\requests\api.py", line 58, in request
File "site-packages\requests\sessions.py", line 508, in request
File "site-packages\requests\sessions.py", line 618, in send
File "site-packages\requests\adapters.py", line 506, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:777)'),))
[2328] Failed to execute script copy_all

authors: MateuszGrab gibraine

repo: rckclmbr/pyportify


text:
include file from up folder fails for me

i'm on v0.8.1  with Laravel v5.1.16
i've this on my config: 'extension' => 'html.twig'
then I've this structure:
views\ _layout\layout.html.twig
views\ partials\navbar.html.twig
there is no way to include navbar from layout this fails:
{% include "partials/navbar.html.twig" %}
in the past I've used v0.5*   on Laravel v4.1*  and it worked

pardon  it sems to work omitting the extension so this works:
{% include "partials/navbar" %}

repo: rcrowe/TwigBridge


text:
Demosaic fails coreir simulator

I have been creating hardware for demosaic, but I am facing an issue when trying to simulate it during the circuit reset. Below is the error message. Any ideas on what could be happening?
Attached is the design:
demosaic_design_top.txt
starting reset
ERROR: add_882_884_885.in1 cannot be found
../../../../coreir/lib/libcoreir.so(_ZN6CoreIR14SimulatorState9getBitVecEPNS_6SelectE+0x5d)[0x2b7cc28933af]
../../../../coreir/lib/libcoreir.so(_ZN6CoreIR14SimulatorState17updateBitVecBinopEiPFN4bsim21quad_value_bit_vectorERKS2_S4_E+0x14d)[0x2b7cc28948ab]
../../../../coreir/lib/libcoreir.so(_ZN6CoreIR14SimulatorState13updateAddNodeEi+0x2f)[0x2b7cc2894ec1]
../../../../coreir/lib/libcoreir.so(_ZN6CoreIR14SimulatorState16updateNodeValuesEi+0x3bf)[0x2b7cc28970ff]
../../../../coreir/lib/libcoreir.so(_ZN6CoreIR14SimulatorState16exeCombinationalEv+0x259)[0x2b7cc28999b9]
../../../../coreir/lib/libcoreir.so(_ZN6CoreIR14SimulatorState12resetCircuitEv+0x18)[0x2b7cc28995b6]
./run[0x405cea]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x2b7cc34cef45]
./run[0x4054d9]
make: *** [out.png] Error 1

If it's possible, could you include the test bench driving the simulator (that causes the error above)? This would likely speed up resolution by providing a way to reproduce the issue locally.
Even better might be a simple test bench to isolate the issue (just the necessary sequence of actions to run into the reset issue).

My guess is that the problem is the simulator mishandling multidimensional arrays. Are you running the flattentypes pass before executing?

Yes, I'm doing flattentypes before executing. This is the code before failure:
CoreIRLoadLibrary_commonlib(c);
  if (!loadFromFile(c,"./design_top.json")) {
    std::cout << "Could not Load from json!!" << std::endl;
    c->die();
  }

  c->runPasses({"rungenerators", "flattentypes", "flatten", "wireclocks-coreir"});

  std::cout << "finished passes" << std::endl;
  Module* m = g->getModule("DesignTop");
  assert(m != nullptr);
  SimulatorState state(m);

  state.setValue("self.in_arg_3_0_0", BitVector(16));
  state.setValue("self.reset", BitVector(1));
  state.setClock("self.clk", 0, 1);
  std::cout << "starting reset" << std::endl;
  state.resetCircuit();

@jeffsetter I just copy-pasted your code in to a unit test and ran it in coreir. I do not get a segfault when running reset on demosaic. What version of coreir are you on?

I just updated to master with no change in outcome.

authors: dillonhuff jeffsetter leonardt


text:
Filedialog unreadable

I use this theme for an application on Linux.
In both, dark and light mode, it is impossible to read the filenames in the filedialog boxes, as they are white foreground on white background. After selection, they appear black.
Is there an easy solution to this I can use?

Unfortunately I couldn't figure out how to fix this, even after a couple of years.
Here are similar issues in my other repositories for reference:
https://github.com/rdbende/Sun-Valley-ttk-theme/issues/104
https://github.com/rdbende/Azure-ttk-theme/issues/53
https://github.com/rdbende/Azure-ttk-theme/issues/35

u can try add black foreground after theme init:
# Set the initial theme
self.root.tk.call('source', 'Gui/Theme/forest-dark.tcl')
ttk.Style().theme_use('forest-dark')

# add this
self.root.option_add('*foreground', 'black')

or just use light theme)

u can try add black foreground after theme init:

add this
self.root.option_add('*foreground', 'black')

Thanks for the suggestion, this would solve the problem in the filedialogbox; However, it makes more problems, as now the menulist and some other elements are not readable anymore....
Is there an option to change the background of the filedialogbox?

or just use light theme)

I want to offer both options to the users in the end, so this does not really solve my problem

However, it makes more problems, as now the menulist and some other elements are not readable anymore....

yes, I know. but I would say at least more readable in menulist than in the filedialog boxes previously.

Is there an option to change the background of the filedialogbox?

I don't know...

authors: AnjaRy Dakyz rdbende

repo: rdbende/Forest-ttk-theme


text:
lightningjs/ui vs lightningjs/ui-components

Whats the difference between these?

https://www.npmjs.com/package/@lightningjs/ui
https://www.npmjs.com/package/@lightningjs/ui-components

I noticed the demo project uses ui-components https://github.com/ComcastSamples/lightning-ui-tmdb
but ui has been updated more recently.

Hi Luke,
In short: they are 2 different UI projects built on Lightning, that have confusingly similar names 😄
@lightningjs/ui is the repo you are looking at now. It’s developed by a member of the Lightning Core team and it’s a collection of base components that you can use in a Lightning App. They are extendable / configurable components and are built with performance in mind
@lightningjs/ui-components is a UI library developed within Comcast by Emily Rautenburg and her team. It’s the default library used internally in Comcast for Lightning Apps. The repo on RDK central (https://github.com/rdkcentral/Lightning-UI-Components) contains all the components the team was able open source. Afaik more components are underway to be open sourced, with the upcoming 5.0 release.
Depending on your needs and preferences, you can pick one library or the other. Technically you might even be able to use them at the same, if you’d like 👍
Hope that helps!

Appreciate it. thanks!

authors: lukechinworth michielvandergeest

repo: rdkcentral/Lightning-ui


text:
WifiControl: SSID is not properly decoded

If SSID contains non-ascii characters, they are converted to utf-8 and escaped to hexadecimal escape sequences.
In old RDK wifi-hal, this is unescaped by printf_decode provided by wpa_supplicant.

A lot of changes have been made around encoding and escaping of JSON information. Expectation is that this resolved the issue at hand here. If not let us know the use case (a name of the SSID) that we can double check and fix it.

authors: BriceLin-TTI pwielders

repo: rdkcentral/ThunderNanoServices


text:
rdScaffoldNetwork causes segmenation fault upon None molecule

Configuration:

RDKit Version: 2020.03.1
Operating system: linux (CentOS7)
Python version (if relevant): 3.8
Are you using conda? yes
If you are using conda, which channel did you install the rdkit from?
If you are not using conda: how did you install the RDKit?

Description:
When feeding a None molecule to rdScaffoldNetwork.CreateScaffoldNetwork() this systemtcially ends up in asegmenation fault. Other regular molecules are processed OK.

>>> from rdkit.Chem.Scaffolds import rdScaffoldNetwork
params = rdScaffoldNetwork.ScaffoldNetworkParams()
params.flattenIsotopes=True
params.includeGenericBondScaffolds=False
params.includeGenericScaffolds=False
params.includeScaffoldsWithAttachments = False
params.includeScaffoldsWithoutAttachments = True
params.pruneBeforeFragmenting = True
sn = rdScaffoldNetwork.CreateScaffoldNetwork([None],params)

==> Segmentation fault
I fully appreciate that I should have checked for proper parsing of the molecule record first, with the mol is not None, and that of course a None molecule cannot generate a valid scaffold network. However,  still I would have expected to get an exception in this situation (which I could have contained within a try -except clause), and not a segmentation fault right away.
The issue is not burning, as now that I am aware of the problem, I can prevent the feeding of None molecules.

Simple reproducible here:
In [2]: from rdkit.Chem.Scaffolds import rdScaffoldNetwork
In [3]: rdScaffoldNetwork.CreateScaffoldNetwork([None],rdScaffoldNetwork.ScaffoldNetworkParams())

crash!

Thanks for reporting this Ansgar. The code should not, under any circumstances, seg fault and crash like this.

authors: AnsgarSchuffenhauer greglandrum

repo: rdkit/rdkit


text:
Faild to add hydrogens for 3D mol from AllChem.ConstrainedEmbed method

Describe the bug
I try to generate 3D molecule by reaction with rdkit. The AllChem.ConstrainedEmbed method is a good choice for this purpose and can solve part of my problem. But at the last step,  structures were very strange when all the hydrogen were added. So what is the problem, and is there any way to correct the output structure?
To Reproduce
def reaction_3D(reactant_3D, rxn):
    temp_3D = Chem.RemoveHs(reactant_3D)
    reactant_2D_smi = Chem.MolToSmiles(temp_3D)
    print(reactant_2D_smi)
    reactant = Chem.MolFromSmiles(reactant_2D_smi)
    products = rxn.RunReactants((reactant,))
    uniq = set()
    for mol_tuple in products:
        smi = Chem.MolToSmiles(Chem.RemoveHs(mol_tuple[0]))
        uniq.add(smi)
        print(smi)

    res = []
    for i in uniq:
        mol = Chem.MolFromSmiles(i, sanitize=False)
        mol.UpdatePropertyCache()
        Chem.GetSymmSSSR(mol)
        newmol=AllChem.ConstrainedEmbed(mol, temp_3D)
        newmol = Chem.AddHs(newmol)
        res.append(newmol)

    return res

from rdkit import Chem
from rdkit.Chem import AllChem
smi="C1(C2CCCCC2)=CC=CC=C1"
mol = Chem.MolFromSmiles(smi)
mol_3D = Chem.AddHs(mol)
AllChem.EmbedMolecule(mol_3D, randomSeed=0xf00d)
rxn = rdChemReactions.ReactionFromSmarts("[cH:1]>>[c:1][C]")
out = reaction_3D(mol_3D, rxn)

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Configuration (please complete the following information):

RDKit version:  2021.03.2
OS: win10
Python version (if relevant): 3.8
Are you using conda? yes
If you are using conda, which channel did you install the rdkit from? conda-forge
If you are not using conda: how did you install the RDKit?

Additional context
Add any other context about the problem here.

@dalong12 This is not a bug - by default all added hydrogens have (0, 0, 0) coordinates. If you set addCoords=True when calling Chem.AddHs() you will get the 3D coordinates that you expect.
That said, you should rather add hydrogens before doing the 3D embedding, not after.