text:
Zuul failed to communicate with Eureka Server

I'm using spring.cloud.netflix version:1.0.3.RELEASED, spring-cloud-starter-pararent:Angel.SR3,
recently i'v got problems seting up eureka and load balance server(Zuul).
I started Eureka Server on 8761, application.yml like this:
server:
  port: 8761

eureka:
  instance:
    hostname: localhost
    leaseRenewalIntervalInSeconds: 10
  client:
    registerWithEureka: false
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka

Eureka server started with no warnings/errors.
when i started my load balance server,it cannot communicate with Eureka server, console prints like this:

2015-10-16 14:26:17.496  WARN 26995 --- [           main] com.netflix.discovery.DiscoveryClient    : Action: Refresh  => returned status of 401 from http://localhost:8761/eureka/apps/
2015-10-16 14:26:17.504 ERROR 26995 --- [           main] com.netflix.discovery.DiscoveryClient    : Can't get a response from http://localhost:8761/eureka/apps/
Can't contact any eureka nodes - possibly a security group issue?

java.lang.RuntimeException: Bad status: 401
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1155)
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1060)
	at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:835)
	at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:746)
	at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:320)
	at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:197)
	at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:193)
	at com.netflix.discovery.DiscoveryManager.initComponent(DiscoveryManager.java:84)
	at org.springframework.cloud.netflix.eureka.DiscoveryManagerInitializer.init(DiscoveryManagerInitializer.java:39)
	at org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration.start(EurekaDiscoveryClientConfiguration.java:129)
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:173)
	at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
	at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:346)
	at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:149)
	at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:112)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:770)
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:140)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)
	at io.docsign.cloud.LoadBalanceApplication.main(LoadBalanceApplication.java:22)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

and periodly prints like this:
2015-10-16 14:30:47.619  INFO 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2015-10-16 14:30:47.619  INFO 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2015-10-16 14:30:47.619  INFO 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2015-10-16 14:30:47.619  INFO 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : Application is null : false
2015-10-16 14:30:47.619  INFO 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2015-10-16 14:30:47.619  INFO 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2015-10-16 14:30:47.624  WARN 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : Action: Refresh  => returned status of 401 from http://localhost:8761/eureka/apps/
2015-10-16 14:30:47.624  WARN 26995 --- [pool-4-thread-1] com.netflix.discovery.DiscoveryClient    : Action: Renew  => returned status of 401 from http://localhost:8761/eureka/apps/LOAD-BALANCE-SERVICE/WB.local
2015-10-16 14:30:47.625 ERROR 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : Can't get a response from http://localhost:8761/eureka/apps/
Can't contact any eureka nodes - possibly a security group issue?

java.lang.RuntimeException: Bad status: 401
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1155)
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1060)
	at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:835)
	at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:746)
	at com.netflix.discovery.DiscoveryClient.access$1400(DiscoveryClient.java:105)
	at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1723)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

2015-10-16 14:30:47.625 ERROR 26995 --- [pool-4-thread-1] com.netflix.discovery.DiscoveryClient    : Can't get a response from http://localhost:8761/eureka/apps/LOAD-BALANCE-SERVICE/WB.local
Can't contact any eureka nodes - possibly a security group issue?

java.lang.RuntimeException: Bad status: 401
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1155)
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1060)
	at com.netflix.discovery.DiscoveryClient.access$500(DiscoveryClient.java:105)
	at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1583)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

2015-10-16 14:30:47.625 ERROR 26995 --- [pool-5-thread-1] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_LOAD-BALANCE-SERVICE/WB.local - was unable to refresh its cache! status = Bad status: 401

java.lang.RuntimeException: Bad status: 401
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1155)
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1060)
	at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:835)
	at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:746)
	at com.netflix.discovery.DiscoveryClient.access$1400(DiscoveryClient.java:105)
	at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1723)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

2015-10-16 14:30:47.625 ERROR 26995 --- [pool-4-thread-1] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_LOAD-BALANCE-SERVICE/WB.local - was unable to send heartbeat!

java.lang.RuntimeException: Bad status: 401
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1155)
	at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1060)
	at com.netflix.discovery.DiscoveryClient.access$500(DiscoveryClient.java:105)
	at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1583)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

i do not know i configured wrong or what.

Here is my load banlance sever application.yml
info:
  component: load-balance-service

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

zuul:
  ignoredServices: "*"
  routes:
    load-balance-service:
      path: /load-balance-service

server:
  port: 8765

eureka:
  password: password
  region: default
  name: cloud-discorver-server-master
  preferSameZone: true
  serviceUrl:
    default: http://localhost:8761/eureka

i found a solution, remove this from the parent project pom
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-security</artifactId>
        </dependency>

but there is another problem : HOW TO PROTECT EUREKA SERVER?
usully in my project i use username-password mechanism, any suggestions?

Usually you do not want to spread authentication state across your microservices but have an authorization server that holds the "user session". Your eureka server is just another microservice in your landscape and asks the authorization server whether the user is authenticated or not. This process is called single sign on. As soon as any of your service communicates with other services (with eureka) it passes an authentication token and the other service  asks the authorization server wether the token is valid or not.
You can find good examples out there. Have a look at https://github.com/spring-cloud-samples/sso to and https://github.com/spring-cloud-samples/authserver. This should give you an idea how to authenticate in your landscape.

@xjiaoyang you can secure it using spring-security and basic auth. Then in your clients you can do something like:
eureka:
  client:
    serviceUrl:
      defaultZone: http://user:password@localhost:8761/eureka/

authors: Writtscher spencergibb xjiaoyang


text:
SleuthKafkaAspect not working

I'm using spring version 2.1.7.RELEASE, and i add spring-cloud-starter-sleuth:2.1.0.RELEASE,
after that i enabled aspect by "@EnableAspectJAutoProxy" and add configuration for enabling kafka tracing: spring.sleuth.messaging.kafka.enabled: true. When i start my application, TraceMessagingAutoConfiguration is triggered, and it create SleuthKafkaAspect, which should
wrap producer and consumer factory. But that never hapen, SleuthKafkaAspect is create, but app never reach code in method wrapProducerFactory, it's ignored and only deafault producer withou tracing is created. What am i missing, that this aspect never work for me?

Hi! Can you always, before asking a question or posting an issue, try to upgrade to the latest version (e.g. 2.1.2.RELEASE) and check if the problem still persists?

sorry for that, i upgraded to the latest version but ma problem still persist

Can you upload a sample that reproduces the problem? I would like to see how you set up the project and how you're using the kafka logic.

I am note sure what exactly you mean by sample, so I hope I got it right
my app configuration:
spring:
  sleuth:
    messaging:
      kafka:
        enabled: true
  kafka:
    bootstrap-servers: ${KAFKA_URL}
    producer:
      key-serializer: org.apache.kafka.common.serialization.StringSerializer
    consumer:
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
  cloud:
    stream:
      bindings:
        input:
          destination: DESTINATION_NAME
          contentType: application/json
          group: GROUP_NAME
          consumer:
            headerMode: raw
        output:
          destination: DESTINATION_NAME
          contentType: application/json
          producer:
            headerMode: raw

spring boot main class:
@SpringBootApplication
@EnableAspectJAutoProxy
public class MyApplication {

    public static void main(String... args) {
        SpringApplication.run(MyApplication .class, args);
    }
}

impl class:
import static org.springframework.cloud.stream.messaging.Sink.INPUT;
import static org.springframework.cloud.stream.messaging.Source.OUTPUT;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Processor;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.integration.support.MessageBuilder;
import org.springframework.messaging.Message;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.messaging.handler.annotation.SendTo;

@Slf4j
@EnableBinding(Processor.class)
public class MyMapper {

    @StreamListener(INPUT)
    @SendTo(OUTPUT)
    public Message<Object> process(@Payload Object message) {
       //some code here to convert data
       return MessageBuilder
                    .withPayload(data)
                    .setHeader(Constants.MESSAGE_KEY_OUTGOING, key)
                    .build();
    }
}

The full code. I prefer to be able to import your project to do the analysis instead of reading snippets.
From what I see you're mixing the concepts. You're not using Kafka directly, you're using Spring Cloud Stream, so no wonder that your Kafka aspect is completely ignored.
Also,

@EnableAspectJAutoProxy - this is not required
you can put @EnableBinding(Processor.class) on the main class, that's a good practice
I wonder why do you set the starter version manually, I hope that you're using the Spring Cloud BOM ?

The full code will probably not possible due to company policy and of course I'm using spring cloud BOM, 2.1.0.RELEASE is the version of sleuth starter for the last version of spring boot
Yes I am using Spring Cloud Stream, but I don't understand why that should be a problem. Is there some more configuration needed in case of spring cloud stream?
I see, that aspect is set to:
"execution(public * org.springframework.kafka.core.ProducerFactory.createProducer(..))",
when i am debuging, my code reach method createProducer in class DefaultKafkaProducerFactory from KafkaMessageChannelBinder in method createProducerMessageHandler, but asspect is ignored

The full code will probably not possible due to company policy and of course I'm using spring cloud BOM, 2.1.0.RELEASE is the version of sleuth starter for the last version of spring boot

That's not a version of Spring Cloud BOM. Please read this page (https://spring.io/projects/spring-cloud) for more information. Preferably go to start.spring.io and click there to generate a proper spring cloud project.

Yes I am using Spring Cloud Stream, but I don't understand why that should be a problem. Is there some more configuration needed in case of spring cloud stream?

Since Spring Cloud Sleuth instruments Spring Integration (https://cloud.spring.io/spring-cloud-static/Greenwich.SR2/single/spring-cloud.html#_spring_integration_and_spring_cloud_stream) you get the Spring Cloud Stream instrumentation for free.

I see, that aspect is set to:
"execution(public * org.springframework.kafka.core.ProducerFactory.createProducer(..))",
when i am debuging, my code reach method createProducer in class DefaultKafkaProducerFactory from KafkaMessageChannelBinder in method createProducerMessageHandler, but asspect is ignored

As I said previously, this aspect is applied when you're using Spring Kafka directly. If you want to debug what's happening please debug the TracingChannelInterceptor class (https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TracingChannelInterceptor.java). This is the class responsible for instrumenting a Spring Cloud Stream application.

I'm using Greenwich.RELEASE, and spring.sleuth.integration.enabled is default true, so it should be enough to add spring-cloud-starter-sleuth as dependency right? But when I do that, and my first application create message and send it to kafka with generated traceId, then my second application  read the message, ignore traceId from first app and generate new traceId.
When i debug TracingChannelInterceptor, I can see, that it always fill message headers with span values in method preSend, so why my second application always generate new traceId?

I have no idea how your second application works. If it's using Spring Cloud Stream and you don't have a mismatch in versions then it should work out of the box.

While I understand that you can't share your proprietary code, you should be able to compile an independent example that reproduces the issue so (as suggested by @marcingrzejszczak ) we can import, analyse and act on if required. Until then it is really a guessing game which rarely ends up with any tangible results. . .

I probably find out the problem:
TracingChannelInterceptor#preSend is reached as the first, there are filled all tracing headers for incoming message
After that it comes into my MyMapper#process method like I showed here https://github.com/spring-cloud/spring-cloud-sleuth/issues/1426#issuecomment-522448465
But in my method I'm ignoring all headers from incoming message, and with MessageBuilder I create new message, witch contains none tracing headers, so i always send message to kafka without that headers
I was thinking that this headers is filled to outgoing message too, when I use @SendTo anotation, but I was probably wrong about that
So what should be som best practice solution for that? reading all headers with @Headers and copying them into my new message isn't look much pretty

So what should be some best practice solution for that? reading all headers with @headers and copying them into my new message isn't look much pretty

you can copy the tracing ones only

[SOLVED]: problem was in my configuration of headerMode spring.cloud.stream.bindings.output.headerMode=raw
Due to this configuration, KafkaMessageChannelBinder set headerMapper to null, so when KafkaProducerMessageHandler was handling a request, it never copied headers from sleuth

source: gharchive/issue

authors: marcingrzejszczak matus753 olegz

repo: spring-cloud/spring-cloud-sleuth

license_type: permissive

license_source: github-api


text:
Prune dependencies in starters

We tried pruning the dependencies in a minimal (empty) Spring Cloud app once and got the resulting ueberjar down to just over 20MB IIRC. We should do that again and bake the findings into starters.

Here is the dependency section of that app recorded for posterity
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-eureka</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.google.inject.extensions</groupId>
                    <artifactId>guice-grapher</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.inject.extensions</groupId>
                    <artifactId>guice-assistedinject</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.codehaus.jsr166-mirror</groupId>
                    <artifactId>jsr166y</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.inject</groupId>
                    <artifactId>guice</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.xbean</groupId>
                    <artifactId>xbean-finder</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>asm</groupId>
                    <artifactId>asm-all</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.inject.extensions</groupId>
                    <artifactId>guice-multibindings</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.xbean</groupId>
                    <artifactId>xbean-bundleutils</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.inject</groupId>
                    <artifactId>javax.inject</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.commons</groupId>
                    <artifactId>commons-math</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.netflix.netflix-commons</groupId>
                    <artifactId>netflix-infix</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>joda-time</groupId>
                    <artifactId>joda-time</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>commons-jxpath</groupId>
                    <artifactId>commons-jxpath</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.antlr</groupId>
                    <artifactId>antlr-runtime</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.antlr</groupId>
                    <artifactId>stringtemplate</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>antlr</groupId>
                    <artifactId>antlr</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.code.gson</groupId>
                    <artifactId>gson</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.code.findbugs</groupId>
                    <artifactId>annotations</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.squareup.dagger</groupId>
                    <artifactId>dagger</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
            <version>2.0</version>
        </dependency>
    </dependencies>

I'm working on getting it into starters.

% ll -h target/testdeps-1.0-SNAPSHOT.jar
-rw-r--r-- 1 sgibb staff 25M Jan  9 11:00 target/testdeps-1.0-SNAPSHOT.jar

with just spring-cloud-starter-hystrix
ls -lh target/testdeps-1.0-SNAPSHOT.jar
-rw-r--r-- 1 sgibb staff 21M Jan  9 15:23 target/testdeps-1.0-SNAPSHOT.jar

with just spring-cloud-starter-ribbon
$ ls -lh target/testdeps-1.0-SNAPSHOT.jar
-rw-r--r-- 1 sgibb staff 23M Jan  9 15:27 target/testdeps-1.0-SNAPSHOT.jar

with just spring-cloud-starter-feign
% ls -lh target/testdeps-1.0-SNAPSHOT.jar
-rw-r--r-- 1 sgibb staff 21M Jan  9 15:29 target/testdeps-1.0-SNAPSHOT.jar

with just spring-cloud-starter-turbine
% ll -h target/testdeps-1.0-SNAPSHOT.jar                                (8074)[15:31:32]
-rw-r--r-- 1 sgibb staff 27M Jan  9 15:31 target/testdeps-1.0-SNAPSHOT.jar

brings in eureka-client.

with just spring-cloud-starter-zuul
$ ls -lh target/testdeps-1.0-SNAPSHOT.jar
-rw-r--r-- 1 sgibb staff 25M Jan  9 15:33 target/testdeps-1.0-SNAPSHOT.jar

with just spring-cloud-starter-eureka-server
% ls -lh target/testdeps-1.0-SNAPSHOT.jar
-rw-r--r-- 1 sgibb staff 39M Jan  9 16:31 target/testdeps-1.0-SNAPSHOT.jar

with just spring-cloud-starter-hystrix-dashboard
% ls -lh target/testdeps-1.0-SNAPSHOT.jar
-rw-r--r-- 1 sgibb staff 20M Jan  9 16:46 target/testdeps-1.0-SNAPSHOT.jar

fixed via 3e076411f0a30c35de4f8caaf60c6b8bfa7ecb59, 218eb59df80fa8edae6a954d81646ba012f84804 and 53c2666227846789e70e7e3076a2a5e24a33b6ce
Probably could do something with git to be one, oh well.

authors: dsyer spencergibb

repo: spring-cloud/spring-cloud-starters

license_source: bigquery


text:
Allow format issue output text within individual sections and in general

Hi everyone! Here is a simple solution for issue #47

Allow format issue output text within individual sections and in general
Removed generateLinks flag

Removed generateLinks flag

Even if a custom format allows the links to be omitted, having a flag that controls the behavior when using the default format is a useful convenience that I think should be kept.

@wilkinsona Could you describe the scenario of how format should work in the case where it has ${number} but the generateLinks flag is set to false. I suggest another way to eliminate these conflicts by setting the default-format parameter to ${title}, which is equivalent to generateLinks=true.
Another option would be to use generateLinks=true to internally set the default format to ${title}, but not allow generateLinks and default-format to be set at the same time.
Thank you for your feedback, please say me if you have any other ideas

I would only apply generateLinks to the default format and ignore it when a custom format has been supplied.
When using a custom format, I don't think ${number} should generate a link. It should only output the issue's number. If you want a link, I would expect the format to be something like ${title} [${number}](${url}). This should provide complete control over the link and its text. You could then also do something like [${title} ${number}](${url}) if you want the issue's title to be part of the link text.

Hi again @wilkinsona. I've put generate-links back the way it worked before. Now, if default-format is explicitly specified, the generate-links flag is ignored. If default-format is not specified, generate-links then "${title}" will be used as the default format, as it worked before. Is it what you wanted?

Hi everyone! So what is with this pull request?

@Dinozavvvr nothing except the team is very busy and has other priorities right now.

source: gharchive/pull-request

authors: Dinozavvvr snicoll wilkinsona

repo: spring-io/github-changelog-generator


text:
Revisit Search features: indexation and queries

This commit improves search in Sagan in many ways and tries to address
several search problems (relevance, filtering, etc).
First, dependencies have been upgraded to Jest 0.1.6
and ElasticSearch 1.5.2, which include many changes in ES's API since
0.90.x versions.
ES index settings and type mappings have been completely revisted; now
search entries are organized in 5 types: apidoc, sitepage, referencedoc,
guidedoc and blogpost. Each type has specific properties but they all
share common properties described in SearchEntry.
This allows to narrow down searches with types, more fine grained
mappings configurations and avoid unnecessary null/default values
in properties.
Type mappings and settings have been modified to better index entries
and support search patterns (see apidoc.json and others).
The main search query has been improved, with fuzziness support in the
multi_match query, more fine grained filters to avoir unpublished
entries in search results, a better sort algorithm (score + publication
date if available). A complete query example can be found in
fulltext-query.json.
Instead of relying on a external ElasticSearch instance, this commit
makes use of a Marketplace service on PWS. See SearchClientConfig.
In order to auto-detect this service, a new Spring Cloud Connector
ElasticSearchServiceInfoCreator has been created.
This class should be reoved as soon as this is supported in the
offical project.
Fixes #421 #274 #387 #449 #429

Cool! I look forward to trying this once it's merged :)

Hey Chris!
There's still room for improvement - especially some boost factors and fuzziness parameters that can be tweaked. Luckily Searchly provides an analytics page where I'll see stats about frequent search terms; I'll work from there with the Spring team to tweak the results!

@cbeams Does this mean your baby is all grown up?

This is now live - indexing is still in progress at the moment.

authors: bclozel cbeams gregturn

repo: spring-io/sagan


text:
fix: QianFan role based chat model & unit tests

fix QianFan chat model error on role based message call and add role based unit tests
related issue https://github.com/spring-projects/spring-ai/issues/1017

thanks!

authors: markpollack mxsl-gr

repo: spring-projects/spring-ai


text:
[BUG] Many listening threads that cannot be closed.Because there are too many threads open, causing crash

Affects Version(s): <Spring AMQP version> 2.1.2.RELEASE
Bug report
Many listening threads that cannot be closed.
Causes the application to take up too many system resources.
These processes are generated every time rabbitTemplate.convertSendAndReceive(...) but never closed.
Therefore, I need your support, thank you.

::
名称: rabbitTemplate#0-consumerMonitor-1
状态: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@13fd3c0e上的TIMED_WAITING
总阻止数: 2, 总等待数: 63
堆栈跟踪:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
::

Your issue is not clear; please provide much more information together with a small application that clearly shows what the issue is.

I have already targeted the specific reason, there is a problem with the configuration between the connection pool and the virtual host.

@tpxn do you remember what configuration you changed? I've the same problem

authors: garyrussell kitsrc rafihap tpxn

repo: spring-projects/spring-amqp


text:
Update OAuth 2.1 spec link in README.adoc

The original OAuth 2.1 spec link in README.adoc is outdated. We should replace it with the latest draft version available.

Duplicate of gh-940

authors: jgrandja octopusthu


text:
Duplicate Pet name for the same Owner in Owner List page

there is a duplicate pet names in the Owners List for the same Owner

I suggest to use Set instead of List in Owner Class that can fix the problem

Maybe Jean is a bit strange and actually has two pets called Max and Samantha? I suspect the bug is more subtle than your proposed solution suggests. I'm looking forward to finding out what causes it.

I suspect a bug in Hibernate. Did you try the latest version of PetClinic (from main branch)?

@dsyer  yes you are correct in latest this error does not happen

repo: spring-projects/spring-petclinic


text:
Request cannot be submitted with required = true parameter

I'm using springfox 2.9.2
		<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-swagger2</artifactId>
			<version>2.9.2</version>
		</dependency>
		<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-spring-web</artifactId>
			<version>2.9.2</version>
		</dependency>
		<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-swagger-ui</artifactId>
			<version>2.9.2</version>
		</dependency>

I built the following controller.
package com.dtn.accounts.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;

/**
 * Auth controller.
 */
@RestController
@RequestMapping(value = "/accounts")
public class TempController {

    /**
     * Test endpoint.
     * @param request a HttpServletRequest
     */
    @ApiOperation(value = "Test", nickname = "test")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "version", value = "This endpoint currently only has version 1.", allowableValues = "1", required = true, dataType = "integer", paramType = "header"),
            @ApiImplicitParam(name = "param1", value = "parameter 1", dataType = "string", paramType = "header")})
    @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = String.class),
            @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 403, message = "Forbidden"),
            @ApiResponse(code = 404, message = "Not Found"), @ApiResponse(code = 500, message = "Failure") })
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String test(
            @ApiParam(value="input text", required = true) @PathVariable final String echoText,
            @ApiParam(value = "Password", required = true, type="string", format="password") @RequestParam(value = "password") final String password) {
         return "Success";
    }
}

When I open the controller in swagger and attempt to call the operation, it flags the version field as required, even though there is a value selected. Additionally, the password field is not masked as I expected. Can you tell me what I'm doing wrong? Thanks.

Password feature needs to be implemented I believe, however Im not sure about the version field

repo: springfox/springfox


text:
大屏模板滚动表格设置

帮忙新增大屏模板滚动表格可以支持文本的布局格式的设置，比如文本靠左、靠上、靠下、或根据行距自动换行等功能

大屏这部分的功能暂时更新比较慢，还是以报表为主，需要耐心等待

repo: springreport/springreport


text:
The option to delete a photo doesn't work for me

The option to delete a photo doesn't work for me.

2.7.0
Windows 10 1903 64 bits

the option does not work when the "Do not move files to trash" option is enabled

@liskaaaaaaaaaa
Thank you for the report.
If you have enabled the "Do not move files to trash" option in Windows, you cannot immediately delete the files due to Electron specifications.
To achieve this, you need to send a Feature Request to the Electron project to change the specification of shell.trashItem(path).
So I cannot correct this behavior myself. I am sorry.

@sprout2000
Thank you very much for your answer.
:(

license: MIT


text:
🛑 Mattermost Chat is down

In 324b762, Mattermost Chat (https://mattermost.sp-ps.ch) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mattermost Chat is back up in e55f214.

repo: spschweiz/status


text:
Dynamodb filter expression does not support contains

Below I am providing a python code which puts 3 records in dynamodb out of which 2 should be returned by applying dynamodb filter expression 'contains' but it returns none.
from moto import mock_dynamodb2
import boto3
import sys
from boto3.dynamodb.conditions import Key, Attr
db_attributes = [
{
'primary_name': 'Hello',
'serial_no': 1,
'filter': 'ABC'
},
{
'primary_name': 'Hello',
'serial_no': 2,
'filter': 'ABCD'
},
{
'primary_name': 'Hello',
'serial_no': 3,
'filter': 'XYZ'
}
]
def create_mock_resources():
dbclient = boto3.client('dynamodb', region_name='us-east-1')
dbclient.create_table(
TableName="FilterCheck",
AttributeDefinitions=[
{
'AttributeName': 'primary_name',
'AttributeType': 'S'
},
{
'AttributeName': 'serial_no',
'AttributeType': 'N'
}
],
KeySchema=[
{
'AttributeName': 'primary_name',
'KeyType': 'HASH'
},
{
'AttributeName': 'serial_no',
'KeyType': 'RANGE'
}
],
ProvisionedThroughput={
'ReadCapacityUnits': 2,
'WriteCapacityUnits': 1
}
)
@mock_dynamodb2
def check_filter_expression():
create_mock_resources()
dynamo_db = boto3.resource("dynamodb", region_name='us-east-1')
table = dynamo_db.Table("FilterCheck")
for item in db_attributes:
table.put_item(
Item=item
)
response = table.query(
KeyConditionExpression=Key('primary_name').eq('Hello') &
Key('serial_no').gt(0),
FilterExpression=Attr('filter').contains('ABC')
)
print(response)
def main_func(argv):
check_filter_expression()
if name == 'main':
exit(main_func(sys.argv[1:]))

This should be fixed with #1559

repo: spulec/moto


text:
ProjectionExpression works with table.scan()

Ability to use ProjectionExpression with dynamodb.scan().
ProjectionExpression is not implemented for table.scan() but is for table.query() - took the majority of my inspiration for this from the query function.
#1491

Coverage decreased (-0.1%) to 92.836% when pulling e50ce7287dedabdb477e726d2289ff0e17e97189 on IVIURRAY:bugfix/scan-projection into 2275c53b3e4c6d21bc3de6d2dee9a02bad7a3491 on spulec:master.

Looks great; thanks!

authors: IVIURRAY coveralls spulec


text:
AWSLambda:list_functions() should only return the latest version by default

Fixes #3422
Only return full version list when the user specifies FunctionVersion="ALL"
Also makes some changes to ensure that FunctionARN is always returned in the correct format.
Tests have been verified against AWS.

Codecov Report

Merging #4047 (e4bcab0) into master (9f47c0c) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4047      +/-   ##
==========================================
+ Coverage   95.11%   95.13%   +0.01%
==========================================
  Files         485      485
  Lines       54117    54143      +26
==========================================
+ Hits        51474    51507      +33
+ Misses       2643     2636       -7

Flag
Coverage Δ

servertests
53.99% <25.00%> (-0.93%)
:arrow_down:

test_responses
31.76% <16.66%> (?)

unittests
95.03% <100.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

moto/awslambda/models.py
92.79% <100.00%> (+0.10%)
:arrow_up:

moto/awslambda/responses.py
91.46% <100.00%> (+0.05%)
:arrow_up:

moto/iam/access_control.py
97.04% <0.00%> (+0.42%)
:arrow_up:

moto/s3/exceptions.py
91.16% <0.00%> (+0.46%)
:arrow_up:

moto/core/models.py
96.84% <0.00%> (+1.24%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f47c0c...e4bcab0. Read the comment docs.

authors: bblommers codecov-commenter


text:
PEP8 check fails to consider ignores set in Spyder Settings

Description
What steps will reproduce the problem?

PEP8 check fails to consider ignores set in Spyder Settings
Versions

Spyder version: 4.1.5
Python version: 3.8.3
Qt version: 5.9.7
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies

# Mandatory:
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.5.0 (OK)
diff_match_patch >=20181111    :  20200713 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.16.1 (OK)
jedi =0.17.1                   :  0.17.1 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  1.1.0 (OK)
paramiko >=2.4.0               :  2.7.1 (OK)
parso =0.7.0                   :  0.7.0 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=1.0                   :  2.5.3 (OK)
pyls >=0.34.0;<1.0.0           :  0.34.1 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.2 (OK)
qtconsole >=4.6.0              :  4.7.5 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.1.2 (OK)
spyder_kernels >=1.9.4;<1.10.0 :  1.9.4 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.1 (OK)

# Optional:
cython >=0.21                  :  0.29.21 (OK)
matplotlib >=2.0.0             :  3.2.2 (OK)
numpy >=1.7                    :  1.18.5 (OK)
pandas >=0.13.1                :  1.0.5 (OK)
scipy >=0.17.0                 :  1.5.0 (OK)
sympy >=0.7.3                  :  1.6.1 (OK)

Hi @ma-sadeghi,
We are currently working in fixing this issue and adding support to move the vertical line given the settings for the autocompletion engine. We expect to add this support in our next release.
Thanks for reporting!

Hey @ma-sadeghi, a followup question for you: are you starting Spyder with an open project when this error happens?

Hi @ccordoba12, I'm not 100% sure, but I almost always have an open project when I open Spyder, so I think yes.

Ok, thanks for the confirmation. Then this is a duplicate of issue #13351 and it'll be fixed in Spyder 4.2.0, to be released in November.

repo: spyder-ide/spyder


text:
spyder 4.1.5 no response

I am using spyder 4.1.5, newly installed on Manjarolinux 20.2. the launch seems ok, but it stuck at the first interface, no response to any keyboard or mouse input.

Hey @jessezwd, thanks for reporting. Please open a bug report in your Linux distro bug tracker for this.
Unfortunately we don't have the resources nor the time to give support to installation methods other than Anaconda.

@ccordoba12 thanks! I got this message: spyder_kernels >=1.9.4;<1.10.0 : 1.10.0(NOK).
and I have spyder_kernels 1.10.0 installed.

If you're using Spyder 4.1.5, you need to use spyder-kernels 1.9.4, not 1.10.0. That's the problem you're having.

@ccordoba12 ok, thanks!


text:
Unable to update to 4.2.0 via conda. Latest version 4.1.5 (anaconda.org)?

Problem Description
Until now I could update spyder every time with the command "conda install spyder=x.x.x". But currently I get the message that 4.1.5 seems to be the latest version and therefore no 4.2.0 is available.
There is the latest version under conda-forge, but I suspect that version 4.2.0 should also be officially available.
I have done the usual troubleshooting  (conda update anaconda then conda update spyder), but since the anaconda repro 4.1.5 is mentioned as the current version, I do not suspect a local error.
What steps reproduce the problem?

Under win 10, open an Anaconda prompt with admin rights.
conda install spyder=4.2.0

What is the expected output? What do you see instead?
C:\WINDOWS\system32>conda install spyder=4.2.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:

spyder=4.2.0

Current channels:

https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org

and use the search bar at the top of the page.
Versions

Spyder version: 4.1.5 None
Python version: 3.7.9 64-bit
Qt version: 5.9.6
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies

# Mandatory:
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.6.0 (OK)
diff_match_patch >=20181111    :  20200713 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.19.0 (OK)
jedi =0.17.1                   :  0.17.1 (OK)
nbconvert >=4.0                :  6.0.7 (OK)
numpydoc >=0.6.0               :  1.1.0 (OK)
paramiko >=2.4.0               :  2.7.2 (OK)
parso =0.7.0                   :  0.7.0 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.2 (OK)
pygments >=2.0                 :  2.7.2 (OK)
pylint >=1.0                   :  2.6.0 (OK)
pyls >=0.34.0;<1.0.0           :  0.35.1 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  1.0.1 (OK)
qtconsole >=4.6.0              :  4.7.7 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.2.1 (OK)
spyder_kernels >=1.9.4;<1.10.0 :  1.9.4 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.2 (OK)

# Optional:
cython >=0.21                  :  0.29.21 (OK)
matplotlib >=2.0.0             :  3.3.2 (OK)
numpy >=1.7                    :  1.19.2 (OK)
pandas >=0.13.1                :  1.1.3 (OK)
scipy >=0.17.0                 :  1.5.2 (OK)
sympy >=0.7.3                  :  1.6.2 (OK)

# Spyder plugins:
spyder_notebook                :  0.3.1 (OK)

Same issue. I am on macOS too.

Hi @JanWaldhorn and @luismiguells seems like version in 4.2.0 is still not available. From our side there is not much we can do about it, sorry :/ . Pinging @ccordoba12 just in case we can ask someone over the Anaconda side to check if there is something that prevents updating the package version available on the anaconda channel.
Also, for Spyder 4.2.0 we started building standalone application installer for Mac and Windows. You can check them in the release page or for more info about installation/run options you can check them in the documentation page

@dalthviz thanks for the information 👍🏽. I tried running the standalone application on macOS 11.0.1 but it never opens, so I return to Anaconda. I don't know if I need to install something else or just the standalone application because if you don't have Anaconda you can't run the the conda commands as far as I know.

@luismiguells, our installer will work with Big Sur in our next version (4.2.1), to be released in three week.s

After some days, I was able to install spyder 4.2.0 on windows by simply doing conda install spyder=4.2.0. However, for unix-based systems, this is not possible yet. I once tried conda install -c conda-forge spyder=4.2.0 on Linux but it messed up with my dependencies and I had to install anaconda from scratch.
Is there a way make the new version available for Linux/Mac or should we wait for the 4.2.1 version?

@dcasasor-purdue fascinating to hear. I just tried it again and it still does not work for me. Also the version on the Anaconda page has not changed (still 4.1.5). btw thanks for the explanation @dalthviz
Maybe I try the stand a lone version, but at the moment 4.1.5. works just fine for me.

Hi @dcasasor-purdue if you want to have Spyder 4.2.0 I would suggest to create a new env and install from the conda-forge channel (to prevent messing up with your base env and default channel packages). Something like this should be create an env spyder42 with Spyder 4.2.0: conda create -n spyder42 spyder=4.2.0 -c conda-forge

It still not working. Will it be solved?

It doesn't depend on us but in the Anaconda team, sorry.

This should be closed... it finally appears yesterday (2020-12-11).

Yes indeed it works for me too. Thanks to all for the help.

still unable to upgrade.

still unable to upgrade.

Hi @NaderNazemi seems like the issue in your case is an inconsistency being generated do the packages you have in your env. That could be related with #14548 . As suggestion, if you want to check Spyder 4.2.x, is to create a new env and install there Spyder 4.2.0 (running something like this from the Anaconda Prompt should create the new env: conda create -n spyder42 spyder=4.2.0

Hi @NaderNazemi seems like the issue in your case is an inconsistency being generated do the packages you have in your env. That could be related with #14548 . As suggestion, if you want to check Spyder 4.2.x, is to create a new env and install there Spyder 4.2.0 (running something like this from the Anaconda Prompt should create the new env: conda create -n spyder42 spyder=4.2.0

authors: Dan-Patterson JanWaldhorn NaderNazemi ccordoba12 dalthviz dcasasor-purdue luismiguells rlloretb wenjingsu16


text:
when I am using input()

Description
What steps will reproduce the problem?

when I am using input()
myName= input()
print(myName)
Traceback
Traceback (most recent call last):
  File "C:\Users\mahmo\anaconda3\lib\site-packages\qtconsole\base_frontend_mixin.py", line 138, in _dispatch
    handler(msg)
  File "C:\Users\mahmo\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 278, in _handle_input_request
    return super(DebuggingWidget, self)._handle_input_request(msg)
  File "C:\Users\mahmo\anaconda3\lib\site-packages\qtconsole\frontend_widget.py", line 512, in _handle_input_request
    self._readline(msg['content']['prompt'], callback=callback, password=msg['content']['password'])
  File "C:\Users\mahmo\anaconda3\lib\site-packages\qtconsole\console_widget.py", line 2422, in _readline
    self._show_prompt(prompt, newline=False, separator=False)
TypeError: _show_prompt() got an unexpected keyword argument 'separator'

Versions

Spyder version: 5.1.5
Python version: 3.9.12
Qt version: 5.9.7
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies

# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  2.0.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  8.2.0 (OK)
jedi >=0.17.2;<0.19.0         :  0.18.1 (OK)
jsonschema >=3.2.0            :  4.4.0 (OK)
keyring >=17.0.0              :  23.4.0 (OK)
nbconvert >=4.0               :  6.4.4 (OK)
numpydoc >=0.6.0              :  1.2 (OK)
paramiko >=2.4.0              :  2.8.1 (OK)
parso >=0.7.0;<0.9.0          :  0.8.3 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.11.2 (OK)
pylint >=2.5.0;<2.10.0        :  2.9.6 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.2.2;<1.3.0          :  1.2.4 (OK)
pylsp_black >=1.0.0           :  None (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=1.0.2             :  1.0.3 (OK)
qtconsole >=5.1.0             :  5.3.0 (OK)
qtpy >=1.5.0                  :  2.0.1 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=49.6.0           :  61.2.0 (OK)
sphinx >=0.6.6                :  4.4.0 (OK)
spyder_kernels >=2.1.1;<2.2.0 :  2.1.3 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.6 (OK)
zmq >=17                      :  22.3.0 (OK)

# Optional:
cython >=0.21                 :  0.29.28 (OK)
matplotlib >=2.0.0            :  3.5.1 (OK)
numpy >=1.7                   :  1.21.5 (OK)
pandas >=1.1.1                :  1.4.2 (OK)
scipy >=0.17.0                :  1.7.3 (OK)
sympy >=0.7.3                 :  1.10.1 (OK)

Hey @<>, thanks for reporting. This error is already fixed in our latest version (5.0.3).
Since it's still not available in Anaconda, you have two options:

Use our Windows installer, which you can find here.

Create a new environment with conda-forge packages. For that, please close Spyder, open the Anaconda Prompt and run the following commands there:
 conda create -n spyder-cf -c conda-forge spyder
 conda activate spyder-cf
 spyder

worked, thanks


text:
Spyder modifies VIRTUAL_ENV environment variable

Problem Description
Spyder updates the VIRTUAL_ENV environment variable. See: https://github.com/spyder-ide/spyder/blob/0b549f0f3c5af20de9db28ec6f580580ee13d122/spyder/plugins/ipythonconsole/utils/kernelspec.py#L173
This causes problems for package that rely on the VIRTUAL_ENV environment variable to detect whether they are running in a virtual environment. See https://github.com/pyqtgraph/pyqtgraph/pull/2566.
What is the reason spyder removes the VIRTUAL_ENV variable? Perhaps when a custom interpreter is set (different from the one executing spyder).
Could we instead of removing the  VIRTUAL_ENV set it with the correct value of the virtual env location? (not sure this information is available at that time)
@ccordoba12
What steps reproduce the problem?

Create a virtual environment
Install and start spyder
In the console window: import os; print(os.environ.get("VIRTUAL_ENV")). The output is None

What is the expected output? What do you see instead?
Output should be the location of the virtual env.

Hi @eendebakpt thank you for the feedback and sorry for the late response! Checking seems like your guess is correct. I think the VIRTUAL_ENV env variable removal was done to prevent errors when setting an external interpreter to start the kernel. See: https://github.com/spyder-ide/spyder/commit/e9a5574f236926b817184e878de17b8c53170b46
I think at that point in the code we have the path for the external interpreter to be used, so I guess we could try to calculate the environment location? What so you think @ccordoba12 ?

authors: dalthviz eendebakpt


text:
Message without translation in the tour

Issue Report Checklist

[ x] Searched the issues page for similar reports
[ ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
In the tour in Spanish there is a message that is not translated:
Is defined in spyder/plugins/tours.py
BUTTON_TEXT = ("Please click on the button below to run some simple "
               "code in this console. This will be useful to show "
               "you other important features.")

My proposed translation would be
"Por favor haz click en el botón más abajo para ejecutar algún código sencillo en
esta consola. Esto será útil para mostarte otras características importantes."
I know this should be added to spyder/locale/es/LC_MESSAGES/spyder.po, but
I didn't manage to make it work. So I submit this issue so that someone else can
help.
It is important to fix this, since this message can be annoying for new users that
do not speak English, and gives the impression of an unpolished product.
It would be useful if you add some instructions on translations to
CONTRIBUTING.md
What steps reproduce the problem?
I'm using  Debian GNU/Linux with the following locale
LANG=es_AR.UTF-8
LANGUAGE=
LC_CTYPE="es_AR.UTF-8"
LC_NUMERIC="es_AR.UTF-8"
LC_TIME="es_AR.UTF-8"
LC_COLLATE="es_AR.UTF-8"
LC_MONETARY="es_AR.UTF-8"
LC_MESSAGES="es_AR.UTF-8"
LC_PAPER="es_AR.UTF-8"
LC_NAME="es_AR.UTF-8"
LC_ADDRESS="es_AR.UTF-8"
LC_TELEPHONE="es_AR.UTF-8"
LC_MEASUREMENT="es_AR.UTF-8"
LC_IDENTIFICATION="es_AR.UTF-8"
LC_ALL=
Set this locale and open the tour in spyder.

Hey @pdenapo, thanks for reporting. You're right about this: we missed to add the string corresponding to the BUTTON_TEXT variable for translation, and that's why it's not translated in Spanish nor in any of other languages we support.
We'll fix this omission in Spyder 6 and we'll be sure to add your translation too.


text:
Finish LSP integration

[ ] Add new requirements to setup.py and Readme (ping CAM about docs too) -> @ccordoba12
[ ] Remove Jedi and Rope from our dependencies and add new ones -> @ccordoba12
[ ] Remove old architecture -> @ccordoba12
[ ] Migrate tests to the new architecture -> @ccordoba12
[ ] Implement/add missing features from LSP -> @andfoy
[ ] Make code completion work on the fly -> @andfoy
[ ] Reorganize or remove LSP preferences page -> @ccordoba12
[ ] Add tests for new features -> @andfoy
[ ] Remove coloredlogs -> @ccordoba12
[ ] Completion is not working in untitled files -> @andfoy
[ ] Rope/Jedi race in pyls -> @andfoy
[ ] Add LSP diagonostics. -> @ccordoba12
[ ] Hint placed on cursor and not mouse -> @andfoy

@andfoy, please don't start to work on this. I'll merge split-plugins first and then we can continue with this.
Also, please make a separate PR for each new feature you add and add new things that need to be done here.

@andfoy, I merged split-plugins last night, so you can start working in your assigned tasks now.

We decided with @andfoy that some LSP features will be implemented for beta2 and the rest in beta3.

hi all. In current master, I fail to make code completion working on the left editor screen. Is it normal ?

Yes, it is. We need to fix some things for Windows yet.


text:
PR: Rename copy line and duplicate line shortcuts

Description of Changes

Issue(s) Resolved
Fixes #11092
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct: Jean-Sébastien Gosselin

Could Issue https://github.com/spyder-ide/spyder/issues/2905 be taken care here also?

This is a great change! I would suggest "duplicate above and below" as duplicate means copy and then paste which is what is happening here.

This is a great change! I would suggest "duplicate above and below" as duplicate means copy and then paste which is what is happening here.

I agree with you.
@ccordoba12 @goanpeca Since the changes I'm proposing here are based on what is done in vscode, are you ok if I replace 'copy' by 'duplicate'?

I agree!

+1 from me too.

authors: bcolsen ccordoba12 goanpeca jnsebgosselin


text:
PR: Add new "Plotting library" option, defaulting to Matplotlib (Variable Explorer)

Description of Changes
Added new option "Plotting library" to Variable Explorer plugin:

This allows to choose one of the compatible libraries (currently: matplotlib or guiqwt) for plotting data from the Variable Explorer. Until this PR, default plotting library was guiqwt (if installed) or matplotlib (if guiqwt was not found). This option works for the %varexp magic command (i.e. within currently running IPython kernel) and for nested arrays (i.e. within Spyder main process).
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

Note: I'm marking this for Spyder 6 because it requires changes both in the kernel and Spyder to work. Those kind of changes are released on minor or major versions (e.g. 5.5.0 or 6.0.0), but the core team decided that we're not going to have more minor versions to try to release Spyder 6 sooner.


text:
PR: Add spyder-line-profiler, spyder-notebook, and spyder-unittest plugins to conda-based installer

Issue(s) Resolved

Fixes #21490

@ccordoba12 @jitseniesen, Any ideas on how to make these plugins disabled by default?


text:
PR: Correct indentation folding cases

Description of Changes

[ ] Wrote at least one-line docstrings (for any new functions)
[ ] Added unit test(s) covering the changes (if testable)

[x] Included a screenshot or animation (if affecting the UI, see Licecap)

Add cases for the identation folding using a regular expression
Issue(s) Resolved

Fixes #9434
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: steff456

Hello @steff456! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file spyder/plugins/editor/api/folding.py:

Line 32:69: W291 trailing whitespace


text:
[Bug] Copy-DbaLogin example should be added for LoginRenameHashtable

Report
An example is needed in Copy-DbaLogin to show how you can use the parameter -LoginRenameHashtable

Hey @wsmelton
There is an example for the rename, but just one login? Did you want this expanded?
https://github.com/sqlcollaborative/dbatools/blob/development/functions/Copy-DbaLogin.ps1#L116

Yeah, didn't catch seeing it there. Be good to show that with splatting to draw attention to it as well :wink:

Added some splatting ;)

authors: jpomfret wsmelton

repo: sqlcollaborative/dbatools


text:
Possible bug, or improvement in Get-DbaUserPermission

Hi guys good afternoon
I've run this particular script against a server of a client where all the databases have the first character of the name a number as example 4PEOPLE. This script basically ignores all the databases on that server.
Example:
Get-DbaUserPermission -SqlInstance SQLDEV -Database 4PEOPLE -ExcludeSystemDatabase | Out-GridView

What does it mean "ignores"...please provide requested details if you consider this a bug.
All that command does is execute this script: https://github.com/sqlcollaborative/dbatools/blob/development/bin/stig.sql

I know the script stig.sql, ignores means it doesn't do nothing, empty output/result set.
I've tested in my local machine that has multiple databases and i've created a new one with name 4Test and it scans all the other db's except that one.

Just provided a fix for that...

authors: WizardDBA andreasjordan wsmelton


text:
Support Simple Data Protection by Clearing Table Content or Column Content

Summary of new feature
The functions "New-DbaDbMaskingConfig" and "Invoke-DbaDbDataMasking" are great to protect user data. But I don't find a way to simply clear (update / set value NULL) the content of column or hole table.
It would be more flexible if the value could be Null or a fixed value which could be defined by parameter.
Proposed technical details (if applicable)
UPDATE table_name
SET column1 = 'NULL', column2 = value2, ...
WHERE condition;
Latest version of dbatools as of writing
Tested / Read Version 1.0.99 an 1.0.144

If we're going to implement this, using the UPDATE statement like proposed is going to a RBAR process which would not be good for the performance.
It would be better to do this set based for the entire column in one go.
The "Actions" in the data masking work set based changing values for an entire column.
Maybe add another functions to actions like this:
{
    "Name": "AdventureWorks2017",
    "Type": "DataMaskingConfiguration",
    "Tables": [
        {
            "Name": "AWBuildVersion",
            "Schema": "dbo",
            "Columns": [
                {
                    "Name": "Database Version",
                    "ColumnType": "nvarchar",
                    "CharacterString": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
                    "MinValue": 12,
                    "MaxValue": 25,
                    "MaskingType": "Random",
                    "SubType": "String2",
                    "Format": null,
                    "Deterministic": false,
                    "Nullable": false,
                    "KeepNull": true,
                    "Composite": null,
                    "Action": {
                        "Category": "Column",
                        "Type": "Nullify"
                    }
                }
            ]
        }
    ]
}

This could also make it possible to set a certain value which can remove the static value from the row by row updates.

authors: headspeak sanderstad


text:
Fix capitalisation of sqlcredential to SqlCredential

Type of Change

[X] Bug fix (non-breaking change, fixes # )
[ ] New feature (non-breaking change, adds functionality, fixes # )
[ ] Breaking change (effects multiple commands or functionality, fixes # )
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose
Noticed some missing capital letters on SqlCredential - updated all
Approach
Used VScode to look for case sensitive 'sqlcredential'

sweet, thanks for this! 💯

authors: jpomfret potatoqualitee


text:
New command: Remove-DbaDbTable

Type of Change

[ ] Bug fix (non-breaking change, fixes # )
[x] New feature (non-breaking change, adds functionality, fixes #8051 )
[ ] Breaking change (effects multiple commands or functionality, fixes # )
[ ] Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Unit test is included
[ ] Documentation
[ ] Build system

This is more or less a copy of Remove-DbaDbView

lol awesome!!! thank you 🙇🏼 🙇🏼 🙇🏼 🙇🏼 🙇🏼

added to book 🥳

Thanks again!

authors: andreasjordan potatoqualitee


text:
In version 0.32.0 all radio buttons are checked

Introduction
If you use radio buttons in version 0.32.0 alle buttons are marked as checked. So the last one wins
In version 0.31.0 it behaves correctly.
To Reproduce
List of steps to reproduce the behavior. Include the sql file you are using and the eventual relevant parts of your database schema
SELECT
        'form'          as component,
        'POST'          as method;

SELECT
        'priority'      as name,
        'None'          as label,
        'radio'         as type,
        'None'          as value,
        2               as width,
        TRUE            as checked;
SELECT
        'priority'      as name,
        'Low'           as label,
        'radio'         as type,
        2               as width,
        'Low'           as value,
        FALSE           as checked;
SELECT
        'priority'      as name,
        'Medium'        as label,
        'radio'         as type,
        2               as width,
        'Medium'        as value,
        FALSE           as checked;
SELECT
        'priority'      as name,
        'High'          as label,
        'radio'         as type,
        2               as width,
        'High'          as value,
        FALSE           as checked;

SELECT
        'debug'         as component;
SELECT
        "key",
        "value"
FROM
        json_each(sqlpage.variables('post'));
SELECT
        "version" as key,
        sqlpage.version() as value;

-- END
![v31](https://github.com/user-attachments/assets/49ddc2ca-7970-42f8-9011-22b65ca0bb3c)
![v32](https://github.com/user-attachments/assets/9b205060-3953-4cc6-9d62-e803310ef7e1)
![html_source](https://github.com/user-attachments/assets/02b8b76a-0bb9-47d8-a3b7-aa2691f44f7c)

Actual behavior
After following these steps, what happened ?
If you saw an error on the command line or inside your page, then paste it here
your error message here

Screenshots
If applicable, add screenshots to help explain your problem.
Expected behavior
A clear and concise description of what you expected to happen.
Version information

OS:
Database [e.g. SQLite, Postgres]
SQLPage Version [found when hovering the default footer of pages]:

Additional context
Add any other context about the problem here.

Thank you very much for the quick report. I'll make a release with a fix ASAP.

repo: sqlpage/SQLPage


text:
Add the ability to forwardport a change

Occasionally I do work on a non-master branch and want to forwardport a PR to the master branch, however, even if I manually specify the SHA and branch:
~/es/elasticsearch (git) 0f312c8b  7.x [origin/7.x] (2 stashed)
» backport --sha 0f312c8b381fe19b69964f1ef677c9c46ed844b7 --branch master
✖ Loading commit "0f312c8b"
No commit found on master with sha "0f312c8b381fe19b69964f1ef677c9c46ed844b7"

It appears to look for the sha on the master branch instead of 7.x.
It'd be great to be able to forwardport though!

Hey!
This is already possible - but not very well documented, and it should probably work as you suggest.
By using the [sourceBranch](https://github.com/sqren/backport/blob/master/docs/configuration.md#sourcebranch) argument, you can specify to pick commits from a non-master branch:
The following will list commits on 7.x and backport the selected commit to master:
backport --sourceBranch 7.x --branch master

The following currently doesn't work, but I'll look into fixing it:
backport --sourceBranch 7.x --branch master --sha 0f312c8b381fe19b69964f1ef677c9c46ed844b7

authors: dakrone sqren

repo: sqren/backport


text:
MockWebServer timeout issues

MockWebServer timeout issue
Since I have upgraded from 3.2.0 to 3.3.1, our CI has timed out while using the MockWebServer.
Code:
The test case is similar to: https://github.com/JakeWharton/retrofit1-okhttp3-client/blob/master/src/test/java/com/jakewharton/retrofit/Ok3ClientIntegrationTest.java#L23.
public final class ServiceTest {

    @Rule public final MockWebServer server = new MockWebServer();
    protected String mockEndPoint;

    @Before
    public void setUp() throws Exception {
        mockEndPoint = server.url("/").toString();
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void testAcquireToken() {
        // Response
        final String mockResponse = "{\n" +
                "  \"access_token\": \"" + TOKEN_VALID + "\",\n" +
                "  \"refresh_token\": \"" + TOKEN_VALID + "\",\n" +
                "  \"token_type\": \"bearer\",\n" +
                "  \"expires_in\": 3600,\n" +
                "  \"logout_token\": \"r0ZZSZDVbUma9sTz0ZXduwvic1V7RdSIZMe\\/ysHTY8s=\"\n" +
                "}";

        server.enqueue(new MockResponse()
                .setResponseCode(HttpURLConnection.HTTP_OK)
                .setBody(mockResponse));

        // Request
        final Map<String, String> formData = new HashMap<>();
        formData.put("grant_type", "password");
        formData.put("client_id", "fake-id");
        formData.put("client_secret", "fake-secret");
        formData.put("username", "user EMAIL");
        formData.put("password", "user PASSWORD");

        final TokenResponse response = Service.getInstance(mockEndPoint)
                .acquireToken(formData)
                .toBlocking()
                .first();

        assertThat(response.getAccessToken()).isEqualTo("valid");
    }
}

Error:
19:44:09 <>Test > testAcquireToken STANDARD_ERROR
19:44:09     Jun 10, 2016 12:45:41 PM okhttp3.mockwebserver.MockWebServer$3 execute
19:44:09     INFO: MockWebServer[63326] starting to accept connections
19:44:09     Jun 10, 2016 12:45:41 PM okhttp3.mockwebserver.MockWebServer$4 processOneRequest
19:44:09     INFO: MockWebServer[63326] received request: POST /auth/v1/token HTTP/1.1 and responded: HTTP/1.1 200 OK
19:44:09     Jun 10, 2016 12:45:41 PM okhttp3.mockwebserver.MockWebServer$3 acceptConnections
19:44:09     INFO: MockWebServer[63326] done accepting connections: Socket closed
20:09:59 Build timed out (after 30 minutes). Marking the build as failed.

After playing with the dependencies, it seems that rolling back Robolectric to 3.1-rc1 from 3.1 seems to work fine:
    testCompile "org.robolectric:shadows-play-services:3.1-rc1"                         // Slowing down tests
    testCompile "org.robolectric:shadows-support-v4:3.1-rc1"                            // Slowing down tests

Awww, that’s awkward. We’ve seen other problems with Robolectric, mostly around how OkHttp attempts to detect which platform it’s running on. Robolectric makes that very difficult because it looks like Android and the JVM simultaneously.

If you can figure out what we need to do to interop better with Robolectric, please send a pull request. I’m not a Robolectric user so I find that to be difficult!

@swankjesse I understand. Thanks for reading the issue. I ended up rolling back robolectric. I am starting to look into separating my tests from robolectric and looking into ui tests as well.

@swankjesse i also face similar issue. i am not sure what happened. do you know how to solve that?

authors: jaredsburrows radityagumay swankjesse

repo: square/okhttp


text:
Added inline specifier to str function

Added inline specifier to std::string str(std::ostream &(*manip)(std::ostream &)) so there is no odr violation when ANSI.hpp is included in multiple translation units.

Thanks for pull request 😄

Thanks for the pull request 😄

authors: MiroPalmu srilakshmikanthanp

repo: srilakshmikanthanp/ANSI


text:
Check github organization membership

Possible solution for #10
I extracted the method authorize(PluginSettings, User) to the Provider interface, moved the regex username validation to GoogleProvider and implemented the the GitHubProvider checking if the user is a member of the the organization.
One last thing, I was receiving a 500 error when the plugin returns 401, so I'm using a trick to not call authenticateUser and redirect to home.

thanks for this :+1:

authors: davidpaniz srinivasupadhya

repo: srinivasupadhya/gocd-oauth-login


text:
✨ feat: custom code support

Description
This PR

adds an optional customCode parameter to createLink which adds custom link support.
adds errors.ts for better error handling and error messages
includes customCode in createLinkSchema
updates shortCode schema in GET_LINK

Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

How Has This Been Tested?

[x] Webhook POST has been tested with Postman
[x] The created links were accessed

RegEx for customCode
Valid customCodes:

aCustomCode
another_custom_code
multiverse-of-iot-2022
customcode2
2022feedback

Invalid customCodes:

_invalidCustomCode
2022
another-invalid-code?
custom code
yet@nother_invalid_code
2023?
hi

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Merging!

authors: shawshankkumar sm-sami


text:
🛑 NZBGet is down

In d2781e1, NZBGet (https://nzbget.srueg.ch/ping) was down:

HTTP code: 503
Response time: 472 ms

Resolved: NZBGet is back up in cc1fe40.

repo: srueg/upptime


text:
serving on localhost:5000 not working

Windows system running Docker isn't serving on localhost:5000 as commited here 4a600f68c3b994a6ab6855c68e0abbc05f9dccd3 - not sure if this is actively in development or not

Running docker-compose up --build should serve:

the user-facing website at http://localhost/
the server REST API at http://localhost:5000

this should display a Not Found page if you go to this url in a browser
but e.g. http://localhost:5000/remaining should return the remaining samples this week
and http://localhost:5000/admin/allsamples should return an authorization error

If this isn't the case would you mind pasting the output of running the above docker-compose command here? (I haven't tried using this on windows)

thanks for the clarification, this works


text:
xadmin安装出现问题！

这是我的第三方包的安装，
出现了下图问题，不知道怎么解决？

我的python 3.5

Show us installed_apps from your settings.py

repo: sshwsfc/xadmin


text:
自动安装在7.0存在FileUriExposedException异常

在7.0系统下需使用FileProvider来处理文件路径问题

没有适配android N吧

7.0你自己可以处理啊， 我已经提供了接口可以拿到下载的文件：
File file = mRxDownload.getRealFiles(saveName, defaultPath)[0];
需要你自己提供provider。

@ssseasonnn 恩恩，是的。下载完成后自己处理了安装

@showdy 恩恩，按照Android N的要求，若要在应用间共享文件，需发送一项 content://URI，并授予 URI 临时访问权限。

authors: Ariescorpio showdy ssseasonnn

repo: ssseasonnn/RxDownload


text:
Blog routes export

Main fix: Blog routes cannot be exported
Other changes:

Update next.config.js
Move blog.js to blog/index.js for better organization
Remove header nav and footer (it's already in the global layout)

Looks good on my end!


text:
Deployment to CloudFlare StaticSite Fails with Resolved credential object is not valid

I keep getting this error with the Cloudflare provider. I set the providers.cloudflare.apiToken but had the same error.
sst dev --verbose
time=2024-03-11T13:44:44.688-04:00 level=INFO msg=plugins files="[d resource-aws-v6.10.0/ - resource-aws-v6.10.0.lock d resource-cloudflare-v5.22.0/ - resource-cloudflare-v5.22.0.lock]"
time=2024-03-11T13:44:44.692-04:00 level=INFO msg="no existing server found, starting new one"
time=2024-03-11T13:44:44.695-04:00 level=INFO msg="waiting for server to start"
SST ❍ ion 0.0.133  ready!

➜  App:        appname
   Stage:      cody

~  Deploying

(node:58827) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
|  Creating    sst:cloudflare:StaticSite → pulumi-nodejs:dynamic:Resource → WwwAssetFiles
|  Error       sst:cloudflare:StaticSite → pulumi-nodejs:dynamic:Resource → WwwAssetFiles
|  Resolved credential object is not valid
|  ADD THIS ERROR HERE https://www.notion.so/sst-dev/Flaky-errors-2a51e5e471f745ee9d0b8d69c5b4f8c8?pvs=4

❌ Failed
   sst:cloudflare:StaticSite → pulumi-nodejs:dynamic:Resource → WwwAssetFiles
   Resolved credential object is not valid
   ADD THIS ERROR HERE https://www.notion.so/sst-dev/Flaky-errors-2a51e5e471f745ee9d0b8d69c5b4f8c8?pvs=4

with this sst.config.ts :
export default $config({
  app(input) {
    return {
      name: "appname",
      removalPolicy: input?.stage === "production" ? "retain" : "remove",
      providers: {
        cloudflare: {
          accountId: "...redacted...",
        },
        aws: {
          profile: input?.stage === "production" ? "production" : "development",
        },
      },
    };
  },
  async run() {
    new sst.cloudflare.StaticSite("Www", {
      path: "packages/www",
    });
  },
});

I have the CLOUDFLARE_API_TOKEN env var set and valid AWS credentials.

Discord Link

@claughinghouse Currently, StaticSite uses R2 bucket to store assets. You'd need to create an R2 token via the R2 Console > Manage R2 tokens. That token will give you an ACCESS KEY and SECRET KEY. And then pass those in via environment variable. ie.
CLOUDFLARE_R2_ACCESS_KEY_ID=xxxxxx CLOUDFLARE_R2_SECRET_ACCESS_KEY=yyyyyy

That said, I'm making a change to StaticSite to use RV for storing assets. So in the next version, it won't use R2, and you won't need this token. Just the API Token would be enough.

Same results after upgrading to v0.0.135 and logging into both AWS SSO and runningpnpm wrangler d1 list returns a list of my DBs. Wrangler returns a message that indicates that is picked up the environment variable apiToken:
sst dev --verbose
time=2024-03-11T14:21:43.499-04:00 level=INFO msg=plugins files="[d resource-aws-v6.10.0/ - resource-aws-v6.10.0.lock d resource-cloudflare-v5.22.0/ - resource-cloudflare-v5.22.0.lock]"
time=2024-03-11T14:21:43.501-04:00 level=INFO msg="no existing server found, starting new one"
time=2024-03-11T14:21:43.505-04:00 level=INFO msg="waiting for server to start"
SST ❍ ion 0.0.135  ready!

➜  App:        appname
   Stage:      cody

~  Deploying

(node:65562) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
|  Creating    sst:cloudflare:StaticSite → pulumi-nodejs:dynamic:Resource → WwwAssetFiles
|  Error       sst:cloudflare:StaticSite → pulumi-nodejs:dynamic:Resource → WwwAssetFiles
|  Resolved credential object is not valid

❌ Failed
   sst:cloudflare:StaticSite → pulumi-nodejs:dynamic:Resource → WwwAssetFiles
   Resolved credential object is not valid

@claughinghouse Currently, StaticSite uses R2 bucket to store assets. You'd need to create an R2 token via the R2 Console > Manage R2 tokens. That token will give you an ACCESS KEY and SECRET KEY. And then pass those in via environment variable. ie.
CLOUDFLARE_R2_ACCESS_KEY_ID=xxxxxx CLOUDFLARE_R2_SECRET_ACCESS_KEY=yyyyyy

That said, I'm making a change to StaticSite to use RV for storing assets. So in the next version, it won't use R2, and you won't need this token. Just the API Token would be enough.

I will give it ta try. I posted my update above right as you had posted the info about R2. Thank you and I will report back shortly!

@claughinghouse Currently, StaticSite uses R2 bucket to store assets. You'd need to create an R2 token via the R2 Console > Manage R2 tokens. That token will give you an ACCESS KEY and SECRET KEY. And then pass those in via environment variable. ie.
CLOUDFLARE_R2_ACCESS_KEY_ID=xxxxxx CLOUDFLARE_R2_SECRET_ACCESS_KEY=yyyyyy

That said, I'm making a change to StaticSite to use RV for storing assets. So in the next version, it won't use R2, and you won't need this token. Just the API Token would be enough.

This did the trick. I will close the issue pending the next version you listed. Thank you @fwang!

@claughinghouse Just released 0.137. Swapped out R2 with KV. No need for the R2 tokens.
If you run into the "The bucket you tried to delete is not empty" error when deploying, go to ur R2 dashboard and delete all files in it, then run deploy again.

authors: claughinghouse fwang

repo: sst/ion


text:
SSM Parameters Reset

When we recently updated from version 0.49.2 to 0.54.4 all our SSM parameters were reset to their original values.
It is okay in most cases, but some parameters were updated "out of band" and needed to be manually reset afterward.
Is this expected behavior? I don't believe we experienced this before so we would like to understand what caused it and how we can guard against it in the future.
Thank you

Hi @robosung, thanks for bringing this up. Can I see how the SSM parameters are created in ur app? And how are the values updated usually, through AWS Console?

Hi @fwang, I apologize for the delayed response.
The SSM parameter is created like so:
    new ssm.StringParameter(this, "this-is-my-parameter", {
      stringValue: "CHANGEME",
      parameterName: "this-is-my-parameter",
    });

Thanks @robosung. And are they updated manually through the AWS SSM Console?

Hey @robosung typically with IaC tools all changes should be done through code.  If you make changes in the console there is "drift" and things maybe be set back to the IaC determined value at any time

@fwang Yes, it's done manually, usually via console.
@thdxr Yes, that's what we try to do most of the time, but because it's CDK, it doesn't work for things provisioned outside of AWS, like webhook URLs, API keys, etc.  It would be great if there is a recommendation for a better approach?
Thank you

I see. Is there any specific reason why you are not creating the SSM parameter in the console to begin with?

The main reason is that if they were solely created through ClickOps, it's not clear that it's required with provisioning the application. It also allows us to establish references and linkage to the parameters/secrets in code, as part of IaC.
I know it's a little arbitrary since we decided to document the need to update the parameters instead of documenting the need to create the parameters.

We are transition this repo to https://github.com/sst/v2 and are closing this issue for now. If it is still relevant please reopen it there - sorry for the trouble

authors: fwang robosung thdxr

repo: sst/sst


text:
rest-social-auth is missing in requirements files

It's required to run the example project and it's not getting added when installing the requirements (tried them all).

Hi @ovidiuc
Can you say, how do you run the example project?
I recommend to use make command - this is a single command that should start the example project, check readme.
For the example project, the idea is that rest_social_auth dependency will be taken from your cloned repository, not from pypi.

Ah, I see.
I couldn't use make in my convoluted setup anyway, as it would require to run it on Windows. There are options I see, but overkill for me wanting to just check out the example project.
I have a Debian virtual machine for development, but requires to be NAT for the rest of my setup so the IP used in the browser wouldn't be 127.0.0.1, as I see is required, but my VMs IP.
So I've just git cloned the project, made a virtualenv for it, installed all the requirements from the requirements files and tried to migrate. Got the error of missing package and installed it manually.
Apologies for not fully reading the instructions, if it works with make/docker, than this is only an issue for those that can't use it.

If you want to run the project in native environment (not in Docker) and you have make util, just run this:
make native-run-example

If you don't have the make util, use this command (copy-pasting it from Makefile):
PYTHONPATH='.' python example_project/manage.py runsslserver 0.0.0.0:$(PORT)

Probably I better add instructions above ^ to the README

Yes, that wasn't a problem for me, since I'm using runsslserver in my own project, so I know the command. Just the missing package was the issue.
I ran the example project fine for myself after installing it manually, I've just opened the issue in case others have the same problem.
Out of curiosity, I've tried running the make file with Docker, as per README, on a Debian Buster machine and got the following error at the end of the process:
Docker version 19.03.6
GNU Make 4.2.1
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '//django_rest_social_auth/venv/lib/python3.7/site-packages/pytz-2019.3.dist-info'
Consider using the '--user' option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
make: *** [Makefile:45: .install] Error 1
make[1]: *** [Makefile:22: run] Error 2

I've added locally --user option to the pip install commands in Makefile and now it dies with this error:
PYTHONPATH='.' python example_project/manage.py migrate
Traceback (most recent call last):
  File "example_project/manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
make: *** [Makefile:61: native-migrate] Error 1
make[1]: *** [Makefile:22: run] Error 2

Since I already got it working in my own environment, this is not an issue for me, but might be for others trying to use the Docker image. But it seems to be a problem other than the one in the title.


text:
Get serverless local working with dockerized Elasticsearch instance

Create a docker-compose for elasticsearch.
Make sure local api can see the elasticsearch.

@seanmurph You mentioned getting a local instance working for development.  Did you have any instructions for that? Can I use an docker container with elasticsearch for that?

@seanmurph You mentioned getting a local instance working for development. Did you have any instructions for that? Can I use an docker container with elasticsearch for that?

I do have some instructions! I'd like to find a way to commit offline support without mudding up the repo. The only part of my support for that I was hesitant to commit was:

When I run offline, it doesn't use the artifact line and instead needed the whole path in the handler. I wasn't sure if I commit this it'd break anything.

When I ran mine I used an ElasticSearch instance I found deployed inside the dev environment:
    ES_HOST: search-sat-api-dev-es6-jrjfioir2m54xolm2oznqhyz54.us-west-2.es.amazonaws.com

But you can definitely run one locally as well. I didn't do that because I didn't know how to ingest any data into it.

The other work I have for offline is similar to our other private components which provides a way to pull a MFA token on app start, cache it to a local session file, and set those credentials with AWS which happens during connect() { inside of the es.js file.

I think this is safe to close, as we will have other issues for this. There isn't an explicit need to use serverless-offline, also if we go with CDK, using localstack might work for both CDK and sls deployment.

authors: PeteShepley demiurg matthewhanson seanmurph

repo: stac-utils/stac-server


text:
Repeated failure to correct CSS layout to display navigation button fully

Describe the bug
despite repeated attempts at adjustment of position and spacing in the header area

(up to 8 so far), the layout of the user's view of the src/pages/CoursePage.tsx continues to display the topnav button "Back to Dashboard" almost completely and illegibly off the top of the Preview.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-spm9dm
Steps to reproduce
Ask the agent to correct the position of the topnav Back to Dashboard button, and see multiple attempts at modifying the src/pages/CoursePage.tsx results in no change to the position of the button.
Expected behavior
when I specify a standard authentication workflow sequence, and the agent attempts to correct a failure in something that should be rock-solid, the result should be a functioning registration-to-login UI sequence.
Screen Recording / Screenshot

Platform
Browser name = Chrome
Full version = 130.0.0.0
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 136514409,
  "usedJSHeapSize": 115834533,
  "jsHeapSizeLimit": 4294705152
}
Username = andyhalliday
Chat ID = 7b9fdac7f517

Additional context

previously, patient coaxing of the Agent will eventually find a workaround that fixes UI problems, but in this case, I can't get a simple layout fix completed. Also, earlier today I did a runaround with the Agent trying to get it to fix a redirect issue to the login screen from registration.

see src/pages/Register.tsx.  Successful registration does not return the user to anything but a black page with no login. Despite repeated efforts declaring fixes to this issue, a newly registered user is lost in the application view, with no place to log in. See thread to agent below:
"same issue, blank black page on clicking email confirmation. What is wrong with your user authentication workflows? Can you escalate this to someone who can troubleshoot this? I have now used up so many admin codes creating new admin accounts, and almost two hours today. Do you need to rollback to when admin registration was working to understand what you have done to break registration? I am going to proceed on other issues, I will try to log in with one of the user accounts we created earlier while this redirect failure to present login UI from email confirmation began happening, but I can use the login here, maybe those earlier attempted accounts are valid registrations."

the comment in "Expected Behavior" applies to Issue number 2, the failure to redirect a new registration to the login page.


text:
I can't sign in now

Describe the bug
see

Link to the Bolt URL that caused the error
none
Validations

[X] Please make your project public or accessible by URL. This will allow anyone trying to help you to easily reproduce the issue and provide assistance.

Steps to reproduce
I can't sign in today.
Expected behavior
Signed in successfully
Screen Recording / Screenshot
none
Platform

OS: windows
Browser: edge
Version: 131.0.2903.99

Additional context
none

A fix was just implemented for this. Are you able to login now?

Yes, I am able to login now.

authors: XianWang-Lu endocytosis


text:
Imported Github project using NX does not start up in Europe

Describe the bug
Our open source project is built with NX, and we demo it using Stackblitz. We've been using this for several months and we did not have any issues with it, but recently an error started happening for our developers located in Europe. The strangest thing is that our developers in Africa can open the project in Stackblitz and it starts up without errors.
The project will not start up in Europe, because of the following error:
Error: The Daemon Server is not running
Messages from the log:

More information: /home/projects/qgniylalb.github/node_modules/.cache/nx/d/daemon.log
    at daemonProcessException (/home/projects/qgniylalb.github/node_modules/nx/src/daemon/client/client.js:66:16)
    at Socket.eval (/home/projects/qgniylalb.github/node_modules/nx/src/daemon/client/client.js:148:29)
    at EventEmitter.emit (https://qgniylalb--github.w.staticblitz.com/blitz.8628379add68b16c6c7b3320a61a65ef38aa83fd.js:6:155573)
    at emitErrorNT (https://qgniylalb--github.w.staticblitz.com/blitz.8628379add68b16c6c7b3320a61a65ef38aa83fd.js:6:367810)
    at emitErrorCloseNT (https://qgniylalb--github.w.staticblitz.com/blitz.8628379add68b16c6c7b3320a61a65ef38aa83fd.js:6:367457)
    at _0x2b9b99 (https://qgniylalb--github.w.staticblitz.com/blitz.8628379add68b16c6c7b3320a61a65ef38aa83fd.js:15:130586)
    at https://qgniylalb--github.w.staticblitz.com/blitz.8628379add68b16c6c7b3320a61a65ef38aa83fd.js:15:130343

First I started to investigate this error based on NX issues reported, but on local machines it works for everybody. Then I noticed the pattern that my colleagues in Africa can open the project without error, and my colleagues in Europe can't, that's why I report this here.
Link to the blitz that caused the error
https://stackblitz.com/github/thisdot/open-source?file=README.md&preset=node
Steps to reproduce

Open the link
Wait for npm install to finish and the start command to run

Expected behavior
The demo application should start up without errors. (In Europe)
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots
Screenshot of what happens to me (based in Europe)

Screenshot of what happens to my colleague (based in Africa):

Platform
Browser name  = Chrome
Full version  = 103.0.0.0
Major version = 103
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 108766020,
  "usedJSHeapSize": 105397156,
  "jsHeapSizeLimit": 4294705152
}
Hash = 8628379add68b16c6c7b3320a61a65ef38aa83fd

Additional context
My colleagues based in the US are not awake yet, so I cannot ask them to check, but this might be a regional issue somehow.
I believe the only difference is that in Africa the NX daemon is running, but in Europe it does not start up somehow.
Could there be possible restrictions that would prevent a webcontainer running something in the background? We recently updated to NX v14, and I can confirm that with the previous version it did work for me, although it was weeks ago when I checked it.
Update: my colleague tried it out with VPN and when he sets it to US, it works, but if he sets it to an EU country it stops working.

Update:
A few days later today (july 5) it started up for me in Europe, maybe this was a temporary thing? 🤔

Update:
No, today (july 6) I face the same issue again

Same here from UK on July 6th. The app does not work and the error is the same:

repo: stackblitz/webcontainer-core


text:
QR code scanner for withdraw

Is your feature request related to a problem? Please describe.
During an experiment of @Darth-Coin, some issues with the wallet were discovered. Most of them were handled in #503 but I believe one is still missing: to be able to pay QR code invoices with the SN wallet.
Describe the solution you'd like
Allow scanning of invoices with a QR code scanner.
Additional context
UX could be like this:

After clicking the camera icon, a camera view is opened and the user can scan a QR code. On successful scan, the invoice is entered into the text field and the camera view is closed.

Going to work on this now since I believe this is an essential feature and a good foundation for upcoming work on the wallet like #533 and #490 where QR codes might also need to be scanned.

Please also look into LN-auth QR code. Maybe is related.
I was reporting this foe weeks now.
If you try to login with Alby extension in a browser, just by clicking the QR code image, is getting an error. but if you copy and paste the lnbc... code into alby is working to login just fine.
It must be something with the link generated for the QR code.

Need to fix my Alby extension first. Reinstalling didn't help:

Created another ticket for this "login with Alby" issue: https://github.com/stackernews/stacker.news/issues/599

authors: Darth-Coin ekzyis


text:
Belatedly address several review comments of my earlier PRs

Summary
We merged PRs to avoid blocking other work while the PRs still had some comments pending. This PR addresses them.

Use named return values in parseArtifactName
Add unit tests for artifact property handling
Move WithSkipPrefixCheckTestOnly to tests

Change Type

[ ] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[x] Refactoring or test improvements (no bug fixes or new functionality)

Testing
make test
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[ ] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 53.133% (+0.3%) from 52.863%
when pulling 7343460f42a042eb23b1714a27a3e0670e7c1c5b on jhrozek:review_comments
into b49655540b16020faba699926343e8f683acb733 on stacklok:main.

authors: coveralls jhrozek

repo: stacklok/minder