Connections are not returned to the connection pool in certain cases leading to permanent "timed out fetching a new connection from the connection pool" until restart

Bug description
Under certain conditions, Prisma doesn't return connections to the connection pool leading to all subsequent queries to return "Timed out fetching a new connection from the connection pool.". This seems to happen if you simultaneously execute more queries than your connection pool limit (e.g. 2 queries with a connection pool size of 1) and those queries return an error (e.g. the database is not available). I managed to reproduce it locally with a connection pool size of 1-3, but it might also happen with bigger connection pool sizes. With a connection pool size of 1, it's 100% reproducible when using the example below, otherwise it might take multiple "runs" until all connections are unusable.
The easiest way to reproduce it is by running Promise.all (like in the reproduction script below), however, this also happens if multiple queries are running at the same time due to other reasons (e.g. because there are 2 incoming requests that will both query the database. This is reproducible by using two setTimeouts to launch two queries instead of Promise.all but it's not 100% reproducible).
This bug is especially problematic when using a serverless database (e.g. AWS Aurora) which sometimes rescales and might return "connection closed, please reconnect" due to this which then triggers this bug and exhausts the connection pool over time, requiring an application restart. However, I also encountered the permanent "timed out fetching a connection..." in other cases which might be related to this.
How to reproduce

Add prisma to a node project, generate a schema.prisma using postgresql (I haven't tested other providers)
Create a model named User (to directly use the example below). It is enough if it just has an id field to satisfy prisma
specify connection_limit=1 in your database connection string (as described here)
Have a local postgres installation ready and make sure you have a way to quickly start/stop it (on Windows, you can use the "Services" tab in the task manager so you can right click on the postgresql service and click start/stop)
Run the following script and start/stop the database as instructed in the console (you can increase the timeout from 5000 to a different value if you need more time to start/stop the database server):

  await prismaClient.$connect();
  while(true) {
    console.log('Stop your database server now!');
    await new Promise(r => setTimeout(r, 5000));
    console.log('Executing queries...');
    try {
      await Promise.all([
        // At least 2 for connection_pool=1. 5 seems to be enough to exhaust a pool of size 3 after 2 runs
        prismaClient.user.findMany(),
        prismaClient.user.findMany(),
        prismaClient.user.findMany(),
        prismaClient.user.findMany(),
        prismaClient.user.findMany(),
      ]);
    } catch(e) {
      // We expect errors here since the DB is down
    }
    console.log('Start your DB again');
    await new Promise(r => setTimeout(r, 5000));
    console.log('Executing test query...');
    await prismaClient.user.findMany();
    console.log('Success');
  }

The script will stop with an "Timed out fetching a new connection from the connection pool. More info: http://pris.ly/d/connection-pool (Current connection pool timeout: 10, connection limit: 1)" error after trying to execute the test query. Otherwise, "Success" is logged and the script starts again. This is useful if you e.g. set the connection_limit=3, then it might take multiple runs until no connections are available.
Note that this script uses Promise.all, however you can also reproduce it without using Promise.all with the following script (only works with a connection_limit=1):
  await prismaClient.$connect();
  while(true) {
    console.log('Stop your database server now!');
    await new Promise(r => setTimeout(r, 5000));
    console.log('Executing queries...');
    try {
      setTimeout(async () => {
        try {
          await prismaClient.user.findMany();
        } catch {}
      }, 0);
      setTimeout(async () => {
        try {
          await prismaClient.user.findMany();
        } catch {}
      }, 0);
    } catch(e) {
      // We expect errors here since the DB is down
    }
    await new Promise(r => setTimeout(r, 3000));
    console.log('Start your DB again');
    await new Promise(r => setTimeout(r, 5000));
    console.log('Executing test query...');
    await prismaClient.user.findMany();
    console.log('Success');
  }

Expected behavior
Faulty connections should be removed from the pool and if I run a new query after some time, it should just create a new connection instead of always returning "timed out fetching a connection from the connection pool"
Prisma information

Environment & setup

OS: Windows
Database:PostgreSQL
Node.js version: v16.13.1

Prisma Version
prisma                  : 3.11.0
@prisma/client          : 3.11.0
Current platform        : windows
Query Engine (Node-API) : libquery-engine b371888aaf8f51357c7457d836b86d12da91658b (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli b371888aaf8f51357c7457d836b86d12da91658b (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core b371888aaf8f51357c7457d836b86d12da91658b (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt b371888aaf8f51357c7457d836b86d12da91658b (at<EMAIL_ADDRESS>Default Engines Hash    : b371888aaf8f51357c7457d836b86d12da91658b
Studio                  : 0.458.0
Preview Features        : interactiveTransactions

@Valerionn thanks for testing and confirming the fix works.


Too many redirects when attempting authorisation from the Gmail app

I'm working on a gmail add-on with the following code:
    function getGoogleService() {
      return OAuth2.createService('google')
        .setAuthorizationBaseUrl('https://accounts.google.com/o/oauth2/auth')
        .setTokenUrl('https://accounts.google.com/o/oauth2/token')
        .setClientId('...')
        .setClientSecret('...')
        .setCallbackFunction('authCallback')
        .setPropertyStore(PropertiesService.getUserProperties())
        .setScope('profile email')
        .setParam('login_hint', Session.getActiveUser().getEmail())
    }

    function authCallback(callbackRequest) {
      var authorized = getGoogleService().handleCallback(callbackRequest);

      if (authorized) {
        return HtmlService.createHtmlOutput(
          'Success! <script>setTimeout(function() { top.window.close() }, 1);</script>'
        );
      } else {
        return HtmlService.createHtmlOutput('Denied');
      }
    }

I've taken it from README.md and it works when the authorisation is done from gmail's desktop web. But when attempting the same from the android Gmail app, the browser shows a TOO_MANY_REDIRECTS error on the https://script.google.com/macros/d/{SCRIPT ID}/usercallback URL, as can be seen on the screenshot.

If I log in first through the web, the add-on works fine on the app. I've tried trello and asana add-ons and the same happens with them, so the issue might not be related to this library.

I tried to replicate this with the Trello and Asana add-ons, but both worked correctly on my phone. I've seen issues similar to this when using multi-login, are by chance logged into more than one Google account on your phone's browser?

I've not been able to duplicate this, but one of our clients is experiencing this issue.
I will follow up with any further details.

Apparently, it is a known issue when users are logged into multiple accounts and the Gmail team is actively working on it.

Apparently, it is a known issue when users are logged into multiple accounts and the Gmail team is actively working on it.

So I just tried logging in with incognito mode and it worked like a charm!

Looks to be a problem outside of this library, closing.

@wittekm - Are you able to repro this on the Gmail desktop web app as well? The original report was about the Android app.

Gmail desktop web app

Just to clarify, you just mean in-browser gmail.com? If so: Yep! And it's reproducible in both Firefox and Chrome.
I've been in contact with an engineer on CardService (the declarative UI part of Gmail apps script addons) who said:

Thanks for sharing this with us. For the error with too many redirects, it is caused by multi login and I can contact the responsible team for ETA.

(Also, here's a view of the redirect loop, if it helps.)

We are seeing this as well and are able to reproduce on Gmail desktop web.
Sign in to multiple Gmail accounts in the same Chrome browser/profile.  Attempt authorization with the second Gmail account and it gives the redirect error.

Hello Eric,
I am using your library with users and when they attempt to log-in with school google account on their personal laptop's or personal desktop browsers.   They seem to get caught in a google authentication loop.  One user this morning said when he logs-in using incognito mode, the loop disappears and authentication works.
Is there an approved workaround based on your OAuth2 webApp example for gmail users not wishing to use incognito browsers?

Sorry for the slow response here. I tried to repro this today but I am having some trouble even getting past the Google auth process when two gmail.com accounts are logged in at the same time.
Regardless, it seems like the core problem lies within the /usercallback endpoint that the library relies on, which is part of the core Apps Script codebase. Looking at some internal notes, a change may have gone out in September that has replaced the infinite redirect with an error page. Is anyone seeing that?
The engineering team is actively working to better support multi-login for Apps Script, specifically to address this use case. Unfortunately I can't give you an estimate as to when that will be in production.

Hi Eric. Thank you for your response. I haven’t attempted it, but could the library sign out any google users signed in that browser and then attempt to authenticate the user. Would that cause browser issues for the user who prefers to stayed signed in?  I did see a scenario where there was an authentication loop up until the user signed out of his other google accounts.

There is an issue tracking this problem on the Gmail Add-ons public issue tracker:
https://issuetracker.google.com/69396852
Please star that issue to get updates and indicate that it is important to you.


Completed Task 591 : Implement Different Types Buttons

Description

Implement Different Types Buttons :

Button

Make the changes to rds-button.stories.tsx, rds-button.tsx file.

Screenshots :

Checklist:

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

Changes Reviewed and PR Approved


possible false positives?

On Android using DoT (RethinkDNS with only your unified hosts list enabled or NextDNS with only your unified hosts list enabled) FMovies and Getaircare cannot be opened. Will you please look into the issues? Thank you!
https://fmovies.to/home
https://getaircare.com/web/#draw?station=UtrechtPijlsweerdPurpleair&pollutant=AQI&country=nl&selectedStationType=1&language=en

Sorry, my mistake, it works with personalDNSfilter. I'm closing this.


Base class for content objects

Refactor some code to allow for a base class on all content objects.
Identify common code shared across the content types (title, catalog) and set up the base class with those attributes.

This ticket has been satisfied with the closure of https://github.com/cjcodeproj/medialibrary/issues/144


Correct way to initialize a model on TPUs

When module init call is wrapped with jax.jit XLA compiler takes a long time to create the model.
Medium sized transformers with 512 dim and 12 layers hit compilation time limit of 1 hour.
Without JIT the model compiles in seconds, but examples do wrap the call.
What is the correct way to initialize the model and what's the reasoning behind wrapping the call with jax.jit?
EDIT: I expanded the example to show that jitted model results in NaN outputs for larger models, while non-jit model works fine. Could that be a compiler bug?
Reproducible example modified from WMT Flax template:
https://colab.research.google.com/drive/1wIE4h4duj0J5dX0angN2fm0vFkRLPqa2?usp=sharing

Using WMT example the issue with difference between jit and non jit versions can be illustrated by these lines:
key = random.PRNGKey(42)
tr_config = TransformerConfig(vocab_size=128, output_vocab_size=128, num_layers=24, deterministic=True, posemb_init=nn.initializers.normal(stddev=0.02))
initial_variables = Encoder(tr_config).init(key, jnp.ones((16, 128), dtype=jnp.int32))

@jax.jit
def jit_apply(vars, x):
    return Encoder(tr_config).apply({"params": vars["params"]}, x)

def simple_apply(vars, x):
    return Encoder(tr_config).apply({"params": vars["params"]}, x)

jit_output = jit_apply(initial_variables, jnp.ones((16, 128)))
simple_output = simple_apply(initial_variables, jnp.ones((16, 128)))

print(simple_output[0,0,:10])
print(jit_output[0,0,:10])

which outputs
[-0.02371583  1.0241227   1.1573081  -0.69314075  0.00546649  0.47282943
-0.1721289   2.0183356  -1.8775052   1.3018961 ]
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]

I found the culprit. Somehow passing params dict to jitted function breaks the execution.
Snippet below works fine:
key = random.PRNGKey(42)
tr_config = TransformerConfig(vocab_size=128, output_vocab_size=128, num_layers=12, deterministic=True, posemb_init=nn.initializers.normal(stddev=0.02))
initial_variables = Encoder(tr_config).init(key, jnp.ones((16, 128), dtype=jnp.int32))

@jax.jit
def ext_apply(x):
    return Encoder(tr_config).apply({"params": initial_variables["params"]}, x)

bound_output = ext_apply(jnp.ones((16, 128)))

While that solves the problem, it is still interesting to know why this happens and why one should or should not JIT the init call.

This looks like a compilation bug in XLA. What device did you use?

Hi @igrekun -- this may be a JAX or XLA bug. Behavior under jit should not change the results in this way. Could you share a simple stand-alone repro?
Also your second example (where you close over init_variables) isn't good -- that way the variables are compiled as constants leading to really larged compiled programs, as well as inability for the jitted function to behave different when parameters change.

Used the TPU.
Added the simple example at the end of the original colab that I linked. Here it is
https://colab.research.google.com/drive/1wIE4h4duj0J5dX0angN2fm0vFkRLPqa2?usp=sharing
The weird part is that the bug manifests itself when the model becomes large enough. Under 6 layer depth it works fine.
If colab is not convinient here is all the code
class SimpleModel(nn.Module):
    depth: int = 12
    @nn.compact
    def __call__(self, x):
        for i in range(self.depth):
            residual = x
            x = nn.LayerNorm()(x)
            x = nn.SelfAttention(
                num_heads=8,
                dtype=jnp.float32,
                qkv_features=512,
                deterministic=True,
            )(x)
            x = x + residual
        return x

def get_model(input_shape):
    key = random.PRNGKey(42)
    return SimpleModel().init(key, jnp.ones(input_shape, dtype=jnp.float32))["params"]

@jax.jit
def test_jit_preds(params, x):
    return SimpleModel().apply({"params": params}, x)

def test_plain_preds(params, x):
    return SimpleModel().apply({"params": params}, x)

output = test_jit_preds(params, jnp.ones((128, 128, 512)))
print(output[0,0,:10])
output = test_plain_preds(params, jnp.ones((128, 128, 512)))
print(output[0,0,:10])

The output is
[nan nan nan nan nan nan nan nan nan nan]
[1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]

Could you try initialising with random noise like random.normal(random.PRNGKey(1), (128, 128, 512))?

Expanded example to include noise init as well as noise test input. Doesn't seem to make NaNs go away though ):

@igrekun are you hunting down XLA bugs or are just having bad luck today? ;)
I cannot reproduce this issue on a normal TPU machine also so this also seems related to Colab TPU somehow.

@jheek XLA proved to compile more efficient code for the type of models I'm working with so I went to porting all my code from pytorch to JAX.
I guess just bad luck (:
Also, seems like this one might be related to the recent one on JAX repo
https://github.com/google/jax/issues/6558
Seems very similar to me.

Ah good catch it's probably that. Have you tried the single device pmap workaround? In that case we would be certain

Yeah, it is the case. Single device pmap produces matching outputs. The code is at the end of the original colab notebook. (:

Nice, I'll close this issue because it will be fixed int the upcoming jaxlib release


NO longer compatible with android 14 says its must compile to SDK 35 instead of 34...

Warning: The plugin worldtime requires Android SDK version 35 or higher.
For more information about build configuration, see https://flutter.dev/to/review-gradle-config.
Your project is configured to compile against Android SDK 34, but the following plugin(s) require to be compiled against a higher Android SDK version:

worldtime compiles against Android SDK 35

hi @mikejones3 it is recommended by Android to always target the latest version of the Android SDK (which is now API 35). I recommend upgrading your flutter project's target SDK to 35.


Vapour Pressure 118/117

On some pages when users attempt to add the numeric value for Vapour Pressure, and it is 118/117, it changes the number to 'illegible'.
Users are  currently leaving these values 'empty' and making a Transcriber comment to highlight the issue as occurring alongside filling out the Google Issues Form.
Some examples:
https://citsci.geog.mcgill.ca/en/transcriptions/2692/edit
https://citsci.geog.mcgill.ca/en/transcriptions/2620/edit (4th 7:48pm, 10:48pm)
https://citsci.geog.mcgill.ca/en/transcriptions/2609 (29th 10:48pm)

We think this is because the field ID is 118, and similarly for other similar field with ID 117, etc. When users enter 117 ,118 and similar values, there is a conflict and the value defaults to "illegible"

Tested and values appear as 117, 118 and 119 on the test site on 2023-02-28


Extra object creation

https://github.com/floodlight/floodlight/blob/14e52d07bbbd9e32b2024c58817b084ea3cbcd50/src/main/java/net/floodlightcontroller/routing/web/PathResource.java#L66
At Above link I think you can use result object
i.e. result.getPath();
If not then kindly explain
and why you didn't send all result object?
Is hop_count into this object is correct and usable?

@pervez8ktt We typically reserve "issue" as a place to resolve Floodlight bugs. Is this a potential Floodlight bug that needs to be resolved? If not, I'll close this issue for now and please post your questions to our emailing list so we can discuss there. Feel free to re-open it if you think this is a bug.
Thanks very much for your understanding!


Feature/usage tracking, blueprint and pipeline builders, tests

Issue #, if available: #149
Description of changes:
Feature/usage tracking, blueprint and pipeline builders, tests for usage and builders, CDK moved to 1.119
The PR for patterns is coming (pipelines and builders).
GitHub actions to add tests will also be added.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@shapirov103 meta comment here...we should think about how to organize stacks and files in each stack. For instance, do we want to move the pipeline dir into stacks and then have pipeline directory and a cluster directory. Within the pipeline directory perhaps we have a stack.ts, a builder.ts, and a stage.ts. Same thing with the cluster directory...perhaps we have a stacks.ts and a builder.ts?
Not married to an approach but something to consider.

@shapirov103 meta comment here...we should think about how to organize stacks and files in each stack. For instance, do we want to move the pipeline dir into stacks and then have pipeline directory and a cluster directory. Within the pipeline directory perhaps we have a stack.ts, a builder.ts, and a stage.ts. Same thing with the cluster directory...perhaps we have a stacks.ts and a builder.ts?
Not married to an approach but something to consider.

We can apply this, it is a bit more deterministic and consistent to what we have now. I will defer this one, probably a separate task or could be handled within your ES PR.

@kcoleman731 @askulkarni2 please take another look.
Also the the PR to the patterns that was validated to work in my account (although against a branch).
https://github.com/aws-samples/ssp-eks-patterns/pull/2


Drop LISH_ROOT

Closes #1794

Coverage increased (+0.005%) to 82.403% when pulling 0e1c993567a9fda9671dd982acf953d3270b755e on eatonphil:drop-lish-root-constant into 5ecdb6f4c1644aa39292cdd61f6d8c3d3aa1ad62 on linode:master.

@mparke probably because I haven't rebased. Rebasing now.

Rebased, create page working.

Coverage increased (+0.005%) to 82.248% when pulling af77932f1c90bd60963198942bd05d034e30581f on eatonphil:drop-lish-root-constant into 95d53c9ea931ad4806f511bc301aba4afebf17f2 on linode:master.

Coverage increased (+0.005%) to 82.248% when pulling a25316ba9c6ffd0cfd02c8097b5e2625f0364e9f on eatonphil:drop-lish-root-constant into 95d53c9ea931ad4806f511bc301aba4afebf17f2 on linode:master.

merge conflicts, rebase again?

Coverage increased (+0.005%) to 82.26% when pulling 3246c154824241019ea816fe7069940c102f83d6 on eatonphil:drop-lish-root-constant into cc9b965f155314f21bf80bd32441bd617788b95c on linode:master.

Coverage increased (+0.005%) to 82.276% when pulling 2b7fc7d53a22ade705933d5a9d44706de70c4704 on eatonphil:drop-lish-root-constant into 75694de8aabd29bdd341369b32c38816245a8932 on linode:master.

Thanks!


hotfix: auth redirect

:tada: This PR is included in version 1.28.1-dev.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[ERROR] IndexError: list index out of range

Traceback (most recent call last):
File "pokecli.py", line 503, in
main()
File "pokecli.py", line 75, in main
bot.start()
File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 75, in start
self._setup_api()
File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 678, in _setup_api
self.update_web_location()
File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 492, in update_web_location
gym_longitude=fort.get('longitude')
File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
return request.call()
File "/root/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call
result = self._call()
File "/root/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call
return PGoApiRequest.call(self)
File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 129, in request
response_dict = self._parse_main_response(response, subrequests)
File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 359, in _parse_main_response
response_proto_dict = self._parse_sub_responses(response_proto, subrequests, response_proto_dict)
File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses
request_entry = subrequests_list[i]
IndexError: list index out of range
what this is? :/

I just got the same thing.
Works on iOS app still, so not a ban.

Getting this aswell. Bot runs for like 1 Minute, then exits with IndexError on that subrequests_list

Same, no changes in code or config

me also get
2016-08-09 02:32:27,094 [PokemonGoBot] [INFO] Found encrypt.so! Platform: darwin Bot root directory: /Users/z4q/Code/pokemongo/bot01
2016-08-09 02:32:27,095 [PokemonGoBot] [INFO]
2016-08-09 02:32:31,235 [PokemonGoBot] [INFO] [bot_start] Starting bot...
2016-08-09 02:32:31,998 [       cli] [INFO]
2016-08-09 02:32:31,999 [       cli] [INFO] Ran for 0:00:08
2016-08-09 02:32:31,999 [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
2016-08-09 02:32:31,999 [       cli] [INFO] Travelled 0.00km
2016-08-09 02:32:31,999 [       cli] [INFO] Visited 0 stops
2016-08-09 02:32:31,999 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-09 02:32:31,999 [       cli] [INFO] Threw 0 pokeballs
2016-08-09 02:32:31,999 [       cli] [INFO] Earned 0 Stardust
2016-08-09 02:32:31,999 [       cli] [INFO]
2016-08-09 02:32:31,999 [       cli] [INFO] Highest CP Pokemon:
2016-08-09 02:32:32,000 [       cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 502, in
main()
File "pokecli.py", line 133, in main
raise e
IndexError: list index out of range

me2 error appears since 10min ago no changed were made

It works now, go try.

Same here, just to note, I get the same error also on pokemongo-map-node, but pokemongo-bot, which is java, works fine.

still error on me

using latest dev version

perhaps servers unstable. please have some patience and try later :)

same here, last 10 minutes it crashed out, Traceback (most recent call last):
File "pokecli.py", line 502, in
main()
File "pokecli.py", line 133, in main
raise e
IndexError: list index out of range
2016-08-08 20:42:12,175 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/usr/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/usr/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/Library/Python/2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/Library/Python/2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/Library/Python/2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/Library/Python/2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-08 20:42:12,176 [sentry.errors.uncaught] [ERROR] [u'IndexError: list index out of range', u'  File "pokecli.py", line 502, in ', u'  File "pokecli.py", line 133, in main']

unknown 7 incoming : D

@ocoot could you change the title to something like 'IndexError: list index out of range'? Perhaps more of those affected can see this and share info

Same here, this is super weird. Here is what happens on my three bots A, B, C.
A: Ran fine throughout this episode without any problem:
B and C: Crashed simultaneously when receiving an abnormally short response from the server.
I then tried to restart B and C a couple times and they kept receiving too short responses. I setup the bot to keep trying after 30 sec when that happened, but always receiving these shorter responses.
Then I waited for 5-10 min, and now I can use B and C again.
So to me it's clear: Niantic is playing with our bots using the couple fields of the API that we still haven't figured out to see what accounts and how many are dropping.
The fact that A kept running is maybe because they changed the server response only on a limited set of accounts, so as to not disturb / flag their test to strongly.
But, hey I might be completely wrong.

Mine ran for 2.5 hours before this showed up. Connection issues with the servers. If I run it again the error comes immediately. So it's probably (hopefully) something that will sort itself out.
2016-08-08 20:25:16,149 [  SpinFort] [INFO] [spun_pokestop] Spun pokestop Alien et Femme. Experience awarded: 50. Items awarded: {u'Pokeball': 3}
2016-08-08 20:25:19,187 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Majoor Bosshardtburgh - 0.06km (attraction of lure 0.14km)
2016-08-08 20:25:45,314 [pokemongo_bot.api_wrapper] [WARNING] Server seems to be busy or offline - try again - 4/15
2016-08-08 20:25:46,532 [pokemongo_bot.api_wrapper] [WARNING] Server seems to be busy or offline - try again - 5/15
2016-08-08 20:25:48,188 [pokemongo_bot.api_wrapper] [WARNING] Server seems to be busy or offline - try again - 6/15
2016-08-08 20:26:31,415 [       cli] [INFO]
2016-08-08 20:26:31,419 [       cli] [INFO] Ran for 2:25:53
2016-08-08 20:26:31,420 [       cli] [INFO] Total XP Earned: 10650  Average: 4380.44/h
2016-08-08 20:26:31,421 [       cli] [INFO] Travelled 1.66km
2016-08-08 20:26:31,422 [       cli] [INFO] Visited 41 stops
2016-08-08 20:26:31,422 [       cli] [INFO] Encountered 40 pokemon, 40 caught, 41 released, 0 evolved, 0 never seen before
2016-08-08 20:26:31,423 [       cli] [INFO] Threw 40 pokeballs
2016-08-08 20:26:31,424 [       cli] [INFO] Earned 4673 Stardust
2016-08-08 20:26:31,424 [       cli] [INFO]
2016-08-08 20:26:31,425 [       cli] [INFO] Highest CP Pokemon: Pidgeotto [CP: 765] [IV: 8/3/5] Potential: 0.36
2016-08-08 20:26:31,425 [       cli] [INFO] Most Perfect Pokemon: Magikarp [CP: 97] [IV: 12/15/13] Potential: 0.89
Traceback (most recent call last):
  File "pokecli.py", line 503, in <module>
    main()
  File "pokecli.py", line 89, in main
    bot.tick()
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/__init__.py", line 434, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_fort.py", line 82, in work
    if not step_walker.step():
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/step_walker.py", line 57, in step
    self.bot.heartbeat()
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/__init__.py", line 978, in heartbeat
    self.update_web_location()  # updates every tick
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/__init__.py", line 492, in update_web_location
    gym_longitude=fort.get('longitude')
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
    return request.call()
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call
    result = self._call()
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
    response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 129, in request
    response_dict = self._parse_main_response(response, subrequests)
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 359, in _parse_main_response
    response_proto_dict = self._parse_sub_responses(response_proto, subrequests, response_proto_dict)
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses
    request_entry = subrequests_list[i]
IndexError: list index out of range

No, I don't think it is a server issue. I think that they are actively messing with it, probably experimenting their next API modification, and making sure it weeds out the intended "customers".

its working again now btw

Like I said, it seems to be account dependent (my bot C still crashes on this).
So, I fear that this is a prelude to the worse, and we might need the magic of 'wchill' (one of the core devs of last API fix for those who don't know) sooner than we might have liked...

Same problem here

@ocoot I would recommend that your remove your image in attachement. It makes your account easily identifiable. Not that Niantic would care to address botting on a case-by-case basis, but you are better off remaining stealthy I think.

ok bro. sorry :) @AllYourBasesAreBelongToUs

My "stable" bot does not have this issue, but my dev Bot has it ..

Yes, weird, it is on and off (but remains on for now on my bot C). But, maybe this is just a server issue after all, and I am just being paranoïd.

Could be worth mentioning that out of my 4 bots the only one up and running is the one that is botting in my country.  Without updating anything.
It seems that this error appears occasionally. Weird.

I'm seeing the same, first account running still. 'Bot' account getting the error.

Well, got myself a nice slew of messages, full report here:
Traceback (most recent call last):
  File "pokecli.py", line 503, in <module>
    main()
  File "pokecli.py", line 89, in main
    bot.tick()
  File "/home/pokemon/PokemonGo-Bot/pokemongo_bot/__init__.py", line 441, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/home/pokemon/PokemonGo-Bot/pokemongo_bot/cell_workers/spin_fort.py", line 44, in work
    player_longitude=f2i(self.bot.position[1])
  File "/home/pokemon/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
    return request.call()
  File "/home/pokemon/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call
    result = self._call()
  File "/home/pokemon/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "/home/pokemon/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
    response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
  File "/home/pokemon/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 129, in request
    response_dict = self._parse_main_response(response, subrequests)
  File "/home/pokemon/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 359, in _parse_main_response
    response_proto_dict = self._parse_sub_responses(response_proto, subrequests, response_proto_dict)
  File "/home/pokemon/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses
    request_entry = subrequests_list[i]
IndexError: list index out of range
2016-08-08 15:19:33,763 [sentry.errors] [ERROR] Sentry responded with an error: 'module' object has no attribute 'HTTPSHandler' (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/home/pokemon/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/home/pokemon/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/home/pokemon/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 44, in urlopen
    class ValidHTTPSHandler(urllib2.HTTPSHandler):
AttributeError: 'module' object has no attribute 'HTTPSHandler'
2016-08-08 15:19:33,764 [sentry.errors.uncaught] [ERROR] [u'IndexError: list index out of range', u'  File "pokecli.py", line 503, in <module>', u'  File "pokecli.py", line 89, in main', u'  File "pokemongo_bot/__init__.py", line 441, in tick', u'  File "pokemongo_bot/cell_workers/spin_fort.py", line 44, in work', u'  File "pgoapi/pgoapi.py", line 122, in function', u'  File "pokemongo_bot/api_wrapper.py", line 106, in call', u'  File "pokemongo_bot/api_wrapper.py", line 63, in _call', u'  File "pgoapi/pgoapi.py", line 220, in call', u'  File "pgoapi/rpc_api.py", line 129, in request', u'  File "pgoapi/rpc_api.py", line 359, in _parse_main_response', u'  File "pgoapi/rpc_api.py", line 376, in _parse_sub_responses']

Dev commit: f648be31c15d0143bccc0531571b2d00fd88ec4d

@JohnAlbert1 I've the same problem and the bot is set to work 20km away from my current position

From the looks of it, it seems like they are messing with the API again to throw the bots out (since Unknown6 is already known).

For me i've got three bots working fine for the last hour or so, but one just won't work at all. I tried the following:

delete last location data and cell data from /data folder

Remove this part from the config:
 "config":{
   "lure_attraction": true,
   "lure_max_distance": 2000
 }

Set health_record to false in the config.

The following worked for one bot but not for another. Here is the error:
2016-08-08 22:22:40,188 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Lake Pit Viewing Station (71c496edb8a945c884f45200ab1d821e.16)
2016-08-08 22:22:47,451 [       cli] [INFO]
2016-08-08 22:22:47,451 [       cli] [INFO] Ran for 0:06:34
2016-08-08 22:22:47,452 [       cli] [INFO] Total XP Earned: 780  Average: 7132.47/h
2016-08-08 22:22:47,452 [       cli] [INFO] Travelled 0.01km
2016-08-08 22:22:47,452 [       cli] [INFO] Visited 3 stops
2016-08-08 22:22:47,452 [       cli] [INFO] Encountered 3 pokemon, 3 caught, 0 released, 0 evolved, 0 never seen before
2016-08-08 22:22:47,453 [       cli] [INFO] Threw 5 pokeballs
2016-08-08 22:22:47,453 [       cli] [INFO] Earned 300 Stardust
2016-08-08 22:22:47,453 [       cli] [INFO]
2016-08-08 22:22:47,453 [       cli] [INFO] Highest CP Pokemon: Cubone [CP: 433] [IV: 14/4/11] Potential: 0.64
2016-08-08 22:22:47,454 [       cli] [INFO] Most Perfect Pokemon: Ponyta [CP: 403] [IV: 11/10/8] Potential: 0.64
Traceback (most recent call last):
File "pokecli.py", line 501, in
main()
File "pokecli.py", line 132, in main
raise e
IndexError: list index out of range

Now everything is working fine again a real strange behaviour.

For what it's worth, I have scripts that run each bot in a term window and launch with an infinite loop so if a bot craps out, it automatically restarts.

I did this under "MoveToFort":
lure_attraction": **false**
Seems to do the trick for me, no more crashing for over 10 minutes.

everything works now without tricking the code :dancer:

Working on my end now, was having same issues earlier. We'll see what happens.......

The bot hasn't crashed but now what happens is this:
Bot number 1:
2016-08-08 22:57:15,894 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop S. M. U. R. R. F. Tree Tribute Mural - 0.09km (attraction of lure 0.12km)
2016-08-08 22:57:18,488 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Palisades Park (554204bdc6cb4733955f11f7e6d57b8a.16)
2016-08-08 22:57:24,169 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop S. M. U. R. R. F. Tree Tribute Mural - 0.08km (attraction of lure 0.12km)
2016-08-08 22:57:26,433 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Palisades Park (554204bdc6cb4733955f11f7e6d57b8a.16)
2016-08-08 22:57:31,769 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop S. M. U. R. R. F. Tree Tribute Mural - 0.06km (attraction of lure 0.11km)
2016-08-08 22:57:34,372 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Palisades Park (554204bdc6cb4733955f11f7e6d57b8a.16)
2016-08-08 22:57:39,742 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop S. M. U. R. R. F. Tree Tribute Mural - 0.05km (attraction of lure 0.10km)
2016-08-08 22:57:42,844 [  SpinFort] [INFO] [pokestop_out_of_range] Pokestop S. M. U. R. R. F. Tree Tribute Mural out of range.
2016-08-08 22:57:42,844 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-08 22:57:42,856 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Santa Monica Pier Aquarium - 0.08km (attraction of lure 0.08km)
2016-08-08 22:57:44,719 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Santa Monica Pier Aquarium - 0.07km (attraction of lure 0.07km)
Bot number 2:
2016-08-08 22:52:07,167 [FollowSpiral] [INFO] [position_update] Walking from (34.061419122967344, -118.35571762514489, 0) to (34.061419122967344, -118.35635875771466, 0) (59.0599173102 m)
2016-08-08 22:52:14,112 [FollowSpiral] [INFO] [position_update] Walking from (34.061419122967344, -118.35635875771466, 0) to (34.061419122967344, -118.35699989028443, 0) (59.0599173102 m)
2016-08-08 22:52:22,399 [FollowSpiral] [INFO] [position_update] Walking from (34.061419122967344, -118.35699989028443, 0) to (34.061419122967344, -118.3576410228542, 0) (59.0599173102 m)
2016-08-08 22:52:29,652 [FollowSpiral] [INFO] [position_update] Walking from (34.061419122967344, -118.3576410228542, 0) to (34.061419122967344, -118.35828215542396, 0) (59.0599173102 m)
2016-08-08 22:52:36,357 [FollowSpiral] [INFO] [position_update] Walking from (34.061419122967344, -118.35828215542396, 0) to (34.06205193822608, -118.35828215542396, 0) (70.3658225492 m)
2016-08-08 22:52:45,127 [FollowSpiral] [INFO] [position_update] Walking from (34.06205193822608, -118.35828215542396, 0) to (34.06268475348481, -118.35828215542396, 0) (70.3658225492 m)
2016-08-08 22:52:54,360 [FollowSpiral] [INFO] [position_update] Walking from (34.06268475348481, -118.35828215542396, 0) to (34.06331756874354, -118.35828215542396, 0) (70.3658225492 m)
2016-08-08 22:53:03,498 [FollowSpiral] [INFO] [position_update] Walking from (34.06331756874354, -118.35828215542396, 0) to (34.063950384002275, -118.35828215542396, 0) (70.3658225492 m)
And so forth, this happens with every bot now. It either gets stuck after a while with FollowSpiral or SpinFort.

@firzzen do you have enough space in your pokemon bag?

Yes of course @RaizenInstinct , it's multiple bots, not just one.

Now it's working fine. Was walking, walking, walking, walking...being too far from pokestops etc but then suddenly all of them started working properly.
Must be a server related issue?

bot crashed after trying to fix softban?
2016-08-09 07:17:17,414 [PokemonGoBot] [INFO] [bot_start] Starting bot...
2016-08-09 07:17:19,645 [CollectLevelUpReward] [INFO] [level_up_reward] Received level up reward: []
2016-08-09 07:17:19,646 [IncubateEggs] [INFO] [next_egg_incubates] Next egg incubates in 2.66 km
2016-08-09 07:17:22,629 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Charmander appeared! [CP 423] [Potential 0.47] [A/D/S 1/8/12]
2016-08-09 07:17:26,285 [PokemonCatchWorker] [WARNING] [softban] Failed to use berry. You may be softbanned.
2016-08-09 07:17:28,355 [       cli] [INFO]
2016-08-09 07:17:28,356 [       cli] [INFO] Ran for 0:01:11
2016-08-09 07:17:28,356 [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
2016-08-09 07:17:28,356 [       cli] [INFO] Travelled 0.00km
2016-08-09 07:17:28,356 [       cli] [INFO] Visited 0 stops
2016-08-09 07:17:28,357 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-09 07:17:28,357 [       cli] [INFO] Threw 0 pokeballs
2016-08-09 07:17:28,357 [       cli] [INFO] Earned 0 Stardust
2016-08-09 07:17:28,357 [       cli] [INFO]
2016-08-09 07:17:28,357 [       cli] [INFO] Highest CP Pokemon:
2016-08-09 07:17:28,357 [       cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 521, in
main()
File "pokecli.py", line 95, in main
bot.tick()
File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 446, in tick
if worker.work() == WorkerResult.RUNNING:
File "/root/PokemonGo-Bot/pokemongo_bot/cell_workers/catch_visible_pokemon.py", line 36, in work
return self.catch_pokemon(self.bot.cell['catchable_pokemons'].pop(0))
File "/root/PokemonGo-Bot/pokemongo_bot/cell_workers/catch_visible_pokemon.py", line 48, in catch_pokemon
return_value = worker.work()
File "/root/PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 114, in work
self._do_catch(pokemon, encounter_id, catch_rate_by_ball, is_vip=is_vip)
File "/root/PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 332, in _do_catch
'success_percentage': self._pct(catch_rate_by_ball[current_ball]),
IndexError: list index out of range

:+1:

there was a refactor of pokemon_catch_worker that may have introduced this

Try this
diff --git a/pokemongo_bot/cell_workers/pokemon_catch_worker.py b/pokemongo_bot/cell_workers/pokemon_catch_worker.py
index a0711b4..ae55b7d 100644
--- a/pokemongo_bot/cell_workers/pokemon_catch_worker.py
+++ b/pokemongo_bot/cell_workers/pokemon_catch_worker.py
@@ -252,6 +252,7 @@ class PokemonCatchWorker(BaseTask):

             # softban?
             else:
+                new_catch_rate_by_ball = catch_rate_by_ball
                 self.emit_event(
                     'softban',
                     level='warning',
@@ -260,6 +261,7 @@ class PokemonCatchWorker(BaseTask):

         # unknown status code
         else:
+            new_catch_rate_by_ball = catch_rate_by_ball
             self.emit_event(
                 'threw_berry_failed',
                 formatted='Unknown response when throwing berry: {status_code}.',

Commenting https://github.com/PokemonGoF/PokemonGo-Bot/blob/master/pokecli.py#L84 seems to workaround this issue.

I just submitted #3197 to fix it

I use your fix but after a 2 minutes run, the issue came back but in an other file (perhaps the issue is different ?) :
Traceback (most recent call last):   File "pokecli.py", line 521, in <module>     main()   File "pokecli.py", line 81, in main     bot.start()   File "/home/sky/PokemonGo-Bot/pokemongo_bot/__init__.py", line 82, in start     self._setup_api()   File "/home/sky/PokemonGo-Bot/pokemongo_bot/__init__.py", line 690, in _setup_api     self.update_web_location()   File "/home/sky/PokemonGo-Bot/pokemongo_bot/__init__.py", line 504, in update_web_location     gym_longitude=fort.get('longitude')   File "/home/sky/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function     return request.call()   File "/home/sky/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call     result = self._call()   File "/home/sky/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call     return PGoApiRequest.call(self)   File "/home/sky/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call     response = request.request(self._api_endpoint, self._req_method_list, self.get_position())   File "/home/sky/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 129, in request     response_dict = self._parse_main_response(response, subrequests)   File "/home/sky/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 359, in _parse_main_response     response_proto_dict = self._parse_sub_responses(response_proto, subrequests, response_proto_dict)   File "/home/sky/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses     request_entry = subrequests_list[i] IndexError: list index out of range

Can anyone comment on the fix from #3197 ? Has it improved? I probably should pull latest dev though, haven't done it since Sunday morning :)

The lastest dev with this fix runs like a charm since 2 hours.
( I probably fixed the file like a banana ... )


 It could probably be done with OS specific functions. If anyone want to help on that, let me know.

It seems using hooks on Windows (is there something like that on Linux and Mac?) could work but it's low level so we would need to compile a module to access it: https://learn.microsoft.com/en-us/windows/win32/winmsg/using-hooks.
Another solution could be to integrate a simple python script, which doesn't require compiling a module. If python is not available on the platform, it would simply not be used. https://github.com/boppreh/keyboard
There is a proposal about including that in Godot but I don't think it's being worked on: https://github.com/godotengine/godot-proposals/issues/1919

Godot by its nature is restricted to minimal OS-level features...
This is a bit of a problem for an application like this... if you dont fully trust the games running properly or leaving it unattended.
Perhaps a batch file wrapper around the whole Godot game launcher? This would handle the OS-level stuff and Godot would be just one step in the batch file to pick what process to launch next. I'm not really great with Windows, so not sure what the best solution would be.

Honestly this feature is just a bonus. The application already watches the PID that was launched so I won't get stuck if the game crashes or something. It would just make life easier if we could force kill the game without going back to the launcher to hit the kill button.
I think I'll go with the python version. This app is aimed at developer showcasing their games so we can assume they have python or at least know how to get it if they want to use this feature.

I'm part of a local nonprofit group that is making an arcade machine to showcase local games and for game jams.
Planning on trying your launcher for this purpose .... so I may be a lot more active here lol


Change message without dismissing and showing dialog

I have an issue/feature I am trying to get working.  I am able to use the project just fine.  However, when using the Show function I am having to show without a progress which should take me into the showStatus function.  Let's say my application is processing 20 different messages.  for each one that is shown it appears that the dialog is dismissing and then showing again for each message.  I would rather just change the message and keep the same dialog open.  So, I began looking for a solution to this.  When looking at the showStatus function within AndHud is it not a bug that the function is going to call DismissCurrent (context); without any criteria?  This is the 3rd statement in the function.  The 4th and 5th actually has criteria before the DismissCurrent is called.  Looking at the else of the "if (CurrentDialog == null)" seems like it would do what I want it to but I believe because of the dismiss that is happening it will never keep the same dialog open and just change the text. Is this correct?

I think my assumption was correct.  When using the progress parameter which goes through the showProgress function the dialog is not dismissed first and instead just changes the text of the dialog.


Ride bug

You can't ride on Silverfishes etc too. You can only ride on horses.. Please fix this! (You can ride on every mob/animal with NPC)

This is not a problem from ViaVersion

Yes it is. With 1.8 you can ride on every animal and mob

What plugin do you use? I'll take a look

NPC for riding at mobs

@davewanders Can you please give me a link? :)

http://dev.bukkit.org/bukkit-plugins/citizens/

@davewanders Oh I see. Let me check

Could you fix that?

I'm sorry, this is at Citizens end. I can be passenger of every entity with the normal Bukkit API.
https://fileserver.matsv.nl/media?id=b36b71669d157ec30a46a07c9d4f83d9
I'll take a look at the citizens source later

Allright, could you look at the other bugs?

I close the issue for now. This is something at citizens end. Because it's open-source I might take a look at it later.


Issue 524/isolate gatsbyv5

Opening PR which isolates gatsby v5 dependency work.
Addresses #524 at closing and is a rollback of Slices API activity in #562 and #535

@willemarcel can we close this PR? We implemented gatsby 5 in #535


pypiwin32 220 sucks, install 221 manually

boy, Windows really took my time to make it work!

I don't own a Windows box, so I have no idea what to do with this PR.

I might need to write a fresh PR to handle this. It needs simplifying a little.

The update has gone through. Sorry to keep it waiting so long!


pre-commit hooks that check the format of code

Add a simple pre-commit hook that ensures that code is formatted before committing.

Tried to add ghooks.cr, however it uses ln -F which is not compatible with the alpine distro.
I'll see if I can make a fix to get it to support alpine.


[SPARK-46755][K8S][INFRA][DOCS] Upgrade Volcano to 1.8.2

What changes were proposed in this pull request?
This PR aims to upgrade Volcano to 1.8.1 in K8s integration test document and GitHub Action job.
Why are the changes needed?
To bring the latest bug fixes in addition to the test coverage for Volcano scheduler 1.8.2.

https://github.com/volcano-sh/volcano/releases/tag/v1.8.2

Note that the following Volcano bug fix reveals our test suite issue. So, it's disabled in Volcano testing.

https://github.com/volcano-sh/volcano/issues/3271

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the CIs.
Was this patch authored or co-authored using generative AI tooling?
No.

Thank you, @HyukjinKwon ! I'll wait and merge after passing the CIs.

Thank you, @yaooqinn .

Thank you all. Merged to master.


Install plugin on windows

I have been trying for hours to install this plugin alongside my windows PlotJuggler installation. I get an error when I build using CMake "MinGW makefile" ..
PlotJuggler_LIBRARY and PlotJuggler_LIBRARY_DIR can't be found.
Would love to use plotjuggler to reverse engineer some Canbus signals and this plugin should come standard with plotjuggler.

For CMake to found the PJ Libraries, I install PJ systemwide (in linux, with sudo make install). You can try its' Windows counterpart.

For CMake to found the PJ Libraries, I install PJ systemwide (in linux, with sudo make install). You can try its' Windows counterpart.

I am not great with this stuff and I seem to always get errors. I have used the PJ windows installer and plot juggler runs but now I'm not sure how to add plugins.

I know this is rather old, but I can't get this plugin to build in Linux either. It seems like the way to build plugins is broken. I installed Plot Juggler as described and when I try to build this project it can't find it
I am running:
mkdir build; cd build
cmake -D Qt5_DIR=~/Qt/5.15.8/gcc_64/lib/cmake/Qt5/ ..
And I get
CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find PlotJuggler (missing: PlotJuggler_LIBRARY)
Call Stack (most recent call first):
/usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
cmake/FindPlotJuggler.cmake:54 (find_package_handle_standard_args)
CMakeLists.txt:36 (find_package)
This is on Ubuntu 21.10

Hi @Inquisitive-ME, Can you verify the following directory/files exist? If you were able to install Plotjuggler systemwide, those should exist.
/usr/local/include/PlotJuggler
/usr/local/lib/libplotjuggler_plugin_base.a

I verified your problem by removing Plotjuggler installation from those directories and got the same error you got. After I installed PJ again (not as catkin package, but as a regular cmake project using following schema). I again was able to build this plugin. I hope that you also succeed
cd Plotjuggler
mkdir build; cd build;
cmake ..
make -j12
sudo make install

Yes I have both that directory and the library. I don't understand how this could work PlotJuggler does not install any cmake files so I don't see how find package is supposed to be able to find it.
I was able to get cmake to succeed by setting set(PlotJuggler_LIBRARY /usr/local/lib/libplotjuggler_plugin_base.a)
But then the build fails with:
make[2]: *** No rule to make target '/usr/local/lib/libplotjuggler_plugin_base.a', needed by 'libDataLoadCAN.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:185: CMakeFiles/DataLoadCAN.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/local/lib/libplotjuggler_plugin_base.a', needed by 'libDataStreamCAN.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:214: CMakeFiles/DataStreamCAN.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

So clearly that's not the correct way to find the PlotJuggler library. Also another note, master does not build for me I had to checkout bump-dbcppp-to-v3.2.1

Hi @Inquisitive-ME,
I'm having a similar problem. What I'm finding is that my "libplotjuggler_plugin_base.a" is just not being built, or at least it's not located in /usr/local/lib or in the PJ build directory. I tried an extra time after satisfying all the dependencies except for mosquitto. Still, I'm not getting the libplotjuggler_plugin_base.a. All I can see in /usr/local/lib/ are these two files:
libplotjuggler_base.a
libplotjuggler_qwt.a
Could you double check that you really have libplotjuggler_plugin_base.a. Sorry to sound like I doubt you, not intended. I just want to ensure it's the same problem. It's also easy to overlook when there two files with "base" in them.
Hi @ozzdemir,
These seem like similar issues. If it turns out they're different, I'll start a separate thread. Can you think of any reason the that libplotjuggler_plugin_base.a isn't being built and/or installed to /usr/local/lib? Is there a way for me to force it during the build of PJ?

@kejava I believe you are correct I just see libplotjuggler_base.a  I don't see how libplotjuggler_plugin_base.a would ever get built.

I was thinking that it should get built during the default build of PlotJuggler. Maybe we need to force it somehow. I tried looking through the make files but I can't figure out how it gets made.

Thanks for your input, I tried to reproduce your error in a VM and was unable to fix it. (Problem wasn't persistent in my actual pc due to plotjuggler installation from catkin ). Inspecting your comments and https://github.com/PlotJuggler/plotjuggler-mqtt/issues/1#issuecomment-1008493947, fixed with latest commit. Let me hear if it also works for you.

Seems like library name in https://github.com/facontidavide/PlotJuggler/commit/d35c5e015af9f7bdab96219d79e01a74f41d1689 changed from plotjuggler_plugin_base to plotjuggler_base, which was the root of the problem.

Hi @ozzdemir,
Wow, that made a huge difference! I can build now without errors. One thing I had to do upgrade cmake in order for it to work. Mine was 3.13 on MX Linux. New setup requires 3.15 or greater so I bumped it to 3.16. For some reason PJ didn't need this.
I'm new to PJ and the use of the pluggins. What do I do after a successfule build, copy the entire "build" directory local the plotjuggler or just the *.so files?
Thanks again for all the help. I'm really looking forward to trying this out with my CAN bus.

Worked for me but I also had to update the dbcppp submodule because it doesn't seem to build with the boost version it tries to download. But updating dbcppp to master seems to work.

@Inquisitive-ME
Yes, I wasn't using the "--recurse-submodules" in my git clone command initially. Seems to grab everything.
After you make the build, to use this plugin do you just copy the shared libs (.so) local to the PG app? Or do you need to copy the whole build folder?
My development between different PCs, I plan to try this later.

@kejava, PJ has a way to add additional plugin directories to list of directories that will be searched. What I do is add build directory of this plugin to that list. Check https://github.com/facontidavide/PlotJuggler/issues/364#issuecomment-754590442

@ozzdemir,
Thank you! This is working perfectly. I have a DAQ device broadcasting 4 channels of RTD data based on the byte stucture from a DBC file. PJ can now see it using SocketCAN. This is really cool!


Siri support?

Hi! Do you have any plans for adding Siri to the permissions? With perhaps an icon like this: https://cdn.iconscout.com/icon/free/png-512/siri-1851019-1569006.png
Let me know!

You can show method for request Siri permission?


Code format updates for ART 1.6.1

Description
This pull request updates dev_1.6.1 with flake8 PEP8 changes and branch main.
Type of change
Please check all relevant options.

[x] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Codecov Report

Merging #1030 (9f6dcb7) into dev_1.6.1 (b5ea33f) will decrease coverage by 40.21%.
The diff coverage is 13.33%.

@@              Coverage Diff               @@
##           dev_1.6.1    #1030       +/-   ##
==============================================
- Coverage      62.60%   22.38%   -40.22%
==============================================
  Files            220      220
  Lines          19054    19058        +4
  Branches        3468     3470        +2
==============================================
- Hits           11928     4266     -7662
- Misses          5813    14533     +8720
+ Partials        1313      259     -1054

Impacted Files
Coverage Δ

.../attacks/poisoning/adversarial_embedding_attack.py
12.98% <0.00%> (-60.39%)
:arrow_down:

...t/attacks/poisoning/clean_label_backdoor_attack.py
33.33% <0.00%> (-44.45%)
:arrow_down:

...defences/preprocessor/spatial_smoothing_pytorch.py
12.35% <0.00%> (-71.79%)
:arrow_down:

art/estimators/classification/keras.py
12.38% <ø> (-62.54%)
:arrow_down:

art/estimators/classification/tensorflow.py
13.87% <0.00%> (-44.32%)
:arrow_down:

...imators/object_detection/tensorflow_faster_rcnn.py
19.46% <ø> (+0.12%)
:arrow_up:

art/estimators/pytorch.py
43.10% <0.00%> (-23.28%)
:arrow_down:

art/visualization.py
18.30% <ø> (-58.41%)
:arrow_down:

art/config.py
59.18% <50.00%> (ø)

art/metrics/privacy/membership_leakage.py
74.54% <50.00%> (-10.91%)
:arrow_down:

... and 143 more


Fix --mock

This was broken before (since #89) because it would always call proposal_runs(), which kinda defeats the purpose of --mock.

LGTM


underscorejs.org Feature Request - Link to annotated source next to each function description

On the home page of underscorejs.org, every function is described like this:

I think it would be convenient if there was a link to _.findWhere (for example) on the annotated source page somewhere in each description.  I personally think it would make the most sense to put such a link on the first line after _.findWhere(list, properties).  The annotated source page is set up to link to each function in the fragment url - i.e. http://underscorejs.org/docs/underscore.html#section-33 takes you directly to the source for _.invoke instead of the very top of the page.
Now that I'm studying the home page more closely, I also think it would be convenient if the function description had the same "¶" characters that the annotated source has that link to the fragment url of the element's position on the page.  So in the screenshot above, a little "¶" character would appear when you hover your mouse to the left of the bold "findWhere" heading, and it would link to http://underscorejs.org/#findWhere.  You can already get these fragment urls from the sidebar, but this would be convenient if you are scrolling down the page without looking at the sidebar.

Duplicate of #2019

Ah okay.  I guess I only searched open issues before I posted.


Introduce publishing to DWP Find a Job service

Trello card URL
https://trello.com/c/MGIXSJIZ
Changes in this PR:
Introduce services that allow us to publish/update and expire our internal (not imported) published vacancies to the DWP Find a Job service.
The integration with "Find a Job" service is done through an SFTP connection, publishing XML files that they will import daily into their service.
We will publish:

one file for publishing/editing and
one file for expiring/deleting the vacancies.

Documentation:
You can see the documentation for the integration on: https://github.com/DFE-Digital/teaching-vacancies/blob/c7f9e696aef6fe92d1242de421b4b560a61dff50/documentation/integrations/dwp-find-a-job.md

Missing bits/questions:

This is not scheduling the Jobs to run periodically
That will be done in a new PR once we manually execute the publishing to test its behaviour.
DWP Find a Job doesn't have a test environment. So we need to do test runs directly against production. Fun, eh? :D

We are not sending the Salary
Salary is optional in the DWP Find a Job service. Since it requires exact values for min/max salary and a period, but we store it as a string with numbers and words, we haven't included salary parsing. I'm open to implementing this but it will be flaky and prone to edge cases causing wrong values in DWP.

What happens when we hard-delete a vacancy in our system?
We send the vacancies marked as "early-closed" by hiring staff to be deleted. But if we hard-delete a vacancy from DB, that means the vacancy (If already published) will stay in DWP until its expiration date arrives, while pointing to a dead link in our system.
How could we solve this?
We have two main caveats:

We need to send the id of the deleted vacancies in an XML. And that becomes unavailable with hard-deleting.
If deleting multiple vacancies, we do not want to generate/push an XML for each one (even if that would work) but generate an XML for all of them.

A possible solution would be to add some trigger/callback when hard deleting the vacancy that will publish an "event" adding the vacancy id to Redis memory. And that would be regularly read by a scheduled job that would generate a deletion file and push it to DWP when finding "ids to delete" in the service.
We could also implement this with a new DB table instead of memory. Need to figure out the pros/cons.

Merging the PR so we can do manual runs on the server for testing the integration end-to-end.
Remember DWP Find a Job doesn't have testing environment, so we need to test this against PROD :see_no_evil:


How to configure for running tests on locally running VM

I cannot see how to configure the plugin to run the tests on Drupal installed in a VM, rather than running locally.
To be clear: I'm running Drupal in a Vbox VM (Ubuntu 16/php7) running locally on my Mac, and I can debug using xdebug, et al, using the normal tools. The files are shared using NFS. I do have php et al installed on the Mac via brew. I was expecting to configure something using ssh...?

I'm running it at the moment on a VM via vagrant.
The URL is pointed to the hosts entry which routes to the vm, and the PHP interpreter is configured to use the PHP codebase on the vm. One thing I found which was quite rude was that the module drafty has tests which have a interface dependency which wasn't met until I downloaded them.
I imagine this'll work fine in D8 if not better.
One thing to note is the importance of following the IDE configuration wiki page.
I do want to try removing the dependency on the drupal.jar file as a source but if that's the price to pay for integrated tests I'm content.


Particle value of 0% isn't preserved on game restart

If I set the particle amounts to 0% in game then relaunch it resets to 100%
Any value other than zero works fine, guessing it's just the condition when reloading the settings
Minor annoyance/very low priority, otherwise works perfectly :)

Fixed as of lolPants/LibConf@6df8a94881ad51d4fcc91cecbdf566364045de2f


[cluster-test] removing infinite recursion in Debug implementation

yeah Display does the right thing :D

/land


Initial commit of iOS code and sample directory for unit tests.

Demo app and more documentation will be added next. Will need to add support for Paywall as well.

@chenshay They cannot be removed here. Since we need to use cocoapods for dependencies and distribution, they need to be there for compatibility.

I don't think I have anything to add to this review. Let me know if there is something in particular you want me to look at.


Refactor switch with 19 cases

In this PR:

the switch is changed with a findIndex function, thus reducing 120 lines of code

Issue #15


Refactor: Cryto Cards, Crypto Logo & Illustration

Issue -> to add a single network logo you have to update 3 components. Illustration -> crypto Logo -> crypto cards
Required -> Make a single source of truth as an Illustration and adding logo to illustration would automatically add it to other components
EDIT: also make the component tree shakable, take reference from button component to use lazy imports... fallback component could be loading

nice @AbhinavMV are the Illustrations tree shakable?

not right now, but nice idea we can use lazy import like the button to make it tree shakable fallback component can be loading component... will edit the issue description 🙌

Closed as completed by #876


fsharpLint: enable noPartialFunctions rule

Please explain in commit message body why the FSharpx.Collection had to be upgraded, because for the occassional diff-reader dev it's not immediately obvious. After that, I merge; thanks!

Please explain in commit message body why the FSharpx.Collection had to be upgraded, because for the occassional diff-reader dev it's not immediately obvious. After that, I merge; thanks!

added.


Tron Wallet IOS no available to download

My Tron Wallet IOS is not opening anymore and the link to download it on tron.network is broken.
I have several TRX on it and now I cannot access them.
I have my wallet account address and my private key with me.
How can we fix this issue?

They didn’t update anymore since TRC-20 update on tronscan

I have a Backup file of TRON Wallet. Can I use it?

I'm having the same issue as ThalestTron.  How do I access my wallet when app won't load? Can anyone out there help?

I could access my walllet and transfer my tokens to another wallet. You will need your private key. Go to tronscan.org, then, on the right hand side at the top of the screen, point out the mouse and click in the last option 'Import a wallet', as the box open, paste your private key in the correspondent box and click in 'Sign In' wait a few seconds till you receive the login success message, and then click on 'Wallet' click on 'Account' and Voilá. Suggest you to use another wallet, I'm using Tron Wallet me, you can dowload it straight from Apple/Android Store. https://www.tronwallet.me/ Hope you have your Private key.

Thank you!!!!  I was getting nervous, but that worked. Much appreciated.

On Feb 17, 2019, at 11:02 AM, ThalestTron<EMAIL_ADDRESS>wrote:
I could access my walllet and transfer my tokens to another wallet. You will need your private key. Go to tronscan.org, then, on the right hand side at the top of the screen, point out the mouse and click in the last option 'Import a wallet', as the box open, paste your private key in the correspondent box and click in 'Sign In' wait a few seconds till you receive the login success message, and then click on 'Wallet' click on 'Account' and Voilá. Suggest you to use another wallet, I'm using Tron Wallet me, you can dowload it straight from Apple/Android Store. https://www.tronwallet.me/ https://www.tronwallet.me/ Hope you have your Private key.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/NewHorizonLabs/TRX-Wallet/issues/10#issuecomment-464495600, or mute the thread https://github.com/notifications/unsubscribe-auth/AtgqmLGE4JNSTqDqowhrqTgShRE9HJ7sks5vOadQgaJpZM4a5LiU.

I only have File Trust - backup of wallet. without remembering Key. How can I log in again ??

I used the trust file on the trust wallet app iOS it worked but I cannot view my frozen tokens just my main balance and tokens.


Control the ROS Loop rates using a file instead of having them hardcoded in each of the nodes

@prudhvid @nevinvalsaraj @ankeshanand Any preferred way to do this? (I was thinking environment variables!)

cc @aniket11bh @kshitijgoel007 @auviitkgp/developers

Tried the env variables approach, but even if we export it in one pane, then the other pane remains unchanged, and source has to be used again for this to work!
I am looking into implementing this using ROS Param, that appears to be the ideal way to implement something like this. Let's see!
cc @auviitkgp/developers


make: Fix path to GOBIN

Codecov Report
Base: 89.39% // Head: 89.39% // No change to project coverage :thumbsup:

Coverage data is based on head (127e8ee) compared to base (9ce7c0b).
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #80   +/-   ##
=======================================
  Coverage   89.39%   89.39%
=======================================
  Files          28       28
  Lines        1528     1528
=======================================
  Hits         1366     1366
  Misses        116      116
  Partials       46       46

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Example E Typo

TYPE = HADOOP, should be TYPE = BLOB_STORAGE

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

ID: e450abc6-2dbd-8f6c-423c-52aca37a2b06
Version Independent ID: 4aff678a-6db1-a438-9aca-bb4b4d49bc27
Content: CREATE EXTERNAL DATA SOURCE (Transact-SQL) - SQL Server
Content Source: docs/t-sql/statements/create-external-data-source-transact-sql.md
Product: sql
Technology: t-sql
GitHub Login: @CarlRabeler
Microsoft Alias: carlrab

@melknothink Thank you for pointing out this error - fixing now.
Carl


Issue: Dependency review

Review current package dependencies for updated versions and best practice.

System.IdentityModel.Tokens.Jwt -> Microsoft.IdentityModel.Tokens + Microsoft.IdentityModel.JsonWebTokens

Note:  version compatibility in Microsoft packages restrict the package upgrades for Microsoft.IdentityModel.JsonWebTokens to version 6.14.1 due to incompatibility (for higher version numbers) with Microsoft.AspNetCore.Authentication.OpenIdConnect.
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/1792


feat(REST): Added REST API endpoint to bch-api for the psf-slp-indexer

PR related to this trello task --> https://trello.com/c/3XcYWaoI

This is no longer a Work in progress, is ready for @christroutner to review

:tada: This PR is included in version 1.47.0 :tada:
Your semantic-release bot :package::rocket:


Source Control - On refresh, multiple folders checked out with same name.

1.Create 2 folders in Source Control .
2.Change branch of 2nd Folder.
3. Issue :in Source Control -> On Click of Refresh button of 2nd Folder The 1st Folder branch name also changes with 2nd Folder and vice-versa.

/duplicate
See https://github.com/microsoft/vscode/issues/134638#issuecomment-938471497 for a workaround.


Control to move labels list for display not working

Describe the bug
In the settings, there is a possibility to change the location of the list of labels in the UI.

However, it seems that only "top" can be selected. This has a usability impact when dealing with large document.
To Reproduce
Steps to reproduce the behavior:

Go to "Labeling Interface" in "Settings"
Click on "Display Labels" scroll down
Select "right"

Expected behavior
Ability to move the list of labels for display
Environment (please complete the following information):

OS: Unix
Label Studio Version 1.1.0

@qhreul which labeling config are you using? I've seen this happen with some labeling configs but not others.

@smoreface The project was created based on the Named Entity Recognition template.

I recommend upgrading to 1.2.0, @qhreul. I have a NER project in 1.2.0 and I can move the labels list around perfectly!

@smoreface We are actually using v1.2.0, but the issue remains. I have attached a short movie of the issue to describe.
https://user-images.githubusercontent.com/20356112/133151387-dd64afd1-23b6-4a29-b81b-48ebbdc30188.mov

@qhreul looks like you're possibly using the hypertext NER template from the playground, not the text NER template in the product.
On the labeling interface tab, can you click "code" and share your labeling config XML? I'm still not able to reproduce this (I don't have an option to change the label positions with the hypertext NER template).

@smoreface We use the HTML representation for the text as opposed to the plain text. However, there does not seem to be anything in the XML code limiting where the information is displayed.

Thanks @qhreul, I was able to reproduce this!


Ability to manually close a connection

It would be great to add a possibility to forcibly close a connection with a peer.
While closing connections seems to be implied/covered by #6, this issue is intended to have a narrower scope.
Whereas #6 implies automatic connection tracking, this simple feature would allow working around the limitations of missing connection tracking by letting users take care of it on the application level.
Also, this feature will be useful even if automatic connection tracking arrives. For instance, forcible closing of a connection would mean emptying channel buffers, so that previous reliable messages wouldn't be resent.
Forcible closing of connection shouldn't imply that another peer can't send a message thus opening a connection again. I just expect the "closing" peer to stop trying to deliver old reliable messages.
I've never designed lower-level networking libraries, but I hope this feature request makes sense. Would be happy to hear what you think about it.
Thanks!

I think this one is also fixed with the recent changes.  You can use NetworkResource::disconnect(handle) yourself, or let the idle timeout feature clean up for you.

@RJ thank you a lot for implementing it! I haven't tested it in my project yet, but I'm ok if this issue will be closed.
Looking forward to upgrading to 0.3 now! :)

TY


Add automate test tool

Summary
In order to improve our deploy process, we want to integrate a a test automation tool.
This tool should check few routines like:

Merge from feature-branch to development.

If tests are OK, allow merge

Merge from development to master

If tests are OK automatically merge

Possible solutions

Github Actions
GitLab CI/CD for GitHub
CircleCI
TravisCI
CloudBees CodeShip
Jenkins.io

Output
T.B.D

I've experience with the first three possible solutions, and I favor GitHub Actions since the codebase is already on GitHub.

Related  #243

We're probably moving away of the branch related workflow described here:

Merge from feature-branch to development.

If tests are OK, allow merge

Merge from development to master

If tests are OK automatically merge

The idea is to have a leaner flow that remove development branch from the pipeline. At the time I'm writing this comment, the strategy is still not 100% defined. You can check #112 to know more about this.

@wlsf82 I'm considering keep this issue open as a aggregator for test coverage related tasks.
If this is the case, ideally we should tag #144 in pull requests adding more tests.
What you think about this?

@wlsf82 I'm considering keep this issue open as a aggregator for test coverage related tasks. If this is the case, ideally we should tag #144 in pull requests adding more tests. What you think about this?

This issue's description is related to CI, not really to testing.


nodes and clients not showing up in search, even after reindex

Chef Server Version
chef-server-core-14.11.31-1.el7.x86_64 (also 14.0.65)
Single node, no plugins or HA anything special.
Platform Details
CentOS Linux release 7.9.2009 (Core)
t3.medium on AWS
2.4G free on the relevant disk
Not containerized
MemTotal:        3818780 kB
MemFree:          782888 kB
MemAvailable:    1113020 kB

Configuration
Standalone. I upgraded from 14.0.65 to 14.11.31 while trying things to fix things, to no avail.
Our configuration is nonstandard in terms of port layout and SSL restrictions, though it doesn't feel relevant.
server_name='<machine IP>'
api_fqdn server_name
nginx['server_name'] = server_name
nginx['enable_non_ssl'] = false
nginx['non_ssl_port'] = 81
nginx['ssl_port'] = 7443
nginx['ssl_ciphers'] = 'HIGH:!MEDIUM:!3DES:!LOW:!kEDH:!aNULL:!ADH:!eNULL:!EXP:!SSLv2:!SEED:!CAMELLIA:!PSK'
nginx['ssl_protocols'] = 'TLSv1.2'
bookshelf['external_url'] = 'https://'+server_name+':7443'
bookshelf['vip_port'] = 7443
nginx['ssl_certificate'] = '<our SSL cert>'
nginx['ssl_certificate_key'] = '<our SSL key>'
nginx['ssl_ca_path'] = '/our/ssl/ca/dir'
nginx['ssl_ca_file'] = '<our SSL CA>'

Scenario
While knife search role '*', knife search client '*', and knife search environment '*' all behave correctly, node searches always returns empty results, whether invoked from recipes with search(:node, "stuffhere") or with knife search. Persists even after chef-server-ctl reindex, re-bootstrapping nodes, and various other kickings and proddings.
# knife search node '*:*' -i
0 items found

But there are definitely some nodes:
# knife node list
a_development_node
another_development_node
a_staging_node
chef_server_node

The log entry from the search doesn't look interesting:
<machine IP> - - [2021-12-23T21:06:12+00:00]  "GET /organizations/mu/search/node?q=*:*&start=0&rows=1000 HTTP/1.1" 200 "0.016" 62 "-" "Chef Infra Client Knife/16.14.1 (ruby-2.7.2-p137; ohai-16.17.0; x86_64-linux; +https://chef.io)" "<IP_ADDRESS>:8000" "200" "0.015" "16.14.1" "algorithm=sha1;version=1.1;" "my_org" "2021-12-23T21:06:12Z" "2jmj7l5rSw0yVb/vlWAYkK/YBwk=" 1061 "a096862e-e92d-4acc-b7bf-97b7716844c2"

If I reindex the node in question and watch the logs, I see it submit some reasonable-looking content:
2021-12-23 20:53:06.665 [info] reindexing[my_org]: reindex requested for my_org
2021-12-23 20:53:06.667 [info] reindexing[my_org]: 4 items of type node to reindex
2021-12-23 20:53:07.169 [info] reindexing[my_org]: 8 items of type role to reindex
2021-12-23 20:53:07.180 [info] reindexing[my_org]: 7 items of type environment to reindex
2021-12-23 20:53:07.191 [info] reindexing[my_org]: 5 items of type client to reindex
2021-12-23 20:53:07.211 [info] reindexing[my_org]: 8 items of type <<"some_data_bag">> to reindex
<...several dozen other data bags...>
2021-12-23 20:53:07.808 [info] reindexing[my_org]: reindex complete!

...but the behavior remains the same.

Also of interest is that a search on clients is also missing everything except the validator for my org user (that is, none of the node clients show up):

knife search client '*'
1 items found
admin:      false
chef_type:  client
json_class: Chef::ApiClient
name:       my_org-validator
public_key:
validator:  true

knife client list
a_development_node
another_development_node
a_staging_node
chef_server_node
my_org-validator

### Steps to Reproduce

See above.

### Expected Result

Wildcard search should return nodes/clients; filters should return subsets of nodes/clients.

### Actual Result

Empty results when search for nodes or clients.

...I got irritated over the weekend, nuked the metadata and the Chef Server installation, and rebuilt it from scratch. Search works again, which fixes my immediate problem.
I think it's the second time this particular installation has exhibited this behavior. If memory serves, it was originally created from a backup (in the chef-server-ctl backup/restore sense), which is all that distinguishes it from our other, relatively well-behaved installations.
I preserved a copy of the dysfunction first, in case anyone wants to dissect it later.

We believe that this incident is close or similar to yours
Did you find a fix ?

@jstange Could you please try the below solution which solved for @jpc-Arkea .
Reference - https://github.com/chef/chef-server/issues/3109#issuecomment-1022084825
Our problem is solved : Elastic indexes were read_only
You can see index read-only by a tcpdump on 9200 port : tcpdump -i any -A port 9200
something like this :
{"took":0,"errors":true,"items":[{"index":{"_index":"chef","_type":"object","_id":"582ff685300a61234af803a95db0968c","status":403,"error":{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}}}]}
You can disable read_only mode by followed command :
curl -XPUT -H "Content-Type: application/json" http://<IP_ADDRESS>:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
Please try the above soltuion and update us.


Tab autocomplete and arrows not working in exec shell

Expected behavior
Would expect to be able to use arrow keys, tabs etc. to interact with bash
Actual behavior
When trying tab completion, it either actually tabs the cursor.  When trying for last command, ^[[A is put in
Information about the Issue
Just want to be able to interact with the shell like I normally would if I was native in linux
Steps to reproduce the behavior

On Windows 10 box with Docker and Kitematic, download/start an Ubuntu container
Click EXEC, launches a shell in powershell.exe
type ls
hit the up arrow, see it put in weird characters. Delete all gibberish.
type "cd /lib6" and then hit the tab.  See the cursor tab instead of autocomplete to lib64

I'm unable to replicate this - It must be something with your Powershell setup. (win10 pro with Docker for Windows)

Please do share your findings once you find the settings that were changed.

As @FrenchBen has described in other issue reports, the bash shell is not opened by default, but the sh shell. Powershell does not interact properly with the sh shell so you should switch to bash. I am adding this text to the FAQ:

Kitematic uses sh for the Exec function. This can cause unwanted behavior, such as up arrows being displayed as '^[[A' in Powershell terminal. This is unavoidable, because not all docker containers have a bash shell (or csh, zsh, etc.). One way to use the bash shell, which does not have these limitations, is simply to type "bash" into the terminal each time that a new session is started.
If you want your bash shell to be the default shell for when you 'exec' into the container, then in Settings > Advanced, simply add an entry for SHELL with a value of /bin/bash. [1]


MetSys.get_current_coords() not working as expected

I have a cell with a scene assigned at ( 0 , 0 , 0) using MetSys.get_current_coords() in the room prints:

all my other rooms are made with the map builder and dont have this issue, I have tried validating and reloading the map data.

I did some more testing it seems to only happen when loading the map for the first time, after exiting and entering the room again it prints normally.

I can't reproduce it 🤔 Maybe you are resetting state at wrong time or something. Any chance you could attach some minimal project with this bug?


feat: add get network intercepts method

Issue: #1183
Spec: https://w3c.github.io/webdriver-bidi/#get-the-network-intercepts
WPT: https://github.com/web-platform-tests/wpt/pull/41662/

Missing:

// TODO: Step 4. URL serialization.
static matchUrlPattern


crash in SKPaginationView

display only one photo or set SKPhotoBrowserOptions.displayBackAndForwardButton = false
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
if let view = super.hitTest(point, with: event) {
if counterLabel.frame.contains(point)
|| prevButton.frame.contains(point) //crash here: Fatal error: Unexpectedly found nil while unwrapping an Optional value
|| nextButton.frame.contains(point) {
return view
}
return nil
}
return nil
}

Same for me

We're seeing the same - unfortunately it's our top crash at the moment.
@suzuki-0000 Could we get this (https://github.com/suzuki-0000/SKPhotoBrowser/pull/292) PR merged in? Or fixed in some other way? Thanks 👍

thanks for PR. I merged and v5.0.6 is published. Please check it 🙏


Adding perception pcl to the capabilities requiring porting

I'm maintainer on that as well as image pipeline and both could really use some elbow geese in ROS2. There's not yet a viable port of it to ROS2. Image pipeline is in slightly better shape with a near complete port but I'm not confident in everything working as expected & lots of clean up to do.

Thanks!


party.id should be String, not u32

See https://discord.com/developers/docs/topics/gateway#activity-object-activity-party

Could you please update the tests/fixtures/activity_full.json file to use "party" for id rather than 1


Multi-level lazy loading routing will lead to multiple loading of styles and reloading of pages.

Please forgive me for using Google Translate

problem description：
When I entered a new routing page (using a lazy loading situation, the following way to write):

Will load all the style files that use the components under the current routing page, resulting in Vite Reload, such as:

In my actual project, there may be some design unreasonable, there are too many routing levels, which will cause the Vite will reload multiple times when I entered the new page, introduced all the styles to enter the page, which affects the development experience.
I don't know if it was designed that way, but it does affect the development experience a little bit, and it feels like it slows down development with Vite
solution
I introduced the style directly in the development environment, and then introduced as needed when packaged:
main.js:
(() => import.meta.env.DEV && import("ant-design-vue/dist/antd.css"))();

vite.config.ts：
export default ({ mode }) => {
  const isDev = mode == "development";
  return defineConfig({
    plugins: [
      vue(),
      Components({
        resolvers: [
          AntDesignVueResolver({
            // importStyle: "css",
            importStyle: isDev ? false : "less",
          }),
        ],
        dirs: ["src/components"],
        include: [/\.vue$/],
      }),
    ],
    resolve: {
      alias: {
        "@": fileURLToPath(new URL("./src", import.meta.url)),
      },
    },
  });
};

I am thinking about implementing such functions inside the plugin and configured by options?
Rely version

"vue": "^3.2.22"
"unplugin-vue-components": "^0.17.6"
"vite": "^2.6.14"

我也出现了这个问题，我的路由也是异步加载的配置，由于我的routes也是动态获取再进行注册的，所以我用了 vite 提供的 import.meta.glob 导入了所有路由页面然后再做匹配，比你更糟糕的是我会出现页面的无限重载，甚至vite开启的服务抛出了408的错误，我不知道如何解决这个问题，现在已经导致我无法正常开发了，只能弃用这个插件

@antfu 能提供下解决办法吗？

Force packages pre-bundle
https://vitejs.dev/config/#optimizedeps-include

Force packages pre-bundle
https://vitejs.dev/config/#optimizedeps-include

Can you tell me exactly how to do it，thanks

Just add packages that cause Vite reload into include list.
https://github.com/antfu/vitesse/blob/2e378f43421855b08ecf983200ab9c3ac4d58d0f/vite.config.ts#L157-L163

Just add packages that cause Vite reload into include list.
Example: https://github.com/antfu/vitesse/blob/2e378f43421855b08ecf983200ab9c3ac4d58d0f/vite.config.ts#L157-L163

This doesn't work, it still reloads the page, and after I upgrade the plugin version, I also get 408 problems：

Can you provide a repo with the code required to reproduce this issue?

Can you provide a repo with the code required to reproduce this issue?

Please clon my repositories, I have all the latest version of the latest version:
https://github.com/RennCheung/vue3-report-demo
steps：

pnpm i
pnpm run dev
Click "about" on the page. (router-link)


Speed up normalize_chunks

[ ] Closes #xxxx
[ ] Tests added / passed
[ ] Passes pre-commit run --all-files

dask/array/core.py:3090: error: Statement is unreachable  [unreachable]
dask/array/core.py:3109: error: Incompatible types in assignment (expression has type "Tuple[Union[Tuple[Union[Union[int, float], Union[str, Literal['auto']]], ...], Tuple[Tuple[Union[int, float], ...], ...]]]", variable has type "Union[Tuple[Union[Union[int, float], Union[str, Literal['auto']]], ...], Tuple[Tuple[Union[int, float], ...], ...]]")  [assignment]
dask/array/core.py:3165: error: Argument 1 to "append" of "list" has incompatible type "str"; expected "Tuple[Union[Union[int, float], Literal['auto']], ...]"  [arg-type]
dask/array/core.py:3180: error: Argument 1 to "append" of "list" has incompatible type "str"; expected "Tuple[Union[Union[int, float], Literal['auto']], ...]"  [arg-type]
dask/array/core.py:3201: error: Argument 1 to "tuple" has incompatible type "List[Tuple[Union[Union[int, float], Literal['auto']], ...]]"; expected "Iterable[Tuple[Union[int, float], ...]]"  [arg-type]

FAILED dask/array/tests/test_array_core.py::test_tiledb_roundtrip - ValueError: Chunk element is not supported. Got 3 from [3, 3]
FAILED dask/array/tests/test_array_core.py::test_tiledb_multiattr - ValueError: Chunk element is not supported. Got 100 from [100, 100]
= 2 failed, 11618 passed, 961 skipped, 84 xfailed, 56 xpassed, 3867 warnings in 750.50s (0:12:30) =

Odd errors. How are these elements not int or float?

Hi, sorry for the slow review.
Could I ask you to separate typing changes and doc changes into another PR so that we can focus on the actual code changes here?

Hi, sorry for the slow review.
Could I ask you to separate typing changes and doc changes into another PR so that we can focus on the actual code changes here?

Sure, see #11271 for docstrings.
I will not put any more effort into splitting this PR function. I do not think there's enough interest for me to put multiple hours/days trying to get the original code of normalize_chunks to pass with mypy, it simply wasn't built with mypy in mind.

You can also just roll back the typing stuff. The point of this is that we want to keep the focus of a PR narrow. This PR has lots of typing changes mixed with performance improvements. It is impossible to distinguish between one or the other at the moment


pulsar.broker-service-url is misleading in presto configuration

Motivation
pulsar.broker-service-url in presto configuration is misleading. The name seems to indicate that you should use a broker service URL. But actually it is expecting the admin/HTTP service URL. So it is better to add a new pulsar.admin-service-url to replace this pulsar.broker-service-url setting.
At least, we need to document this setting.

Yes, truly it is misleading!
I had to look up several examples to understand how to set it!

@eaba are you interested in sending out a pull request for fixing it?

pulsar.web-service-url should be better? admin-service-url sounds like a new term.
It is documented that broker-service-url is 6650 binary and web-service-url is 8080 web.

pulsar.web-service-url will centainly fit better :)


timing out long-running tests and printing slow tests

sometimes our CI gets stuck due to various reasons. It's a hard-to-debug problem that takes time, and we could improve the debugging process by automatically timing out tests and printing the names of the slowest tests at the end.
Timing out has the added benefit of defining a maximum running time per test: if it takes too long (possibly >30s), then it's a bad unit test; there might be exceptions, but we could go on a case-by-case basis.
timing out tests is pretty simple, we're already doing it in ploomber: https://github.com/ploomber/ploomber/blob/d277c7a4835fff8672c204eb4b2acd3c71b5ae0b/.github/workflows/ci-unit-linux.yml#L107
and we can print slow tests easily as well: https://howchoo.com/python/how-to-measure-unit-test-execution-times-in-pytest

added --durations-min to sklearn-evaluation to test this out: https://github.com/ploomber/sklearn-evaluation/blob/56bb44c02cff297f0ca315d3365dcf62207ba1d4/noxfile.py#L45


Adding method error support

Hi! I tried to create an approach to detect errors and I got the following result:

I created a folder with a new test as well:

Method example:
export async function getInfo(authorized: boolean): Promise<HostInfo> {
  if(!authorized) {
    return apiError(401, "Hey! You need to be authorized!", {
      requestedAt: new Date().toLocaleTimeString()
    });
  };

  return {
    now: new Date().toLocaleTimeString(),
    hostname: os.hostname(),
  };
}

Use case example:
React.useEffect(() => {
  const interval = setInterval(() => {
    getInfo(true).then(res => setInfo(res));
    getInfo(false).catch((err: RPCMethodError) => setError(err));
  }, 2000);
  return () => clearInterval(interval);
}, []);

Related issues: https://github.com/Janpot/next-rpc/issues/19
Note: sorry for my English. I'm Brazilian. I thought the idea was amazing!

I used npm link ../../ in "./examples/with-error" to run the example with the local version.


feat: impl http.Hijacker

Work with weboskcet library(e.g https://github.com/gorilla/websocket), writerWrapper should implement http.Hijacker

Is this changes related to the plugin test? If so, please update the test case.

I'm getting familiar with how to write test cases.

Then, please add some plugin test about this. Thanks.

Also, Please add a note in the CHANEGS.md

Also, Please add a note in the CHANEGS.md

Done.


[DOCFIX] A pass to clean up various issues in format or names

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/727/
Test PASSed.


Don't use eval in code

The h.js minified code is fun, but having to use eval to parse it is an error which is caught by most good bundlers.
It would be good to remove the use of eval in https://github.com/MakeNowJust/h.js/blob/master/h.js#L25

impossible

@antony Note that you can expand h.js by prepack. (here)

@antony What is most good bundler? I tried most good bundlers I know (webpack, parcel, rollup), but every bundlers do not cause an error.

Here's what rollup has to say:

src/routes/event/index.html changed. rebuilding...
• server
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
23: G)]:t+eqT})()z=>     q(sj.   rep   lac             R/Z    \`Y\${    W),
24: V(UU\\T))S<spanU     x20cl   ass   =Re(           Q}DP])M         (?LM:
25: K(HJs.slicRHm[G0].lengthD`.replace(/\s/g,'')))=>eval(s))(`DGHJ${
                                                           ^
26: '' /*(C) 2015-2018 TSUYUSATO "MakeNowJust" Kitsune*/}KLMPQRSTUVWYZjqz`)
• client
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
23: G)]:t+eqT})()z=>     q(sj.   rep   lac             R/Z    \`Y\${    W),
24: V(UU\\T))S<spanU     x20cl   ass   =Re(           Q}DP])M         (?LM:
25: K(HJs.slicRHm[G0].lengthD`.replace(/\s/g,'')))=>eval(s))(`DGHJ${
                                                           ^
26: '' /*(C) 2015-2018 TSUYUSATO "MakeNowJust" Kitsune*/}KLMPQRSTUVWYZjqz`)

which is a bit annoying on every reload!

In fact, I've just realised that you don't include the original source code in your github repository. This would be the ideal, since that way my bundler could handle minification.
Why isn't the original source in here? Where is it?

@antony I just published<EMAIL_ADDRESS>It adds a hack to prevent rollup warning. Please try it.

@MakeNowJust oh boy, a warning suppression! That ascii art is important to you huh? :D
Thanks :>