Upgrade to SpringFox 2.9.0 causes failures in Spring Boot 2.0.2.RELEASE

After upgrading to SpringFox 2.9.0, we start getting this exception when we try to start Spring Boot:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\workspace-git2\cagateway\cagw-web\build\classes\java\main\com\entrust\adminservices\cagw\Swagger2SpringBoot.class]; nested exception is java.lang.IllegalStateException: Error processing condition on com.entrust.adminservices.cagw.Swagger2SpringBoot
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:454)
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:316)
	at org.springframework.boot.test.context.SpringBootConfigurationFinder.scanPackage(SpringBootConfigurationFinder.java:67)
	at org.springframework.boot.test.context.SpringBootConfigurationFinder.findFromPackage(SpringBootConfigurationFinder.java:59)
	at org.springframework.boot.test.context.SpringBootConfigurationFinder.findFromClass(SpringBootConfigurationFinder.java:52)
	at org.springframework.boot.test.context.SpringBootTestContextBootstrapper.getOrFindConfigurationClasses(SpringBootTestContextBootstrapper.java:239)
	at org.springframework.boot.test.context.SpringBootTestContextBootstrapper.processMergedContextConfiguration(SpringBootTestContextBootstrapper.java:153)
	at org.springframework.test.context.support.AbstractTestContextBootstrapper.buildMergedContextConfiguration(AbstractTestContextBootstrapper.java:395)
	at org.springframework.test.context.support.AbstractTestContextBootstrapper.buildDefaultMergedContextConfiguration(AbstractTestContextBootstrapper.java:312)
	at org.springframework.test.context.support.AbstractTestContextBootstrapper.buildMergedContextConfiguration(AbstractTestContextBootstrapper.java:265)
	at org.springframework.test.context.support.AbstractTestContextBootstrapper.buildTestContext(AbstractTestContextBootstrapper.java:108)
	at org.springframework.boot.test.context.SpringBootTestContextBootstrapper.buildTestContext(SpringBootTestContextBootstrapper.java:97)
	at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:139)
	at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:124)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTestContextManager(SpringJUnit4ClassRunner.java:151)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init>(SpringJUnit4ClassRunner.java:142)
	at org.springframework.test.context.junit4.SpringRunner.<init>(SpringRunner.java:49)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
	at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
	at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
	at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
	at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:88)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:59)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:39)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:66)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy1.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:146)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:128)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.IllegalStateException: Error processing condition on com.entrust.adminservices.cagw.Swagger2SpringBoot
	at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64)
	at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)
	at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:88)
	at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:71)
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isConditionMatch(ClassPathScanningCandidateComponentProvider.java:515)
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent(ClassPathScanningCandidateComponentProvider.java:498)
	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:431)
	... 56 more
Caused by: java.lang.IllegalStateException: No ConfigurableListableBeanFactory available
	at org.springframework.util.Assert.state(Assert.java:73)
	at org.springframework.context.annotation.ConditionEvaluator$ConditionContextImpl.getBeanFactory(ConditionEvaluator.java:206)
	at org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition.isServletWebApplication(OnWebApplicationCondition.java:100)
	at org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition.isWebApplication(OnWebApplicationCondition.java:75)
	at org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition.getMatchOutcome(OnWebApplicationCondition.java:53)
	at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)
	... 62 more

We are using:
Spring Boot 2.0.2.RELEASE
Spring Framework 5.0.6.RELEASE
Spring Security 5.0.5.RELEASE
Everything works fine with SpringFox 2.8.0.  It is only when we upgrade to 2.9.0 that we encounter problems.

Ok, this seems to only be happening with our test cases.  It seems we can get our Spring Boot app to start up.  It is just when it tries to start it as part of testing.

Looks like this (at least in part) caused by a regression in SpringBoot - some more details are here: https://github.com/spring-projects/spring-boot/issues/13226
The @EnableSwagger2 annotation has added a @ConditionalOnWebApplication annotation in 2.9, which exposes this bug.

@brendanhatton thanks for researching that! Saved me a good bit of time!

The problem in Spring Boot aside, I don't think it's a good idea for an @Enable… annotation to be @ConditionalOn….
I suspect that the intent is to make enabling SpringFox conditional on the application being a web application. What's actually happening is that the class which has been annotated with @EnableSwagger2 is conditional on the application being a web application. In other words, you are switching off both the user's configuration class and SpringFox when the application is not a web application. I'd recommend making Swagger2DocumentationConfiguration @ConditionalOnWebApplication instead.

Thanks @wilkinsona. That makes sense, its a little subtle and wouldn't have realized it; for that matter, even caught it without your input! Thanks for clarifying.
A bit of background ... the main reason that we added the conditional was because the EnableSwagger2 annotation which pulls in the springfox configuration, was causing problems in integration tests that did not need/have a web environment.
I think I understand your comment on moving it to Swagger2DocumentationConfiguration , but just to clarify how @Conditiona.. works; as it is currently setup, springfox will always be enabled only on web applications, so coincidentally this "misconfiguration" happens to work since it is always used in the context of a web application. Is that correct?

Thanks for the suggestion!  What I did was move the @EnableSwagger2 to the
Swagger2DocumentationConfiguration class and added
@ConditionalOnWebApplication to that class too as suggested.  And then the
tests started working.  Thank you very much.  I now understand the problem
much better.
On Fri, Jun 1, 2018 at 12:27 PM, Andy Wilkinson<EMAIL_ADDRESS>wrote:

The problem in Spring Boot aside, I don't think it's a good idea for an
@Enable… annotation to be @ConditionalOn….
I suspect that the intent is to make enabling SpringFox conditional on the
application being a web application. What's actually happening is that the
class which has been annotated with @EnableSwagger2 is conditional on the
application being a web application. In other words, you are switching off
both the user's configuration class and SpringFox when the application is
not a web application. I'd recommend making Swagger2DocumentationConfigura
tion @ConditionalOnWebApplication instead.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/springfox/springfox/issues/2438#issuecomment-393950896,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANUnf7YbqIWXokvslL-lYCR5hf2oZWE6ks5t4XlxgaJpZM4UK-h7
.

@james-bryant would you be up for submitting a PR?

Actually, I didn't change SpringFox code.  I just changed my code.  I have
a class named SwaggerDocumentationConfig actually. That's where I put the
Docket bean.  I had the @EnableSwagger2 on my main Spring Boot application
class.  I moved it to this other configuration class and added the
@ConditionalOnWebApplication.  Now when I execute test cases it properly
loads my main class and all the other config classes but ignores the
SwaggerDocumentationConfig class and therefore the @EnableSwagger2.
But, if you want, I can certainly look into fixing this in the actual code
and submitting a PR.  I just won't be able to do this right away.  We're at
the end of a release cycle.
On Fri, Jun 1, 2018 at 4:17 PM, Dilip Krishnan<EMAIL_ADDRESS>wrote:

@james-bryant https://github.com/james-bryant would you be up for
submitting a PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/springfox/springfox/issues/2438#issuecomment-394011557,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANUnf8Dh_JfrUeN9cOck2qsIOvfSeWGrks5t4a-FgaJpZM4UK-h7
.


1.9.x

Fixes issue with HMAC (issue 881)

Thanks. Can you please submit the same PR for the master?

sure i will

Thanks again


Make SESSION_REQUEST/TERM_GROUP_REQUEST hackable

cwd should be lazily evaluated to let plugins override it
This PR should replace #2774

Tested this out and works great :+1: thanks so much @chabou


Number of concurrent active session for user

Limit the number of concurrent sessions for system administrators or users who are working in sensitive domains. This configuration could be based on tenant, user store or role.
Original issue : https://wso2.org/jira/browse/IDENTITY-4191

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Add tests for backend projects

I am making a new issue to track the progress of this. Most of the backend projects have no tests; allowing any valid URL to be submitted to pass - more discussion here https://github.com/freeCodeCamp/freeCodeCamp/issues/36467
The purpose of creating tests here is simply to have something there, even if it's just one test, to make sure you can't just submit any random URL. Ideally, the tests would be thorough; but just one would do good enough for now, I think.
APIs and Microservices

[x] Timestamp - tests already exist
[x] Header Parser - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/37187
[x] URL Shortener - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/39311
[x] Exercise Tracker - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/37696
[x] File Metadata - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/39625

Quality Assurance

[x] Metric Imperial Converter - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/37891
[X] Issue Tracker - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/39627
[X] Personal Library - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/39642
[x] Sudoku Solver - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/39816
[x] American British Translator - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/39822

Scientific Computing with Python
- [ ] Arithmetic Formatter - can't add tests to learn without overhauling the project
- [ ] Time Calculator - can't add tests to learn without overhauling the project
- [ ] Budget App - can't add tests to learn without overhauling the project
- [ ] Polygon Area Calculator - can't add tests to learn without overhauling the project
- [ ] Probability Calculator - can't add tests to learn without overhauling the project
Data Analysis with Python
- [ ] Mean-Variance-Standard Deviation Calculator - can't add tests to learn without overhauling the project
- [ ] Demographic Data Analyzer can't add tests to learn without overhauling the project
- [ ] Medical Data Visualizer - can't add tests to learn without overhauling the project
- [ ] Page View Time Series Visualizer - can't add tests to learn without overhauling the project
- [ ] Sea Level Predictor - can't add tests to learn without overhauling the project
Infosec

[X] Stock Price Checker - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/39640
[x] Anonymous Message Board - PR merged - https://github.com/freeCodeCamp/freeCodeCamp/pull/39652
- [ ] Port Scanner - can't add tests to learn without overhauling the project
- [ ] SHA-1 Password Cracker - can't add tests to learn without overhauling the project
[x] Secure Real Time Multiplayer Game

Machine Leaning with Python
- [ ] Rock Paper Scissors - can't add tests to learn without overhauling the project
- [ ] Cat and Dog Image Classifier - can't add tests to learn without overhauling the project
- [ ] Book Recommendation Engine using KNN - can't add tests to learn without overhauling the project
- [ ] Linear Regression Health Costs Calculator - can't add tests to learn without overhauling the project
- [ ] Neural Network SMS Text Classifier - can't add tests to learn without overhauling the project
Edit: I have updated this to include all the new projects - many of them may not be testable on our end - perhaps just one to make sure they don't submit the example project

Any suggestion on how to write a test here? I assume there aren't any examples I could look at.

There are some examples @lkreimann - I made a PR for the header parser project, linked above - the timestamp project has tests written, as well. And if you read through the other issue I linked, there's some more info to find.
These projects could use a little TLC in my opinion - it may be difficult to write tests for some of them.

I would like to do this. Could you point me in the right direction? And do you think it should be split into two PRs? One for Microservices and one for infosec?

@jenlky it would be ideal if you could create a PR for each challenge you add tests for.  Doing so makes the review process easier.  Just reference this issue, so we know which PRs are still needed.
As for how to go about it, take a look at @moT01's PR.  He wrote tests that verify aspects of the project's api, when given a project url. So, the project is supposed to return a JSON object with the keys ipaddress, language and software and the three tests make sure each key is present.
Just ask if you need any clarification.

The problem here is that many, or at least some, of the projects don't specify route names; so, in some cases, campers can use any routes they choose - making it impossible to hit them predictably. I mentioned this here. So we may need to go into each project and clarify instructions so that the routes and parameters are predictable.

Yep.  I don't see any other way of making them testable, so I think they need a concrete API as part of the project.  If it's not obvious what the API for a project should be, maybe we could discuss that here?

I know that @cmccormack and maybe others were working on unifying a repo for the backend projects for a little while. I'm wondering if we should add that to fCC and use it to make changes to the projects. Then we can just import all the code from there to the current glitch projects - I think that was the plan when work was being done there. I'm not sure how much deviation there's been on that repo and what we now have.

@moT01 I want to check if the user is actually redirected to a certain URL. To do that in Nodejs, I will need to require('url'). I can chain the code in the test case but it would be very messy and I prefer not to. Since the file is markdown, where should I require then?

require is out, I'm afraid.  The tests run in the browser's JavaScript engine, not node.
What you can do is use fetch.  So, something like
    testString: 'getUserInput => fetch(getUserInput(''url'') + ''/redirect'').then(res => {
      if(!res.redirected) { throw "should be redirected"} }, error => { throw error })'

is how I'd check for redirects.  You can also get the url with res.url to verify it's redirecting to the right place.

@ojeytonwilliams For URL Shortener, I need to POST URL (google for example) to shorten it and
it should return { "original_url": "www.google.com", "short_url": 1 }. When I access $.get(getUserInput(''url'') + ''/api/shorturl/1''), I should be redirected to google.com.
I will need to either 1) store the original_url as a variable OR 2) POST and then GET in one function. Is there a way to do the first one because that would be cleaner and more readable?
Here's an excerpt of my test, second test incomplete:
tests:
  - text: 'It should handle a URL as parameter and return shortened URL'
    testString: 'getUserInput => $.post(getUserInput('url') + '/api/shorturl/new').then(data => assert.exists(data.short_url), xhr => { throw new Error(xhr.responseText)})'
  - text: 'It should handle a shortened URL and redirect to original link'
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/api/shorturl/3'').then()

It occurs to me that we should probably add tests that reject the Glitch project we provide for each project.
tests:
  - text: 'You should supply your own project, not the example url'
    testString: 'getUserInput => assert(!(new RegExp( ".*/thread-paper\.glitch\.me\.*")).test(getUserInput("url")))'

Something like that.

FYI - there are some tests written here - There's no confirmation that they work or are complete, but it's a good place for examples.

Hey, I would be interested in working on this issue by adding tests for URL shortener.

Thanks @Aadhar3, PRs are definitely welcome.

it isn't tracked here for some reason, but there appears to already be a #37588 for the url shortener tests

Oh alright, i do not think there are tests for the File Metadata microservice.. I would like to contribute to that

@Aadhar3 There are no other open PRs for the File Metadata Microservice, so feel free to submit a PR.

I had a general question, on https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/file-metadata-microservice, why does a user have to submit both a glitch link and a github link?

That's just how it is at the moment @Aadhar3 - There's an issue that plans to make the github link optional.

FYI - there are some tests written here - There's no confirmation that they work or are complete, but it's a good place for examples.

Just FYI...File metadata test is working but it doesn't check if the user submitted the sample glitch.

Just to make sure this does not get overlooked - it looks like the infosec projects are now the quality assurance projects, and the "Stock Price Checker" and "Anonymous Message Board" were replaced by the "Sudoku Solver" and "American British Translator", respectively. 🙂

I looked through each section real quick, I believe each project that can have tests has at least the "You should submit your own project and not the example" test - and many of them have quite extensive tests - So I think we can finally close this. Thanks for all the hard work on this everyone 🎉
If anyone notices something missing or any problems, leave a comment and we can either reopen this - or, probably better at this point to just create a new issue for whatever tests are having issues. Thanks and happy coding 🎉

@moT01 Just double-checking: Is Secure Real Time Multiplayer ticked off, because it is something that will require too much overhaul to write tests for?

I did check it off - the issue here was to create any kind of test for the projects where we can, that project has the one checking if the demo URL is used - so it could still use some work. I didn't look hard, but I do think that project would need some sort of overhaul to have more comprehensive tests on learn - so I thought we would be fine to close this. We could create another issue for that specific project? I'm guessing some of the other projects still have some tests that are missing, as well - but overall, the coverage should be pretty good. I was thinking to just create new issues when we come across problems. What do you think?

What do you think?

Unless this gets handled in-house, we should definitely create an issue for each project which could use some improving. That way, a simple help wanted will go a long way.
I agree, this issue has served its purpose. 👍
So, I will open an issue for the SRTM project, and I expect other issues to be opened for the projects where some user story tests have not been written.


Show all object attributes in repr

Closes #4.
Now the Project and Task objects will be shown in the console as
<surge.Project#9ac59d54-7455-4dce-b30b-68d449020034 name="Test project created using the apis" fields_template="None" num_workers_per_task="1" status="unlaunched" created_at="2021-02-11T16:36:05.008Z" num_tasks_completed="0" num_responses_completed="0" instructions="None" num_tasks="0" link_to_work_on_task="https://app.surgehq.ai/workers/tasks?project_id=9ac59d54-7455-4dce-b30b-68d449020034" avg_gold_standard_score="0" interrater_agreement="{}" questions="[]">

Good idea to make __repr__ much more detailed, as it should be!
I also added implementations for __str__ to provide a user-friendly string version of projects and tasks. They'll see this shortened version when printing to the console.


More information needed on how to run tests

Hi, I'm a first time open source contributor and I'm trying to make a pull request, but I'm having issues running the tests.  I think the documentation could be clearer on how to set up the testing environment, as it's non-trivial for newbies.
After installation, I did pip install -r test_requirements.txt
From the tweepy directory I tried to run nosetests tests/test_api.py.  This resulted in the following stack trace, which I am unsure of how to resolve.

ERROR: Failure: ImportError (No module named http_client)
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose-1.3.4-py2.7.egg/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose-1.3.4-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose-1.3.4-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/tinazhang/Documents/GitHub/24PR/tweepy/tests/test_api.py", line 12, in
from .config import TweepyTestCase, username, use_replay, tape
File "/Users/tinazhang/Documents/GitHub/24PR/tweepy/tests/config.py", line 3, in
import vcr
File "/Library/Python/2.7/site-packages/vcr/init.py", line 2, in
from .config import VCR
File "/Library/Python/2.7/site-packages/vcr/config.py", line 6, in
from .cassette import Cassette
File "/Library/Python/2.7/site-packages/vcr/cassette.py", line 12, in
from .patch import CassettePatcherBuilder
File "/Library/Python/2.7/site-packages/vcr/patch.py", line 8, in
from .stubs import VCRHTTPConnection, VCRHTTPSConnection
File "/Library/Python/2.7/site-packages/vcr/stubs/init.py", line 9, in
from six.moves.http_client import (
ImportError: No module named http_client

Ran 1 test in 0.001s
FAILED (errors=1)

just to clarify for myself, you did:
git clone https://github.com/tweepy/tweepy.git
cd tweepy
python setup.py install
pip install -r test_requirements.txt
nosetests
is that correct?

I've greatly simplified the testing process (https://github.com/tweepy/tweepy/issues/1217#issuecomment-513665600) and have now added documentation for how to run tests at https://tweepy.readthedocs.io/en/latest/running_tests.html (https://github.com/tweepy/tweepy/commit/0aa7310bc88321248628f4f9acb5fa5f46cfbcf0).


Automatically create command for user based on name and platform

mac: use name as application name and use this template to launch open -a "<app name>"
steam: query IGDB for game, get the SteamID, and create a open command to launch the game automatically

will come up with more later

works when games are autodetected, still needs implementation when manually added.

mac done in #139
steam done - idk when


[HUDI-5610] Fix hudi-cli-bundle startup conflict for spark 3.2.x

Change Logs
It seems that the hudi cli bundle is not able to start up for spark 3.2.x, compared to spark 3.3.1. And will silently exit current like so
IR is /Users/ethan/Work/repo/hudi/packaging/hudi-cli-bundle
Client jar location not set, please set it in conf/hudi-env.sh
Running : java -cp /Users/ethan/Work/repo/hudi/packaging/hudi-cli-bundle/auxlib/*:/Users/ethan/Work/lib/spark-3.2.2-bin-hadoop3.2/*:/Users/ethan/Work/lib/spark-3.2.2-bin-hadoop3.2/jars/*:/Users/ethan/Work/repo/hudi/packaging/hudi-cli-bundle/conf:/etc/hadoop/conf:/etc/spark/conf:/Users/ethan/Work/repo/hudi/packaging/hudi-cli-bundle/target/hudi-cli-bundle_2.12-0.13.0-SNAPSHOT.jar:/Users/ethan/Work/repo/hudi/packaging/hudi-cli-bundle/../hudi-spark-bundle/target/hudi-spark3.3-bundle_2.12-0.13.0-SNAPSHOT.jar: -DSPARK_CONF_DIR=/etc/spark/conf -DHADOOP_CONF_DIR=/etc/hadoop/conf org.apache.hudi.cli.Main
Main called
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
===================================================================
*         ___                          ___                        *
*        /\__\          ___           /\  \           ___         *
*       / /  /         /\__\         /  \  \         /\  \        *
*      / /__/         / /  /        / /\ \  \        \ \  \       *
*     /  \  \ ___    / /  /        / /  \ \__\       /  \__\      *
*    / /\ \  /\__\  / /__/  ___   / /__/ \ |__|     / /\/__/      *
*    \/  \ \/ /  /  \ \  \ /\__\  \ \  \ / /  /  /\/ /  /         *
*         \  /  /    \ \  / /  /   \ \  / /  /   \  /__/          *
*         / /  /      \ \/ /  /     \ \/ /  /     \ \__\          *
*        / /  /        \  /  /       \  /  /       \/__/          *
*        \/__/          \/__/         \/__/    Apache Hudi CLI    *
*                                                                 *
===================================================================
ethan@Ethans-MacBook-Pro ~/W/r/h/p/hudi-cli-bundle (cli-bundle-fix) [1]>

When checking the usr/local/spark/jars spark 3.3.1 seems to provide many core log4j2 dependencies, where as in spark 3.2.x we only one log4j jar.

❯ ls -l log4j* ( spark 3.2. jars)

-rw-r--r--@ 1 rchertar  ANT\Domain Users  489884 Nov 14 10:28 log4j-1.2.17.jar

❯ ls -l log4j* (spark 3.3.1 jars)
-rw-r--r--@ 1 rchertar  ANT\Domain Users   303443 Oct 15 02:41 log4j-1.2-api-2.17.2.jar
-rw-r--r--@ 1 rchertar  ANT\Domain Users   302511 Oct 15 02:41 log4j-api-2.17.2.jar
-rw-r--r--@ 1 rchertar  ANT\Domain Users  1811089 Oct 15 02:41 log4j-core-2.17.2.jar
-rw-r--r--@ 1 rchertar  ANT\Domain Users    24248 Oct 15 02:41 log4j-slf4j-impl-2.17.2.jar

When adding the other log4j dependencies the cli is able to start successfully for spark 3.2. and spark 3.3.1
Testing

Tested this on 4 combinations of spark distribution locally: spark331-hadoop2, spark331-hadoop3, spark323-hadoop2, spark323-hadoop3
Tested on recent EMR spark 3.3.1 hadoop 3.3 without issues

Special note

It seems that for spark 3.2. there is still an issue with the logger being broken, whereas spark 3.3.1 logging is fine. Will need to follow up on this at later point.

Impact
medium
Risk level (write none, low medium or high below)
medium
Documentation Update
Docs need to be updated
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

@yihua

Thanks Ethan I left a note in the special note section that the logging for spark 3.2.x is still not working correctly, whereas logging for spark 3.3.1 is working fine.


Handling Contributors is painfully slow in the backend, impacting on publishers' workflows

Describe the bug
Am noticing considerable lag when calling up the Contributors dialogue (mainly within the book- and chapter-level lookup of contributors).
So, for example, when I'm seeking to add a new contributor to a given work, the dialogue freezes for ca. 5 seconds, and my browser (Firefox) issues a warning that "this site is slowing down your system".
Francois from African Minds also noted they're having similar issues, so would be good to find a fix for this to improve contributor data loading

We should disable updating the base contributor, and only query the one selected


Unicode content support

There were problems with the base64 encoding of Unicode characters. Fixed it to work both in browsers and in node.js.

Many thanks! Merged!


Power BI Connection Timeout Issue, Win10

Hello,
Could you please help me to resolve the issue : "ODBC: ERROR [HY000] Timeout: connect timed out: [::1]:8443"?  I need to get data from the local host ClickHouse database and visualise them in Power BI.
For that purpose I've installed first 64-bit, than 32-bit versions of driver, and in both cases the connection returns timeout error. When I tried to connect ClickHouse, I followed the next steps in Power BI:

Get Data —> ODBC
Then I chose from the list name ClickHouseDSN_localhost.
After that I tried to fill in the Advanced Options:

in the Connection string (non-credential properties) I pasted:
;Connect Timeout=600
in the SQL query I put the next text:
SELECT *
FROM demo.table_name

In the next dialogue window in inserted user data: login and password in the dedicated fields and entered the dataset name.
Finally, I got "Connection Timeout" error.

I also tried to leave all the fields empty in the Advanced Options. That led to the same issue.
As another option, I tried to paste the next text in the Connection string in the step 3:
_https://username:password@indexesandparameters.mdb.yandexcloud.net:8443/query?database=demo&receive_timeout=6000&connect_timeout=600_
Eventually, it returned the same error.
Could you please recommend what should I do to fix the issue?
Thank you so much.

Do you have ClickHouse server running on localhost i.e. [::1]:8443? (assuming you don't since it's Windows 10)

https://username:password@indexesandparameters.mdb.yandexcloud.net:8443/query?database=demo&receive_timeout=6000&connect_timeout=600

Is it a publicly available running ClickHouse instance?

@traceon thank you for the question.
You're right, I don't have ClickHouse locally on my PC. I need to connect to the host which is available in our organisation.
Before the attempt with the ODBC I had successfully queried against that database via Web link in Power BI. As the result, I got the CSV file.

It's hard for me to diagnose connection-related issues remotely, however, if you get connect timed out that at least indicates that the driver is recognized and loaded.
The host:port it is unable to connect to must match those specified in the DSN that you think you are using. The URL in that DSN must match the expected URL of the ClickHouse instance, which is (the URL) verified to work side-by-side on the same machine using some other tool (Web link in Power BI is OK).
Another thing that could prevent the driver from connecting to the remote ClickHouse instance using otherwise working URL is a possible SSL certificate check failure. To enable more tolerant behavior (at your own risk) try specifying sslmode = allow in the DSN.

The url looks like Yandex Cloud managed ClickHouse.
They use client certificates to connect to ClickHouse, you need to install that into your system.
Please consult Yandex Cloud support.


Single source and dual video client component tests

Summary: Implement single source and dual video component tests in rialto client.
Also make component test action more stable, parallel lcov builds were consistently failing, the -fprofile-update=atomic fixes the issue.
Type: Feature
Test Plan: Unittests, Component Tests.
Jira: RIALTO-413

https://jenkins.code.rdkcentral.com/job/github-triggered/45452/ started

https://jenkins.code.rdkcentral.com/job/build-component/84220/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/10907/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/16516/ started.

https://jenkins.code.rdkcentral.com/job/github-triggered/45454/ started

https://jenkins.code.rdkcentral.com/job/build-component/84222/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/10909/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/16518/ started.

build-brcm-refboard2 Console Log uploaded to Gist URL: https://gist.github.com/rdkcmf-jenkins/1f0cc4cbcd9b42aa337c5806534c110e

https://jenkins.code.rdkcentral.com/job/github-triggered/45456/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/10911/ started

https://jenkins.code.rdkcentral.com/job/build-component/84225/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/16522/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/10913/ started

https://jenkins.code.rdkcentral.com/job/github-triggered/45458/ started

https://jenkins.code.rdkcentral.com/job/build-component/84226/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/16523/ started.

https://jenkins.code.rdkcentral.com/job/github-triggered/45460/ started

https://jenkins.code.rdkcentral.com/job/build-component/84229/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/10915/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/16526/ started.

https://jenkins.code.rdkcentral.com/job/github-triggered/45464/ started

https://jenkins.code.rdkcentral.com/job/build-component/84231/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/10917/ started

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/33986/

https://jenkins.code.rdkcentral.com/job/github-triggered/45466/ started

https://jenkins.code.rdkcentral.com/job/build-component/84233/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/10919/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/16529/ started.

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/33987/

Job for AI/job/AI_BUILDS/job/AI-Trigger-PullRequests started: https://pv-jen015.uk2.scp.bskyb.com/job/AI/job/AI_BUILDS/job/AI-Trigger-PullRequests/35/

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/33991/

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/33992/

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/33994/

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/33996/

'['RPI4 Hybrid']' Sanity test FAILURE, investigation pending.
Build Job/Num: build-rpi4-hybrid/12920
Flash rdkv_rpi4_hybrid [SUCCESS]
rdkv_rpi4_hybrid - Video Test [FAILURE]
Video Accelerator Home Screen Test [FAILURE]
Video Accelerator VOD Video Detection Test [FAILURE]
HLS video streaming using gst-launch uri=aamp [SUCCESS]
HLS Video Streaming using aamp-cli [SUCCESS]
DASH Video Streaming using aamp-cli [SUCCESS]
Video local (H264) using gst-play-1.0 [SUCCESS]
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-raspberrypi-rdkv-rpi4-flow/4244/

'['RPI4 Hybrid']' Sanity test FAILURE, investigation pending.
Build Job/Num: build-rpi4-hybrid/12926
Flash rdkv_rpi4_hybrid[FAILURE]
rdkv_rpi4_hybrid - Video Test skipped [FAILURE]
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-raspberrypi-rdkv-rpi4-flow/4250/

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/33998/

'['RPI4 Hybrid']' Sanity test FAILURE, investigation pending.
Build Job/Num: build-rpi4-hybrid/12924
Flash rdkv_rpi4_hybrid [SUCCESS]
rdkv_rpi4_hybrid - Video Test [FAILURE]
Video Accelerator Home Screen Test [FAILURE]
Video Accelerator VOD Video Detection Test [FAILURE]
HLS video streaming using gst-launch uri=aamp [SUCCESS]
HLS Video Streaming using aamp-cli [SUCCESS]
DASH Video Streaming using aamp-cli [SUCCESS]
Video local (H264) using gst-play-1.0 [SUCCESS]
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-raspberrypi-rdkv-rpi4-flow/4248/

Sanity tests for ['BCM Reference Refapp2'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/34017/

Sanity tests for ['BCM Reference Refapp2'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/34021/


Deplo error

Does this occur consistently?
Repro steps:

Action: appService.Deploy
Error type: ECONNRESET
Error Message: request to https://airandpartners.scm.azurewebsites.net/api/zipdeploy?isAsync=true&author=VS Code failed, reason: read ECONNRESET
Version: 0.20.0
OS: win32
OS Release: 10.0.19041
Product: Visual Studio Code
Product Version: 1.51.1
Language: en

Call Stack
ClientRequest.<anonymous> extension.js:236:264795
ClientRequest.emit events.js:228:7
TLSSocket.socketErrorListener _http_client.js:406:9
TLSSocket.emit events.js:223:5
emitErrorNT destroy.js:92:8
emitErrorAndCloseNT destroy.js:60:3
processTicksAndRejections task_queues.js:81:21

Please provide repro steps.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


add aave as a contact

We would like to add AAVE as a contact, thank you

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[Suggestion] Player preview post-processing

The player emote preview in the wheel feels a little out of place due to its fidelity. It would be nice to have optional post-processing applied to replicate the lower-fidelity appearance of the rest of the camera view.

Sorry for the late response. I will keep this in mind when I have free time. I'll keep this issue open for now as a reminder.


Default Arbitrary instances for e.g. long return very small values?

It seems that the default Arbitrary instances for integral types return very small values. Here's the small prop I've been using to test:
template <typename T>
struct ReproducerProp: cppqc::Property<T>
{
	bool check(const T &expected) const override
	{
		std::cout << expected << std::endl;
		if (expected > 255) {
			return false;
		}
		if (expected < -255) {
			return false;
		}
		return true;
	}
};

I would certainly have expected this to fail at least some of the time, but I've done ~20 runs (each with 100 tests) and it's not failed so far.
It seems very odd that it's not using the full range of the type by default.
(Generally speaking it might also be a good idea to make sure to always include the min/max/0 value for any given type in the set of integers tested, by that's another issue.)
EDIT: Oh, the runner code is
	quickCheckOutput(ReproducerProp<long>());

Tested current master.

Checking the implementation, I see that it's using arbitrarySizedBoundedIntegral which seems very ad-hoc. Is there any particular reason that this is the default?

Good example. Yes, it will currently always pass, and I agree that it is not the behavior that you would expect.
The problem is that by default the number are constrained by a parameter "size", which is increased during the search phase, but is currently limited to 100. That is why it will not find a counter-example. Yes, that needs to be fixed.
Longer answer:
Not being the original author of the library, I have to guess a bit about why it is so. The arbitrarySizedBoundedIntegral function was clearly inspired by the original Haskell implementation, which has this mysterious comment (source):
-- | Generates an integral number from a bounded domain. The number is
-- chosen from the entire range of the type, but small numbers are
-- generated more often than big numbers. Inspired by demands from
-- Phil Wadler.
arbitrarySizedBoundedIntegral :: (Bounded a, Integral a) => Gen a
arbitrarySizedBoundedIntegral =
  withBounds $ \mn mx ->
  sized $ \s ->
    do let bits n | n == 0 = 0
                  | otherwise = 1 + bits (n `quot` 2)
           k  = 2^(s*(bits mn `max` bits mx `max` 40) `div` 80)
       n <- choose (toInteger mn `max` (-k), toInteger mx `min` k)
       return (fromInteger n)

Recently, I modified the function a bit (https://github.com/philipp-classen/CppQuickCheck/commit/310f21bc09649dac965bec1fa4fefd21cc3a8d67#diff-f0468744ea9948df8c9d0dbdfb4343daR70) to remove more Boost dependencies. The old implementation returned values whose absolute values were near the "size" parameter. For instance, if you passed 1000 for "size", it returned values like 994, 1002, etc. Not sure if that was intended.
The new implementation returns values that are in the interval [-size, size], but values closer to 0 are a bit more likely. From what I saw it performs not worse than the old implementation. First, I had an implementation that returned greater numbers (outside [-size, size]), but it performed worse in some examples that I saw. That is why I have chosen the current implementation which seemed like the safe bet to me at the time.
Replacing it by some better function, which can return values outside [-size, size] and possibly switching the default is something that would make sense in my opinion, but it is also something that was to be checked carefully as it can easily lead to worse behavior in other examples.
Maybe a more robust way would be to use a hybrid approach: For x%, continue with the [-size, size] and close to 0 strategy, and for the rest choose uniformly from the whole range. I also thought about explicitly trying the lowest and the highest value as you proposed.


new dummy-plugins for testing

plugin with no actions
plugin with underscore in its name and in the names of actions

These will be useful for interface testing.

👍, the second plugin should have names with dashes and underscores that would have broken the CLI if name mapping was incorrect/not present.

@colinvwood is going to add a second dummy plugin, but it won't necessarily have these properties. We'll revisit adding those properties if we need to.

@colinvwood and @gregcaporaso the relevant PR of colin's is now merged


User Progress Tracking

Users should be able to track their progression per post.

[x] #89
[ ] Progress sync
[ ] Auth check after episode reaction ends
[ ] User watch history

When trying to check a reaction, display a loader that halts interaction until Firebase receives the update and the state is updated.

State is per post. each post has a separate watchlist stored on its state.


Phone Number loggout instantly after scanning

Phone Number loggout instantly after scanning getting below error:-
Connection closed. You are logged out.
3|WaunofficialNode3007  | updateInstanceStatus 339 | Changing instance status to :: false
3|WaunofficialNode3007  | startsock :: connection update {
3|WaunofficialNode3007  |   connection: 'close',
3|WaunofficialNode3007  |   lastDisconnect: {
3|WaunofficialNode3007  |     error: Error: Stream Errored (conflict)
3|WaunofficialNode3007  |         at WebSocket. (/opt/NodeJs/WAMultiDevice3007/whatsappmultipledevice/Baileys-master/src/Socket/socket.ts:514:7)
3|WaunofficialNode3007  |         at WebSocket.emit (events.js:400:28)
3|WaunofficialNode3007  |         at WebSocket.emit (domain.js:475:12)
3|WaunofficialNode3007  |         at /opt/NodeJs/WAMultiDevice3007/whatsappmultipledevice/Baileys-master/src/Socket/socket.ts:278:23
3|WaunofficialNode3007  |         at Object.decodeFrame (/opt/NodeJs/WAMultiDevice3007/whatsappmultipledevice/Baileys-master/src/Utils/noise-handler.ts:164:5)
Old connections are working but new connections are not made.

Yes we facing a same issue

Same error. This is happening on Whatsapp web as well. This is what is causing the error

1+

After updating whatsapp app to latest version, it works for me, I was facing same issue in the morning

can you provide me ver because we tested v-<IP_ADDRESS> with the same issue

https://whatsapp-messenger.en.uptodown.com/android/download/113660134
whatsapp all vision list

After updating whatsapp app to latest version, it works for me, I was facing same issue in the morning

This version works for me with the latest version of the library

After updating whatsapp app to latest version, it works for me, I was facing same issue in the morning

Nah it's not working

After updating whatsapp app to latest version, it works for me, I was facing same issue in the morning

This version works for me with the latest version of the library

I'm beta user

not working

Experiencing the same issue. All existing accounts are getting log out.

this seems to be happening for india users only

this seems to be happening for india users only

Yes inky for Indian number

Experiencing the same issue. All existing accounts are getting log out.

Existing account can't get logout but new connection didn't link

@PurpShell @SheIITear

this error only happens with Indian mobile number I test same code same version from other country mobile number then its working fine

Due to WhatsApp Indian user in heavy numbers

Hi everyone,
I've reviewed the ongoing discussion about the logout issue after scanning. It seems this might be related to WebSocket conflicts, specifically with new connections. Has anyone tried debugging the WebSocket traffic to pinpoint when the conflict occurs, or if specific conditions exacerbate this issue? It might also help to confirm if this issue persists across different versions of Baileys and WhatsApp Web, or if it's localized to specific versions.

yes, Again the same issue last time  fixed by @SheIITear #702

+1

this error only happens with Indian mobile number I test same code same version from other country mobile number then its working fine

Due to WhatsApp Indian user in heavy numbers

Maybe indian users are att top in spamming so................ its a gift from whatsapp for indian numbers

Not only that, but WhatsApp got caught in the Indian legal tangle. So more encryption is done on Indian numbers in new updates

I've noticed that even though Baileys previously addressed this logout issue, it seems to have resurfaced. Could this be related to recent updates either in Baileys or WhatsApp itself? It might be helpful to track changes in both applications that could have re-introduced this bug. If anyone has insights into the specific changes or commits that might be causing this, sharing that could be crucial to finding a workaround or permanent fix.

this error only happens with Indian mobile number I test same code same version from other country mobile number then its working fine

Due to WhatsApp Indian user in heavy numbers

Maybe indian users are att top in spamming so................ its a gift from whatsapp for indian numbers

Not only that, but WhatsApp got caught in the Indian legal tangle. So more encryption is done on Indian numbers in new updates

It's interesting to note that this error seems initially isolated to Indian mobile numbers. However, I've conducted some tests using the same code and version with numbers from other countries, and there were no issues. This might suggest that the problem could eventually affect users globally as WhatsApp updates roll out further. It’s important for us to keep an eye on this and share any new findings that could help everyone better understand and possibly circumvent this issue.

In the last issue I facilitated @SheIITear  to test the Indian number. Trying to contact him now

Thanks for mentioning that. I recall facilitating the tests with @SheIITear on the Indian number issue. I'm trying to get in touch with him now to see if we can gather more insights or replicate the problem to understand it better. If anyone else has similar experiences or data to share, please do contribute!

Thanks for mentioning that. I recall facilitating the tests with @SheIITear on the Indian number issue. I'm trying to get in touch with him now to see if we can gather more insights or replicate the problem to understand it better. If anyone else has similar experiences or data to share, please do contribute!

Remember! Only problem with new QR link. The ones linked earlier are still working.

Yes, that's correct. It appears the problem is specifically with linking new devices via the new QR code. Devices that were previously linked are still functioning normally. This distinction is crucial for troubleshooting the issue further.

Also, this problem seems to be isolated to cloud servers. Works perfectly fine on local machines

if needed to connect and test , we will give Indian numbers

Also, this problem seems to be isolated to cloud servers. Works perfectly fine on local machines

Yes, it seems this issue is specific to cloud servers, as local machines, particularly those running Windows, are not affected and function correctly. This could be a key detail in pinpointing the source of the problem.

if needed to connect and test , we will give Indian numbers

how I help??

Same error. This is happening on Whatsapp web as well. This is what is causing the error

I spun up a windows server on gcp, and tried to connect my phone to web WhatsApp. No code injection. This was the error
This looks like some sort of a bug in retrieving details of the user during initial connect

Did anyone manage to solve it?

`const { makeWASocket, useMultiFileAuthState } = require('@whiskeysockets/baileys');
const qrcode = require('qrcode-terminal');
async function initializeWhatsApp() {
const { state, saveState } = await useMultiFileAuthState('./auth_info');
const socket = makeWASocket({
    auth: state
});

socket.ev.on('connection.update', (update) => {
    console.log('Connection Update:', update);
    if (update.connection === 'close') {
        console.log('Disconnected:', update.lastDisconnect?.error);
        // Add reconnection logic if needed
    } else if (update.qr) {
        console.log('QR Code:', update.qr);
        qrcode.generate(update.qr, { small: true });
    }
});

socket.ev.on('connection.update', (update) => {
    console.log('Connection Update:', update);
});

socket.ev.on('messages.upsert', (msg) => {
    console.log('New message:', JSON.stringify(msg, null, 2));
    // Respond to messages or handle them as needed
});

}
initializeWhatsApp();

After the scanning, the device shows the below errors
Connection Update: {
connection: 'close',
lastDisconnect: {
error: Error: Stream Errored (restart required)
at WebSocketClient. (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:519:13)
at WebSocketClient.emit (node:events:513:28)
at E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:236:35
at Object.decodeFrame (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Utils\noise-handler.js:136:17)
at WebSocketClient.onMessageReceived (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:212:15)
at WebSocketClient.emit (node:events:513:28)
at WebSocket. (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\Client\web-socket-client.js:46:100)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (E:\My Node\baileys\node_modules\ws\lib\websocket.js:1209:20)
at Receiver.emit (node:events:513:28) {
data: [Object],
isBoom: true,
isServer: true,
output: [Object]
},
date: 2024-05-12T01:21:51.869Z
}
}
Disconnected: Error: Stream Errored (restart required)
at WebSocketClient. (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:519:13)
at WebSocketClient.emit (node:events:513:28)
at E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:236:35
at Object.decodeFrame (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Utils\noise-handler.js:136:17)
at WebSocketClient.onMessageReceived (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:212:15)
at WebSocketClient.emit (node:events:513:28)
at WebSocket. (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\Client\web-socket-client.js:46:100)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (E:\My Node\baileys\node_modules\ws\lib\websocket.js:1209:20)
at Receiver.emit (node:events:513:28) {
data: { tag: 'stream:error', attrs: { code: '515' }, content: undefined },
isBoom: true,
isServer: true,
output: {
statusCode: 515,
payload: {
statusCode: 515,
error: 'Unknown',
message: 'Stream Errored (restart required)'
},
headers: {}
}
}
Connection Update: {
connection: 'close',
lastDisconnect: {
error: Error: Stream Errored (restart required)
at WebSocketClient. (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:519:13)
at WebSocketClient.emit (node:events:513:28)
at E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:236:35
at Object.decodeFrame (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Utils\noise-handler.js:136:17)
at WebSocketClient.onMessageReceived (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\socket.js:212:15)
at WebSocketClient.emit (node:events:513:28)
at WebSocket. (E:\My Node\baileys\node_modules@whiskeysockets\baileys\lib\Socket\Client\web-socket-client.js:46:100)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (E:\My Node\baileys\node_modules\ws\lib\websocket.js:1209:20)
at Receiver.emit (node:events:513:28) {
data: [Object],
isBoom: true,
isServer: true,
output: [Object]
},
date: 2024-05-12T01:21:51.869Z
}
}
E:\My Node\baileys>
`

Do these changes solve the problem?

Still Not Fixed.

We are also facing the same issue. It's only some of our numbers though so not sure what's going on. But same error:
connection update {
connection: 'close',
lastDisconnect: {
error: Error: Stream Errored (restart required)
at WebSocketClient. (/Users/a/Documents/GitHub/Baileysfinal/src/Socket/socket.ts:662:7)
at WebSocketClient.emit (node:events:518:28)
at WebSocketClient.emit (node:domain:488:12)
at /Users/a/Documents/GitHub/Baileysfinal/src/Socket/socket.ts:338:23
at Object.decodeFrame (/Users/a/Documents/GitHub/Baileysfinal/src/Utils/noise-handler.ts:176:5)
at WebSocketClient.onMessageReceived (/Users/a/Documents/GitHub/Baileysfinal/src/Socket/socket.ts:310:9)
at WebSocketClient.emit (node:events:518:28)
at WebSocketClient.emit (node:domain:488:12)
at WebSocket. (/Users/a/Documents/GitHub/Baileysfinal/src/Socket/Client/web-socket-client.ts:40:52)
at WebSocket.emit (node:events:518:28) {
data: [Object],
isBoom: true,
isServer: true,
output: [Object]
},
date: 2024-05-11T19:52:34.215Z
}
}

Now it's working but with old bailey version.

Now it's working but with old bailey version.

which version are you using?

which version are you using?

which version are you using?

Now it's working but with old bailey version.

which version are you using?

Hello friends, after fix this issue i shell notify you on my youtube or whatsapp channel go and follow to Tech God

We've successfully integrated the latest version of Baileys in a new project running on a Windows PC, and it works perfectly. However, on cloud servers, the session disconnects right after scanning. It seems WhatsApp LLC might be specifically targeting Indian (+91) numbers, which frequently use unofficial APIs. This could indicate a significant shift in the unofficial API market in India, perhaps signaling an end to its current form.

It also happened to me with a 972 in Israel
Disconnects right after scanning, even when singing in Israel, not necessarily in the cloud

It's happens only on cloud server but local machine it's working perfectly

Plze solve this problem auto logout on WhatsApp

Noticed :  device very rarely connected, when I keep trying lot of time.

Yes same issue with my number too😢 unable to generate a session

error in device finding because i see that qr again and again disply when connect qr  only indian numbers but other numbers work

Did anyone manage to solve it?

error in device finding because i see that qr again and again disply when connect qr only indian numbers but other numbers work

Use local machine to connect don't use cloud servers

Any Solution for Cloud Servers ?

Looks like an issue with Ubuntu server and WhatsApp web. Is there any one who is facing issues in other OS except Ubuntu?

WhatsApp Web is allowing users to link device on Local PC but on Server (Ubuntu, Windows Server 2019) after link device not working

this is final issiue in this turkey work i tested and canda work i tested  but not india i dont know why i think libery issue somewhere
here you see logs 2024-05-13T11:06:50:     at SessionCipher.doDecryptWhisperMessage (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:236:19)
2024-05-13T11:06:50:     at SessionCipher.decryptWithSessions (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:147:40)
2024-05-13T11:06:50:     at<PHONE_NUMBER>84.57 [as awaitable] (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:171:39)
2024-05-13T11:06:50:     at async _asyncQueueExecutor (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/queue_job.js:20:29)
2024-05-13T11:06:50: Session error:Error: Bad MAC Error: Bad MAC
2024-05-13T11:06:50:     at Object.verifyMAC (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/crypto.js:87:15)
2024-05-13T11:06:50:     at SessionCipher.doDecryptWhisperMessage (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:250:16)
2024-05-13T11:06:50:     at async SessionCipher.decryptWithSessions (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:147:29)
2024-05-13T11:06:50:     at async<PHONE_NUMBER>84.57 [as awaitable] (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:171:28)
2024-05-13T11:06:50:     at async _asyncQueueExecutor (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/queue_job.js:20:29)
2024-05-13T11:06:50: Failed to decrypt message with any known session...
2024-05-13T11:06:50: Session error:MessageCounterError: Key used already or never filled MessageCounterError: Key used already or never filled
2024-05-13T11:06:50:     at SessionCipher.doDecryptWhisperMessage (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:236:19)
2024-05-13T11:06:50:     at SessionCipher.decryptWithSessions (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:147:40)
2024-05-13T11:06:50:     at<PHONE_NUMBER>84.57 [as awaitable] (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:171:39)
2024-05-13T11:06:50:     at async _asyncQueueExecutor (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/queue_job.js:20:29)
2024-05-13T11:06:50: Session error:Error: Bad MAC Error: Bad MAC
2024-05-13T11:06:50:     at Object.verifyMAC (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/crypto.js:87:15)
2024-05-13T11:06:50:     at SessionCipher.doDecryptWhisperMessage (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:250:16)
2024-05-13T11:06:50:     at async SessionCipher.decryptWithSessions (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:147:29)
2024-05-13T11:06:50:     at async<PHONE_NUMBER>84.57 [as awaitable] (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:171:28)
2024-05-13T11:06:50:     at async _asyncQueueExecutor (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/queue_job.js:20:29)
2024-05-13T11:11:09: Failed to decrypt message with any known session...
2024-05-13T11:11:09: Session error:MessageCounterError: Key used already or never filled MessageCounterError: Key used already or never filled
2024-05-13T11:11:09:     at SessionCipher.doDecryptWhisperMessage (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:236:19)
2024-05-13T11:11:09:     at SessionCipher.decryptWithSessions (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:147:40)
2024-05-13T11:11:09:     at<PHONE_NUMBER>84.57 [as awaitable] (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:171:39)
2024-05-13T11:11:09:     at async _asyncQueueExecutor (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/queue_job.js:20:29)
2024-05-13T11:11:09: Session error:Error: Bad MAC Error: Bad MAC
2024-05-13T11:11:09:     at Object.verifyMAC (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/crypto.js:87:15)
2024-05-13T11:11:09:     at SessionCipher.doDecryptWhisperMessage (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:250:16)
2024-05-13T11:11:09:     at async SessionCipher.decryptWithSessions (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:147:29)
2024-05-13T11:11:09:     at async<PHONE_NUMBER>84.57 [as awaitable] (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:171:28)
2024-05-13T11:11:09:     at async _asyncQueueExecutor (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/queue_job.js:20:29)
2024-05-13T11:11:09: Failed to decrypt message with any known session...
2024-05-13T11:11:09: Session error:MessageCounterError: Key used already or never filled MessageCounterError: Key used already or never filled
2024-05-13T11:11:09:     at SessionCipher.doDecryptWhisperMessage (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:236:19)
2024-05-13T11:11:09:     at SessionCipher.decryptWithSessions (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:147:40)
2024-05-13T11:11:09:     at<PHONE_NUMBER>84.57 [as awaitable] (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:171:39)
2024-05-13T11:11:09:     at async _asyncQueueExecutor (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/queue_job.js:20:29)
2024-05-13T11:11:09: Session error:Error: Bad MAC Error: Bad MAC
2024-05-13T11:11:09:     at Object.verifyMAC (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/crypto.js:87:15)
2024-05-13T11:11:09:     at SessionCipher.doDecryptWhisperMessage (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:250:16)
2024-05-13T11:11:09:     at async SessionCipher.decryptWithSessions (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:147:29)
2024-05-13T11:11:09:     at async<PHONE_NUMBER>84.57 [as awaitable] (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/session_cipher.js:171:28)
2024-05-13T11:11:09:     at async _asyncQueueExecutor (/www/wwwroot/myocmwsworks/waziper/node_modules/libsignal/src/queue_job.js:20:29)

It's not entirely true that it won't work on Ubuntu.  Today after much effort I managed to successfully connect five Indian numbers to Ubuntu cloud server with same IP.

It's not entirely true that it won't work on Ubuntu. Today after much effort I managed to successfully connect five Indian numbers to Ubuntu cloud server with same IP.

Can you please share what steps did you follow?

It's not entirely true that it won't work on Ubuntu. Today after much effort I managed to successfully connect five Indian numbers to Ubuntu cloud server with same IP.

Can you please share what steps did you follow?

With the same library, rarely connected, don't know what

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not  connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

This Not IP Restriction.  checked with Indian IP In GCP. Not Working

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

Huh WhatsApp web is working or local machine or local pc not in cloud servers

I'm using an Indian number and hosted on a local machine & I'm not getting this error. 🤔

I'm using an Indian number and hosted on a local machine & I'm not getting this error. 🤔

The problem is  with the cloud machines.

I'm using an Indian number and hosted on a local machine & I'm not getting this error. 🤔

Any Solution for Cloud Servers ?

Use the proxy for the that specific country

which provider works well?

which provider works well?

Idk but try to get up of visitor and add in Baileys sockets config

I'm using an Indian number and hosted on a local machine & I'm not getting this error. 🤔

Any Solution for Cloud Servers ?

Use the proxy for the that specific country

It Does Not Work with Servers in India Data Centers.. Have you tested it with proxy..?

no problem from proxy or I.P and anything just problem in Android version because it is perfect working in iPhone..

I'm using an Indian number and hosted on a local machine & I'm not getting this error. 🤔

Any Solution for Cloud Servers ?

Use the proxy for the that specific country

which proxy service are you using?

this error only happens with Indian mobile number I test same code same version from other country mobile number then its working fine

we are observing this for our Indian as well as non-indian phone numbers both.

@SheIITear  are you looking at this buddy? If any updates, please let us know.

no problem from proxy or I.P and anything just problem in Android version because it is perfect working in iPhone..

Bro tried it on WhatsApp beta not un normally WhatsApp it's working WhatsApp public version not in WhatsApp beta in version and in future you need to update your WhatsApp

We tried to run WebWA in browser on Cloud (No library.. Plain Chrome & WebWA)..
Login failed. Attached are the logs in dev tools->console

I had the same problem, after searching found this https://github.com/WhiskeySockets/Baileys/issues/92#issuecomment-2022612517
I miss this line

https://github.com/WhiskeySockets/Baileys/issues/92#issuecomment-2022612517

This Not Related to Indian Number Logout Issue.

@SheIITear  are you looking at this buddy? If any updates, please let us know.

No I am not. I'm on holiday visiting relatives for summer, I don't have my computer with me. But if this is also happening with whatsapp web I don't think there is much we could do in that case.

I am able to connect account in Web Whatsapp. However, it is failing with baileys.

@SheIITear these issue is not related mentioned points but i think when we are connecting it should give 515 status code and now it is giving the 516 status code that is making the difference. Could you please guide us little bit.

Has anybody tried setting out the library locally and checking if it helps in the QR code scan issue? If so, what was the outcome?

No issue in the local in local everything is working fine @ujwalvj

thanks @mayankagar360 ! Let me check.

yes @ujwalvj please post here if you found something

I have Tried, it is an IP address issue. My baileys instance are hosted on non-indian datacenters. As soon as i tried indian Datacenter. It started working. Try that, it should work.

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

This Not IP Restriction. checked with Indian IP In GCP. Not Working

As soon as i moved it to indian IP it worked like charm. logged in immediately.

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

This Not IP Restriction. checked with Indian IP In GCP. Not Working

As soon as i moved it to indian IP it worked like charm. logged in immediately.

How ?

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

This Not IP Restriction. checked with Indian IP In GCP. Not Working

As soon as i moved it to indian IP it worked like charm. logged in immediately.

Which Data Center in India ?

I am using CtrlS

this is the IP CIDR 219.90.67.XXX

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

This Not IP Restriction. checked with Indian IP In GCP. Not Working

As soon as i moved it to indian IP it worked like charm. logged in immediately.

Which Data Center in India ?

I am using CtrlS

this is the IP CIDR 219.90.67.XXX

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

This Not IP Restriction. checked with Indian IP In GCP. Not Working

As soon as i moved it to indian IP it worked like charm. logged in immediately.

Which Data Center in India ?

I am using CtrlS

It's paid or free ?

same ip need in same country now i think error is detected indian ip only connect if you using proxy of indian or other then its not connect indian number this mean ip detected and host find by server ip location any one here that have indian server to use and connect i dont know stream issue detect its block ways to stream session

This Not IP Restriction. checked with Indian IP In GCP. Not Working

As soon as i moved it to indian IP it worked like charm. logged in immediately.

Which Data Center in India ?

I am using CtrlS

It's paid or free ?

Which Datacenter Offers for free. Please share me too.. hehe :)

I have Tried, it is an IP address issue. My baileys instance are hosted on non-indian datacenters. As soon as i tried indian Datacenter. It started working. Try that, it should work.

I am using digitaloceans indian data center yet i am facing the logout issue. Can you be a little more specific??? If whatsapp is blocking indian ip/phone number then how you're able to login on your server.
I think baileys api is now broken.... Nothing can be done if whatsapp is actually blocking our code.

I have Tried, it is an IP address issue. My baileys instance are hosted on non-indian datacenters. As soon as i tried indian Datacenter. It started working. Try that, it should work.

I am using digitaloceans indian data center yet i am facing the logout issue. Can you be a little more specific??? If whatsapp is blocking indian ip/phone number then how you're able to login on your server.
I think baileys api is now broken.... Nothing can be done if whatsapp is actually blocking our code.

WhatsApp isn't allowed to Use to WhatsApp Web in cloud servers you can your local machine or local pc

Phone Number loggout instantly after scanning getting below error:-
Connection closed. You are logged out. 3|WaunofficialNode3007 | updateInstanceStatus 339 | Changing instance status to :: false 3|WaunofficialNode3007 | startsock :: connection update { 3|WaunofficialNode3007 | connection: 'close', 3|WaunofficialNode3007 | lastDisconnect: { 3|WaunofficialNode3007 | error: Error: Stream Errored (conflict) 3|WaunofficialNode3007 | at WebSocket. (/opt/NodeJs/WAMultiDevice3007/whatsappmultipledevice/Baileys-master/src/Socket/socket.ts:514:7) 3|WaunofficialNode3007 | at WebSocket.emit (events.js:400:28) 3|WaunofficialNode3007 | at WebSocket.emit (domain.js:475:12) 3|WaunofficialNode3007 | at /opt/NodeJs/WAMultiDevice3007/whatsappmultipledevice/Baileys-master/src/Socket/socket.ts:278:23 3|WaunofficialNode3007 | at Object.decodeFrame (/opt/NodeJs/WAMultiDevice3007/whatsappmultipledevice/Baileys-master/src/Utils/noise-handler.ts:164:5)
Old connections are working but new connections are not made.

conflict = you are running more than one session. Sorry I didn't notice this earlier. Closing the issue since it is out of scope.
As for our Indian users, you will need to use local ips to the ones you have in your phone numbers for the time being.


Wrong Squire for Easy Cryptic Clue

Type
Incorrect behavior
Operating System
Windows
OS Version
Windows 10 Home 19044.2728
Bug description
Cryptic easy clue "Talk to the Squire in the White Knights' castle in Falador." points to the Squire on top on the Camelot castle outside of the Knight Waves minigame. This is not the correct Squire.
Screenshots or videos

RuneLite version
RuneLite version: <IP_ADDRESS>
Oldschool revision: Rev 212
Launcher version: 2.1.0
Logs
No response

Duplicate of #5231


unify php versions

See https://github.com/NixOS/nixpkgs/pull/304370

Will be part of the next nixpkgs bump likely.


More Section and segments page

[ ] Disable editing for volunteers
[ ] Sort sections by SegmentId (Section 1 tab should be before Section 2 tab)
[ ] Finish up desktop styling
[ ] Mobile styling

/cib more-section-segments-page

Branch 109-more-section-segments-page created!


add AL-33 election result to resolve vacancy lint error & add Stratford CT mayor

thanks for this!

thanks for this!


The page does not contain information

Seems to be a placeholder as the only thing provided is, "This section covers configuring regional settings for everyone in your organization."

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fdd8c8b9-1593-ecfe-e0e2-ea1f879a2bb4
Version Independent ID: addea19b-5b98-0bbb-ac08-4d5f593d3333
Content: Regional and other business management settings for Customer Engagement
Content Source: ce/admin/regional-other-business-management-settings.md
Service: crm-online
GitHub Login: @jimholtz
Microsoft Alias: jimholtz

@SupportMonkey
Thanks for bringing this to our attention. There's been a change to TOC structure to better support accessibility. We'll be addressing changes needed over time.


Register resource plugins with configurable datastore

Allow it to take in a config object that looks like:
config: {
    datastore: screwdriver-datastore-dynamo
}

And register the builds plugin with the configured datastore.
(will squash after comments)

👍  looks good to me

👍 Looks good to me


Guest WiFi

When adding a new device, it would be useful to have devices expire

Add expiration of groups for guest devices

Add expiration of passwords for guest devices

Create builtin "guest" tag. PLUS users will be able to redirect guest tag devices to the site vpns

@avlidienbrunn please comment here with suggestions


Add partition validator

The Ngen framework current does not have a tool validate partition files and ensure they will form a valid communication setup.
Address Issue #315
Additions

Adds a partition validator python tool and example partition files

Removals
None
Changes

None

Testing

Tool tested on sample partition files.
Finds errors in an old partition file know to have errors.
Does not find errors in a working partition file from Sugar Creek.

Screenshots
Notes

usage python partition_validator.py <partition-file>

Todos
-We will want to update remote sections in generated partitons to include full communication paths (source->nexus->destination) for better validation.
Checklist

[X] PR has an informative and human-readable title
[X] Changes are limited to a single goal (no scope creep)
[X] Code can be automatically merged (no conflicts)
[X] Code follows project standards (link if applicable)
[X] Passes all existing automated tests
[X] Any change in functionality is tested
[X] New functions are documented (with a description, list of inputs, and expected output)
[X] Placeholder code is flagged / future todos are captured in comments
[ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
[X] Reviewers requested with the Reviewers tool

Testing checklist (automated report can be put here)
Target Environment support

[ ] Linux

The example you gave would probably fall into option 2 as rank 2 would be
created but would have no assigned work. The resulting run should still
function but would not be efficent.
On Wed, Dec 22, 2021 at 12:11 PM Robert Bartel @.***>
wrote:

@.**** commented on this pull request.
In utilities/partitioning/partition_validator.py
https://github.com/NOAA-OWP/ngen/pull/317#discussion_r774078158:

+def test_remote_connections(data: dict):

"""This function checks to ensure that there exist a minal set of reciving remote connection sections, such

  that MPI send and recives will pair properly

   @param data A dictionary containing a list of partition records stored with the key 'partitions'

   TODO update logic when partition files encode full communication path in recmote sections

   """

partitions = data['partitions']

mpi_rank = -1;
err_count = 0
for partition in partitions:

   mpi_rank = mpi_rank + 1

I'm also not sure why id and mpi-rank are synonymous but named
differently, but probably not worth changing pervasively without some
additional refactor reason
The primary reason is just to avoid inconsistencies. Remote connections
are defined by a remote rank. But their validity depends on the details of
the rank's partition, and we must assume which one that is. I think we
should eventually address this more thoroughly. We may be able to put that
off, but ...
A bigger question to me is whether the ids/mpi_ranks must be contiguous
and start with zero...maybe that should be validated if it is required.
This is interesting. Say we have an example config with 4 partitions that
"skips" partition/rank 2 (i.e., it has 0, 1, 3, and 4). We have to consider
what criteria we are using for determining validity:

Option 1 : whether this config works well in the framework

At least with how things work now, this would (at best) be
inefficient in rank utilization, so consider it not valid

Option 2 : whether this config works at all in the framework

I'm not sure but strongly suspect it would break things, so
consider it probably not valid

Option 3: whether the entries are internally consistent within the
config

In this case, correct me if I'm wrong, but I'm pretty sure this
can be valid

This may seem convoluted, but unless we are using Option 3 (I don't think
we really want to but am open to discussing), then validity cannot be
established without some runtime details.
If we are assuming ranks start at zero and are contiguous, we really do
need to check for that. The validations routines would also need to know
how many total ranks/processes are involved. Alternatively, validations
routines would need a full list of the expected ranks.
—
Reply to this email directly, view it on GitHub
https://github.com/NOAA-OWP/ngen/pull/317#discussion_r774078158, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AF6KABHE6NFJG3LELSU6FGTUSIIDLANCNFSM5GYHZYAQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Donald W Johnson
205-347-1467
National Water Center
Tuscaloosa AL

@donaldwj, fair enough, but my larger point was that whether it runs, and how effectively it runs, also depend on the ranks when running.
If we remove all knowledge of the ranks, there isn't a justification for deeming the "skip" example invalid.
Further, neither the "skip" example nor any config consisting of four partitions would work properly if there were only two ranks.  Such configs probably also wouldn't operate as intended if there were 12 ranks (though they may still produce the desired output).


Update parsers.pyi

Fix a couple more regressions

@bschnurr that is in the .pyi.ds doc files; I'm not sure it matters, but I want to rework the tool that handles the docstring merging anyway.


Text crop

Trim the top and bottom of text boxes so that the box height corresponds to the cap height of Poppins font.

With Poppins, the margin-top of the ::after pseudo element does not work for some reason.
We should instead use

transform: translateY() to move the text up to the top edge of the text box
margin-bottom to lift the next element up to the baseline of the text


Virtualize RaspberryMatic on Synology NAS

Is there any chance to compile a RaspberryMatic / Buildroot package which can be executed in a x86/x64 virtual machine on my NAS virtual machine manager? Could someone provide such package or could anyone support me to create such?

In principle it should be possible to create a docker/lxccu package right out of the RaspberryMatic/buildroot environment. However, nobody has yet taken the task to actually do that – also probably because this requires quite some deep knowledge about buildroot. And my time is already quite limited, I am afraid. In addition, IMHO such a critical system like a CCU should deserve an own system and should not be put on another host potentially imposing certain runtime problems, etc.
But in principle it should be technically possible, yes.

This point is quite interesting with the docker image, however in my view it has limited sense, as the radio-module for the wireless connection to the various HMIP-elements cannot be directly attached, as the USB dongle is as far as i know only working with the classcial HM-components (non-IP). This point could be of novel interest with a new proper radiomodule adressing all possible HM components, however the market is quite limited for that I think, as a raspy has its advantages and is quite cheap to buy and to run. Besides that there are other projects out with docker images running OCCU, however I found the best support within this one runned by Jens Maus.

Duplicate of #357


[Feature]: Bulk importing data sources

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Add support for bulk importing data sources via a UI wizard and uploading a file (JSON/CSV) containing the data source configuration
Why should this be worked on?
When starting work with AppSmith, you need to create data sources for each database. In a legacy environment, this could include dozens of separate database. And you need to enter the details of each one manually, which is slow and very error prone.

Can I get a loom recording video or steps to reproduce this?

My applications need to connect to ~50 different databases, deployed on different servers and data centers. The new data source wizard only allows you to add them one at a time. I suggest adding a drop-down menu under the '+' button, which allows you to choose whether to use the wizard, or to import a CSV file containing all of the required details for all data sources.

@barakm we'll look into this when we picking up #32298

@Nikhil-Nandagopal shall i work on this?


Dependency details

How is this added as a dependency.....has it been published anywhere yet?

Hi @joreilly . There are no available artifacts yet.
It's on my TODO list for the next few days. I'll ping you as soon as they are.

 Feel free to reach out if you have any issue or feedback.


"ReferenceError: window is not defined" when loading i18next-xhr-backend

Hi. I think I have an issue when using i18next-xhr-backend.
I get an error when I try to use this module.
This is what I wrote in server-side:
var i18next = require('i18next');
var i18nextMiddleware = require('i18next-express-middleware');
var i18nextBackend = require('i18next-node-fs-backend');
var i18nextXHR = require('i18next-xhr-backend');
var i18nextOptions = {debug:true, preload: ['es','fr', 'en-US'], fallbackLng:'en-US', whitelist:['fr','en-US', 'es'],  saveMissingTo:'all', saveMissing:true, ns:'Web_Server', defaultNS:'Web_Server', backend:{loadPath: 'language/static/{{lng}}/{{ns}}.json', addPath: 'language/static/{{lng}}/{{ns}}.missing.json', jsonIndent: 2}};

var port = 80;
var app = express();

i18next
  .use(i18nextMiddleware.LanguageDetector)
  .use(i18nextBackend)
  .use(i18nextXHR)
  .init(i18nextOptions);

Am I doing something wrong ?
The following is the errors I got in the console log:
C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp>node server.js
Local strategy used
i18next::languageUtils: rejecting non-whitelisted language code: en
C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next-xhr-backend\dist\commonjs\index.js:43
    window.console && console.log(e);
    ^

ReferenceError: window is not defined
    at Object.ajax (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next-xhr-backend\dist\commonjs\index.js:43:5)
    at Backend.loadUrl (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next-xhr-backend\dist\commonjs\index.js:127:20)
    at Backend.read (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next-xhr-backend\dist\commonjs\index.js:120:12)
    at Connector.read (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\BackendConnector.js:166:25)
    at Connector.read (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\BackendConnector.js:236:18)
    at C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\BackendConnector.js:247:18
    at Array.forEach (native)
    at C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\BackendConnector.js:246:25
    at Connector.load (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\BackendConnector.js:249:11)
    at C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\i18next.js:224:44
    at Connector.load (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\CacheConnector.js:56:41)
    at C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\i18next.js:223:40
    at I18n.loadResources (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\i18next.js:226:8)
    at I18n.changeLanguage (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\i18next.js:287:10)
    at I18n.init (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\node_modules\i18next\dist\commonjs\i18next.js:185:10)
    at Object.<anonymous> (C:\Personal_Data\Demo_Setup\Node.js\Express\DemoApp\server.js:23:4)

Thank you for your help.

i18next-xhr-backend is only for browsers using xhr.
for node there is remote, db or fs backends:
http://i18next.com/docs/ecosystem/#backends
where remote is basically what xhr is on browser (using request module to load resources from some server)

Thank you for your answer. I thought I must use this module to be able to load resources in the client-side.

on clientside yes. but the error you show is on server.

Since it’s browser only, why do you check for window.console and not just console? @jamuhl
Then we wouldn’t get the error.

You would not get an error...but still xhr backend would not work on nodejs.
But agree...nothing against removing that window.

... still xhr backend would not work on nodejs

Correct, but for people who write tests, which are run with, for example, both mocha and karma, for software that can be configured to be used either in the browser or on node.js, which may use i18next-xhr-backend, it would eliminate the error. However, the tests could also be written differently.

tests should not test sideeffects of using i18n frameworks - you should test your components - which leads to use a mock for i18next.t.
but as you see my last commit i removed the window https://github.com/i18next/i18next-xhr-backend/commit/c8cc0a125b9d6fdce941f87f73f1f626b8363366 - this change will be published with the next version - or if you need that urgent i can publish a new version on npm later today.


 I'm still working my way through the codebase and don't want to break anything unwittingly.
Side note: How have you guys been running the tests? rake -T gives me a huge number of kitchen tests to run, but I definitely don't have time at the moment to run 4 hours of spin-up-configure-spin-down vagrant builds.

@rex I usually only run against a single kitchen test to verify the thing is fixed on the platform I'm trying to work on. I switch around occasionally to avoid breaking stuff, but usually you'll know if you're doing something that will break other platforms.

The main caveat I have for this: you will probably "break" all open PRs.

:+1: LGTM

I can dedicate some cycles for tests this evening.  Would you like me to run off master?

LGTM although @josephholsten brings up a good point and I think we should try to get some more of the open PRs through and then circle back for this.  Just to make life a bit easier.

@josephholsten @zarry You guys are both right. It would be easier and cause fewer conflicts to circle back on this after more of these PRs are accepted and merged. Tabling this for now, no need to spend any cycles :)

@rex I ran some tests and things aren't in the best place.  I had many failures and failures were causing exit on the concurrent test_kitchen run oddly enough.  I am going to create a separate issue for documenting and working through all the test kitchen cases. Likely there will be a handful of PRs off of that resolving issues found during test kitchen runs.

@zarry Thank you for the heads up. I think one of the first orders of business here is refactoring the tests to ensure that Travis doesn't mark a build as passing when it's really failing. Ahem.
I'll see if I can get some of that done this morning but it will likely be afternoon before I get some cycles to work on it.

LGTM as @josephholsten says, it could cause some conflicts with existing PRs, my initial idea was to clean all those PRs to avoid conflicts with new updates. Anyways doesn't look as a big change so it won't be too much problem.

@rex at this point, I'd rather get what we can merged than delay. Care to merge?

We should probably just close this out at this point and run a cookstyle -a on the current state of the repo

Closing since this is pretty outdated and i am covering this in the rewrite branch


temp: set DEFAULT_EXPIRATION_DAYS to 5 mins

For QA purposes all created listings will expire in 5 mins (use the preview link below)
DO NOT MERGE

@Atmosfearful we can probably close this now right?

Closing this for now, can re-open if necessary


Cleanup old files that synapse no longer manages

It turns out that when removing services these files stick around
because synapse stops managing them, so in this patch we clean up
anything in the output directory that shouldn't be there.
Should fix #139
Also adds tests of the file output generator.

Potentially a lot of file system IO going on here, but I think we're already reading all the files off disk and parsing them ... so ... this is probably not so bad.
Maybe we should throw these things in threads or some such...

lgtm! thanks for adding specs!


SFX build: phase 1

Now use commonjs module
Integrate Codelyzer
Update todolist component using OnPush strategy
Fixed tslint semicolon value

Coverage remained the same at 100.0% when pulling 3d1f31eb18ffbc809f4196041f717f9ce883b88f on new_build into bdb070a82df7908a6516024527f60178b74ec59d on master.

Coverage remained the same at 100.0% when pulling<PHONE_NUMBER>f30c438e3de41e35a3d19e946f0af8 on new_build into bdb070a82df7908a6516024527f60178b74ec59d on master.


How to pass config to revive linter?

Sorry it's not supported yet. I think we may add a config item like tool_args.

@max107 please check #34 for how to config extra args for linters

thanks!


sharing mounted drive

I am able to run the example/hellofs and mount it on my windows computer. However, when I try to share the drive, I get an error message "The device or directory does not exist". Any suggestions on how to get the mounted drive to be shared?

To share the drive you must ensure that the drive is created by the SYSTEM account, which creates drives in the global drive namespace. You must also create the file system as a disk file system (I.e. no “volume prefix”). Then you can use Explorer or NetShareAdd to share the drive.
Please see the documentation for DefineDosDeviceW to understand more about drive namespaces.

Thanks @billziss-gh. I am trying to play with the hellofs program. I will create the drive through SYSTEM account as suggested by you. However running hellofs automatically creates a drive. In the hellofs, how can I create a "disk file system" and can I map it to a pre-created drive (created by SYSTEM account)? Is there an example that I can look at?

Sorry for the delay in response. I am just back from vacation.
I recommend focusing on memfs as hellofs is a very basic toy file system.
To start memfs (or hellofs) simply supply the X: drive you want in the command line. This will create a disk file system by default.
> memfs X:

By default the X: drive gets created in your account's "drive namespace" and cannot be shared. If you start it under the SYSTEM account (e.g. using psexec from sysinternals) it will be created as a global drive and you will be able to share it.

Thank you, Bill, for your response. Trust you had a good vacation. I was able to get it to work using psexec. Appreciate much.