Add support for HTTP(S) OTLP endpoint

Hi Aspire-Team,
Great work with the Aspire-Dashboard.
I'm currently looking for a replacement for current OTLP-Backend (https://github.com/SigNoz/signoz), and Aspire Dashboard seems to be a lightweight sulution.
However we are relying in the HTTP OTLP Receiver (#3688). Therefore i tried my best to add HTTP OTLP endpoint support and it works quite will in our usecase.
With this changes Aspire Dashboard can consume OTLP Grpc and http(s) simultaneously. Due to the http/protobuf I could reuse the existing grpc-otlps models and services
Microsoft Reviewers: Open in CodeFlow

The formatting changes make it really hard to review. I don't know if you can undo those but with a big change like this it really makes the diff bigger than it needs to be.

The formatting changes make it really hard to review. I don't know if you can undo those but with a big change like this it really makes the diff bigger than it needs to be.

I reverted the format changes. Sorry for that

Are there tests that can be written for this new functionality?

@eerhardt @drewnoakes

Are there tests that can be written for this new functionality?
I added for all endpoints IntegrationTests

@JamesNK It's a big pleasure to receive a review of Newtonsoft.Json's author. Thanks for all your work!

I made a bunch of changes.

Locked the endpoint down to Protobuf payloads
Make OTLP/gRPC endpoint optional. Either OTLP/gRPC or OTLP/HTTP is required.
More tests

I think everything is done and this is mergable.
A follow-up piece of work is changing the app host templates to include DOTNET_DASHBOARD_OTLP_HTTP_ENDPOINT_URL env var. Will do that in its own PR as I think it merits its own discussion without distraction.

Merged! Thanks for your work on this @sharpSteff.


How to generate anchor_info for model's input?

The model asked an anchor_info as the input, which relays on the ground truth bounding box from my understanding.
I see from the code gen_mini_batches.py generate anchor_info for both training and validation data with ground truth label. However, how could we generate anchor_info for the testing data without a ground truth label?

It would be great that you can clarify that procedure.
thanks!

solved with rpn-model-test-mode


TypeError: Cannot read properties of undefined (reading 'on')

Provider.tsx

NNB Version:

I tried putting it inside the NextUI provider and outside both, but I still got the same error.

What am I missing here?

As the ProgressBar is being called from the pages side, you must import it as "import { AppProgressBar as ProgressBar } from 'next-nprogress-bar';"


Fix ordering of unescaping logic, incl. tests

This PR fixes a bug in the unescape function where the action of the escape function is not correctly reversed, because the substitutions are done in an unstable order. Tests are added.
A separate commit tidies up a couple of typos in the tests.

Thanks for catching that!


TST, BUG: adjust tol on test_equivalence

Fixes #13565

TestApproxDerivativeSparse.test_equivalence has been
causing 32-bit Linux AMD64 failures on both master and
maintenance/1.6.x wheels repo builds

nudge the tols up a bit above the failures reported
in test logs (we could also be more specific and only
do this for 32-bit & the specifically-sensitive method
cs)

CI failures are unrelated.


Is it possible to change positioning/placing objects like in iOS?

This is only a quick question:
Is it possible to change positioning/placing objects like in iOS? Instead of white dots (symboling flat surface) use some things like this

:

This is will be available with Instant Placement soon but as I mentioned here We need sponsoring to continue... it will be kept private until we get enough sponsoring because we spend one year of days and nights working on this repos instead of making paying apps with a result of $0 sponsoring.

As Thomas said, there is no public in-build method available yet. You can try to implement something by yourself, but I have to say that it is maybe not 100% what you are looking for.

Constantly do a HitTest on all available (or a subset of) ARCore TrackingTypes. (hint use the screen center)
Do something with the result. Show a ViewRenderable or a gltf model at the HitResult position. Use normal Android-Layout Buttons or include it in your ViewRenderable/gltf model.
Interact with the Buttons

Of course there is alot more to consider, you see I'm very vague here. By the way, Instant Placement can give you some more possibilities.
To be honest I would prefer a in-build variant, but as Thomas already said, we need some support.


Feature Request: Autoprefixer support?

Would love to have the autoprefixer as an option:
https://github.com/postcss/autoprefixer
Currently Zurb's Foundation and Twitter's Bootstrap uses autoprefixer. Fully compatible with Node Sass.

And of course this is a duplicate ask -_-


COR 340 PARTIAL FormsScreenContainer Test

setup tests
add FormsScreen test
add FormsScreenContainer test

jest.mock("../../src/utils/clients",...
should be
jest.mock("../../src/utils/client",...

can we rename that in another ticket?

/lgtm

You just need to rebase this one


lyxal: Watch castleappk.org

lyxal requests the watch of the watch_keyword castleappk\.org. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

castleappk\.org has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by VLAZ in Charcoal HQ


Sometimes unable to connect to Scapy server

Looks like if scapy server is started on python3 we unable to connect (issue when parsing request on scapy side)

Connectivity issue was reproducible if TRex's Scapy server was started on python3. Fixed in this commit:
https://github.com/cisco-system-traffic-generator/trex-core/commit/7954d83c85d5829a1e575ca40cec0e846a1ed8b5
Will appear in new version of TRex


max-width/max-height should be able to handle measurements other than pixels

Some users may want to be able to pass in a different form of measurement than a number that will be interpreted in px.  They may want to use em or some other option for their max-width/max-height.  The mixin should be able to interpret multiple forms of input for the styling.

That should be reasonable to do. Would you like to write a PR to implement this?
The only thing that I think needs to be changed is appending 'px' if the value has no units

Yea, I can take a look at it :)

@tim-evans there is some stuff in measuredSizeDidChange and dimensionsDidChange that expects the bound attribute to always be a number.  I haven't had a chance to look at it in depth, but that might be something for you to investigate if you get the chance.  If I get a branch up that has the base changes for this issue, can you dig deeper on those two methods and push this across the finish line?

https://github.com/elwayman02/ember-autoresize/tree/variable-units

I've published 0.4.0, which supports this. If you spin up the addon with ember server, you should see a test page that I used to verify these. Close this when you think it's all good :)
Thanks for the help on this- it was a great addition to the addon!

Great! I will check it out.
On Thu, May 14, 2015, 7:55 PM Tim Evans<EMAIL_ADDRESS>wrote:

I've published 0.4.0, which supports this. If you spin up the addon with ember
server, you should see a test page that I used to verify these. Close
this when you think it's all good :)
Thanks for the help on this- it was a great addition to the addon!
—
Reply to this email directly or view it on GitHub
https://github.com/paddle8/ember-autoresize/issues/13#issuecomment-102236060
.

Looks good, will test further in the morning :)

Hmm...initial testing indicates the addon is broken now.  Textarea resizing isn't working at all for me.

@elwayman02 confirmed. This is only in the 'auto' case.

Aaaand fixed!

:shipit:

@tim-evans line 306 automatically appends 'px' to the keys...will that cause an issue with this feature?

@elwayman02 nope! The dimensions property is a result of the dom-ruler measurement


Kanister docs update to version 0.27.0

if we do frequent releases then this will require a manually created PR every time?


fix(memdb): waaay too slow, at least use rwlock

After a lot of debuging I discovered that some flakes are due to all the slowness of MemDatabase.
On an even ligthly filled test database, coping all the data start taking considerable amount of time (single digit milliseconds), which combined with number of database transactions being opened and commited, can lead to quite long delays in processing in random places (as ordering of locking is somewhat arbitrary).
It's possible that something is also running db transactions in a tight loop somwhere.
For time being using an RwLock helps considerably, as all db transactions at least need to start, and we do two copied of the database content there, so being able to do it in parallel, significantly improves the throughput.
Having said that, current implementation is not practical for any production use, I'm afraid.

#4335 even better, I hope.

Longer-term we might want a copy-on-write map type?

#4335 @elsirion


couldn't set borderWidth of symbol 'emptyCircle'

Version
5.2.2
Steps to reproduce
just replace option code below to the editor
option = {
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [150, 230, 224, 218, 135, 147, 260],
      type: 'line',
      itemStyle: {
        borderWidth: 100
      },
      emphasis: {
        itemStyle: {
          borderWidth: 0
        }
      }
    }
  ]
};

What is expected?
set the border width
What is actually happening?
doesn't work, but emphasis option work

sorry, i forgot the editor link: https://echarts.apache.org/examples/zh/editor.html?c=line-simple

This is by-design. Please use circle if you wish to control the border width.

🤣yes i have finish my problem by using 'circle' at that time，i may just confused by the emphasis option of 'emptyCircle'. thank you.


High transaction fee on kyber swap

When swapping DAI at kyber, I payed almost twice the amount of swapped currency in tx fee:
Starting swap at Kyber
Best exchange rate found at Kyber: 0.00527266671701571 ETH / DAI
Trying to acquire 2 DAI at this rate
Swap complete. 2 DAI available
Actual costs: 0.031866087086868504 ETH

https://etherscan.io/tx/0x27e005c976d428c9da25ccbf8439f777b8ecbd6ab395acbc93fe59973dedb9c4
Value:
0.012654400120837703 Ether ($2.41)
Transaction Fee:
0.0212571832 Ether ($4.04)

This comes due to the fact of the insane high gas price of  0.0000000484 Ether (48.4 Gwei) which is the current gas price in the system though. I just compared it to ethgasstation.info

Thanks for checking, I just dumped this observation here on the go. It leads me to some follup up questions though:

[ ] What is the maximum gas price considered in our initial amount of 0.18 ETH (also maximum swap rates)?
[ ] Since we clearly can not control all of this deterministically, shouldn't we instead calculate the expected amount of ETH at the start of the flow?
[ ] Since we do have some estimate of how much ETH should be left to run Raiden, Why do we present the user with different amounts for the token swap? Clearly those affect the available ETH for Raiden.

For Checkboxes 2 and 3 I can point to the  issue #205


Permission problems with .pm files

[x ] Ran brew update and retried your prior step?
[x ] Ran brew doctor, fixed as many issues as possible and retried your prior step?
[x ] Confirmed this is a problem with Homebrew/brew and not specific formulae

My config: https://gist.github.com/nkkollaw/9ace0e9279ec714f9fa04e49faa02e0e
brew doctor says I'm ready to brew (no errors).
Bug report
What problem
I'm getting a lot of errors while trying to install software with Homebrew.
All of them are similar to the following:

Can't locate Getopt/Long.pm:   Permission denied at /usr/bin/pod2man5.18 line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man5.18 line 19.

Seems to be a permission problem, but I can't figure out how to fix it.
How to reproduce
This will trigger the error:
brew install ack
Which will print:

==> Using the sandbox
==> Downloading https://beyondgrep.com/ack-2.18-single-file
Already downloaded: /Users/nbrogi/Library/Caches/Homebrew/ack-2.18.18-single-file
==> pod2man /usr/local/Cellar/ack/2.18/bin/ack ack.1
Last 15 lines from /Users/nbrogi/Library/Logs/Homebrew/ack/01.pod2man:
2017-03-30 22:11:50 +0200
pod2man
/usr/local/Cellar/ack/2.18/bin/ack
ack.1
Can't locate Getopt/Long.pm:   Permission denied at /usr/bin/pod2man5.18 line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man5.18 line 19.

Additional notes
All of the files in /usr/bin are owned by root, which seems to cause the problem. However, I have not changed these permissions, so I assume this is the default with macOS Sierra.

What's the output of env | grep -i perl?

None.
which perl says:

/usr/bin/perl

What does ls -lha /usr/bin/pod2man5.18 and /usr/bin/pod2man5.18 --version output?

-rwxr-xr-x  1 root  wheel    13K Jul 31  2016 /usr/bin/pod2man5.18*

and

Can't locate Getopt/Long.pm:   Permission denied at /usr/bin/pod2man5.18 line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man5.18 line 19.

I appreciate your help.

How about: ls -lha /System/Library/Perl/5.16/Getopt/ /System/Library/Perl/5.18/Getopt/

/System/Library/Perl/5.16/Getopt/:
total 64
drwxr-xr-x    4 root  wheel   136B Jul 31  2016 ./
drwxr-xr-x  130 root  wheel   4.3K Jul 31  2016 ../
-rw-r--r--    1 root  wheel    77K Jul 31  2016 Long.pm
-rw-r--r--    1 root  wheel   8.2K Jul 31  2016 Std.pm

/System/Library/Perl/5.18/Getopt/:
total 64
drwxr-xr-x    4 root  wheel   136B Jul 31  2016 ./
drwxr-xr-x  130 root  wheel   4.3K Jul 31  2016 ../
-rw-r--r--    1 root  wheel    79K Jul 31  2016 Long.pm
-rw-r--r--    1 root  wheel   8.2K Jul 31  2016 Std.pm

Sorry, I have no ideas why but there's something broken with your /usr/bin/pod2man5.18. You may need to reinstall macOS. Closing as this doesn't affect anyone else.

Doesn't seem so: https://github.com/Homebrew/legacy-homebrew/issues/33479
Whatever, though.

Doesn't seem so: Homebrew/legacy-homebrew#33479

That's a different issue, no-one has the same problem you have.

Whatever, though.

Alternatively: "thanks for spending your free, unpaid time on the weekend trying to help me".


Support JWT authz in Graphql

How does this interact with #407? Graphql API generates CQL... aren't wee going to do atuhz twice?

How does this interact with #407? Graphql API generates CQL... aren't wee going to do authz twice?

The token will only be in the custom payload for the CQL path
https://github.com/stargate/stargate/pull/407/files#diff-0d01320b95459a7d0d2a6e36a7d5fb6e4cad3a7019e50e995a426ea24c8e7951R117


Uncaught TypeError: Cannot read property 'duration' of undefined

I have this error

And tracked it down to choo-log here.
Not sure what I could be doing wrong.
Also, tried to avoid it disabling timing, as the readme says, but it doesn't do anything. Actually, I can't find where are those options used in the source, only the colors options is passed?

Looks like it's reading a value from nanotiming, and somehow the value is
not available. Is this a consistent error? Are you perhaps doing anything
with performance observers. Also: what chrome version are you running?
On Fri, Aug 25, 2017 at 3:42 PM Yerko Palma<EMAIL_ADDRESS>wrote:

I have this error
[image: image]
https://user-images.githubusercontent.com/5105812/29716365-7de2d710-8981-11e7-8d94-e127c1c181cb.png
And tracked it down to choo-log here
https://github.com/choojs/choo-log/blob/master/index.js#L58.
Not sure what I could be doing wrong.
Also, tried to avoid it disabling timing, as the readme says, but it
doesn't do anything. Actually, I can't find where are those options used in
the source, only the colors options is passed?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/choojs/choo-log/issues/84, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWleqIwJ_ovqaZXWoV0KNX_Fye_W_Qxks5sbs80gaJpZM4PCrXX
.

I'm using chrome 60.0.3112.113 64 bits.
I'm not doing anything with performance observer as far as I know. I'm using choo with choo-log and choo-service-worker. Also using Nanocomponent and lightgallery.js, but I'm pretty sure non of those is messing with performance API.
Also this error is non blocking, in fact, after that error other events get logged correctly with their respective time, even if I trigger the same event that before throw the error...

Yeah, there's also a chance that Chrome itself is glitching here. I've
reported errors to the Chrome team before about the Performance API, do not
surprised if other edge cases exist.
On Fri, Aug 25, 2017, 16:37 Yerko Palma<EMAIL_ADDRESS>wrote:

I'm using chrome 60.0.3112.113 64 bits.
I'm not doing anything with performance observer as far as I know. I'm
using choo with choo-log and choo-service-worker. Also using Nanocomponent
and lightgallery.js, but I'm pretty sure non of those is messing with
performance API.
Also this error is non blocking, in fact, after that error other events
get logged correctly with their respective time, even if I trigger the same
event that before throw the error...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/choojs/choo-log/issues/84#issuecomment-324939278, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACWlejTLi70c026fyYRmlW8w6wS_GXbpks5sbtwXgaJpZM4PCrXX
.

haha Chrome...

Also, tried to avoid it disabling timing, as the readme says, but it doesn't do anything

That's differnet, I did it like this.
app.use(require('choo-log')({ timing: false }))

Is that the way to pass options? If it is, why isn't disabling timing?

Timings are part of choo, so you need to set a value on local storage -
check nanotiming docs for the right one
On Fri, Aug 25, 2017, 17:14 Yerko Palma<EMAIL_ADDRESS>wrote:

haha Chrome...
Also, tried to avoid it disabling timing, as the readme says, but it
doesn't do anything
That's differnet, I did it like this.
app.use(require('choo-log')({ timing: false }))
Is that the way to pass options? If it is, why isn't disabling timing?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/choojs/choo-log/issues/84#issuecomment-324950197, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACWlekApucqPzUtwaPK6ak1hHJK6gbAIks5sbuTFgaJpZM4PCrXX
.

re: check nanotiming docs
leaving this here in case it might be useful to someone going through the thread:
app.use(log())
window.localStorage.DISABLE_NANOTIMING = true

Closing because we're archiving this repository — it is now part of choo-devtools. Thanks!


Lint all python files

Since we now have a workflow that automatically lints the Python files in PRs, we should lint the entire package so that we can disentangle existing linter errors (of which there are many) from new linter errors.

Never mind! Looks like this was already done.


Failed to upgrade and re-install: Unknown error occurred

Describe the bug
Authentication is flakey. Integration is solid once authenticated. Additional authentication defect seems to have been introduced in 1.4 or just part of any upgrade.
"Unknown error occurred" is not defined nor described in the wiki and faq.
When installing v1.3 I had "Unknown error occurred" constantly over the 4 days of trying. I logged a defect here. Without changing any authentication details it magically started working one morning and had worked fine until I decided to upgrade to v1.4. After upgrading to v1.4 the integration would appear in HA and show the correct number of entities but none of the entities were available and the integration noted "Failed to set up: check the logs". This error remained after 12 HA restarts. I then rolled back to 1.32 which worked for a few hours then reverted back to the "Failed to set up" error. Following the experience of others here I deleted the integration and reinstalled v1.4 from HACS.
Now using the same authentication credentials as before I have "Unknown error occurred" again.
Interestingly and perhaps not co-incidentally I received an email from Tuya today with the subject "Contract expiry renewal reminder". The message was:
合约到期提醒
尊敬的客户，
您的VOICE_DEVICE_CONTR20210710133725合约，于2021-08-10即将到期，若您仍需使用，请您重新续订，以免影响正常使用，谢谢！如有疑问请拨打400-881-8611或联系在线客服。
Standard Tuya integration continues to work fine and is rock solid.
Expected behavior
Authentication and install of this integration should behave as per the wiki.
It should be as reliable as the standard Tuya integration.
Screenshots
If applicable, add screenshots to help explain your problem.
Home Assistant Version
2021.7.4
** LOG when installing 1.4 from scratch**
021-07-25 20:47:34 INFO (MainThread) [custom_components.tuya_v2.config_flow] TuyaConfigFlow.async_step_user start, is_import= False
2021-07-25 20:47:34 INFO (MainThread) [custom_components.tuya_v2.config_flow] TuyaConfigFlow.async_step_user start, user_input= None
2021-07-25 20:48:19 INFO (MainThread) [custom_components.tuya_v2.config_flow] TuyaConfigFlow.async_step_user start, is_import= False
2021-07-25 20:48:19 INFO (MainThread) [custom_components.tuya_v2.config_flow] TuyaConfigFlow.async_step_user start, user_input= {'password': 'pass', 'access_id': 'aid', 'access_secret': 'asecret', 'tuya_app_type': 'tuyaSmart', 'country_code': '61', 'username'<EMAIL_ADDRESS>2021-07-25 20:48:19 INFO (SyncWorker_5) [custom_components.tuya_v2.config_flow] TuyaConfigFlow._try_login start, user_input: {'password': 'pass', 'access_id': 'aid', 'access_secret': 'sec', 'tuya_app_type': 'tuyaSmart', 'country_code': '61', 'username'<EMAIL_ADDRESS>'tuya_project_type': 0}
Log from after installation successfully installed then upgraded
2021-07-25 19:34:48 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry<EMAIL_ADDRESS>for tuya_v2
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/home//.homeassistant/custom_components/tuya_v2/init.py", line 290, in async_setup_entry
success = await _init_tuya_sdk(hass, entry)
File "/home//.homeassistant/custom_components/tuya_v2/init.py", line 118, in _init_tuya_sdk
entry_data = entry_decrypt(hass, entry, init_entry_data)
File "/home//.homeassistant/custom_components/tuya_v2/init.py", line 81, in entry_decrypt
if init_entry_data[XOR_KEY]:
KeyError: '00oo00'

Authentication randomly started working again when installing the integration.
The standard Tuya integration authenticates just fine.
I've noticed logging into the Tuya IoT platform is also unreliable for me. Sometimes several attempts at login are required including the captcha puzzle piece. Credentials never change it just randomly works.


Galaxy Tab A 10.1 preview skewed

I am having a problem with the preview of my Galaxy Tab A 10.1" - 1920x1200 is the original solution. AutoFitTextureView Ratio and size is set to 1920:1080 because I need 16:9 pictures and because the camera has no full screen functionality - The native camera also shots in 16:9. A delay before opening the camera also does not help.
Working with: Galaxy Note 8 - 18,5:9 and with Galaxy J5 16:9 both with 16:9 pictures...No skewed images...
Someone had the same prob?

This sample has been migrated to a new location where we can accept Pull Requests (check README for more information).
As recommended by GitHub, we are closing all issues and pull requests now that this older repo will be archived.
If you still see this issue in the updated repo, please reopen the issue/PR there. Thank you!


Should underscore hash params when the methods accepts params

For example:
client.find_clan({name: 'onehive', minMembers: 25})
should be
client.find_clan({name: 'onehive', min_members: 25})

This is is already resolved in v1.0 tag


[6.x] Allow to use scoped macro in nested queries

Sometimes need to use scope macro in nested queries:
Model::query()->where(function (Builder $query) {
    $query->withoutTrashed()
        ->orWhereDate('created_at', '>', Carbon::now()->subMonth());
})->withTrashed();

//Real example:
Access::query()
    ->where('type', 'free')
    ->orWhere(function (Builder $query) {
        $query
            ->where('type', 'protected')
            ->forUser(Auth::user()); //scoped macro with nested logic
    })

Scopes are applying only when you call get() or cursor(). But In nested queries this not happening.
I believe this is bug what scope macro does not work in nested queries.

We can't use newQuery(), it adds $withCount and its bindings to the nested query (#24240).

I'll explore this. But where are test for it?

newQueryWithoutRelationships does what is needed.

Sorry, you can use newQuery(). I forgot the bindings issue has also been fixed (and tested) in #24000.

Sorry, you can use newQuery(). I forgot the binding issue has also been fixed (and tested) in #24000.

Cannot. If Model::withCount have where conditions I catch Error: Maximum function nesting level of '256' reached, aborting!

256 is xdebug's default stack depth limit in local development. Disabling the PHP extension will also make the test suite run much faster.

@derekmd The most likely reason one would encounter that error is if there was infinite recursion in the call. It's unlikely that the stack depth limit was hit, otherwise. Disabling the extension would likely see php segfault instead.


Dragging highlighted text

Issue Type: Bug
Hi there!
There's a bug that's been there forever. When there's a text highlihted already and I try to highlight another portion of text, it moves that highlihted text along with the cursor. Please fix it. Or if there's anything I can do in the setting, please let me know.
VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:12:57.074Z)
OS version: Darwin x64 21.6.0
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz (4 x 2300)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
6, 7, 8

Memory (System)
8.00GB (0.07GB free)

Process Argv
--crash-reporter-id d5db4ac1-f236-4ba2-bd86-53ba821160ee

Screen Reader
no

VM
0%

Extensions (13)

Extension
Author (truncated)
Version

vscode-intelephense-client
bme
1.8.2

gitlens
eam
12.2.2

prettier-vscode
esb
9.9.0

python
ms-
2022.16.1

vscode-pylance
ms-
2022.10.30

jupyter
ms-
2022.6.1201981810

jupyter-keymap
ms-
1.0.0

jupyter-renderers
ms-
1.0.9

php-docblocker
nei
2.7.0

vetur
oct
0.36.0

live-sass
rit
3.0.0

LiveServer
rit
5.7.9

shopify-liquid
sis
2.3.0

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
i497e931:30553904
pyindex848cf:30577861
nodejswelcome1cf:30587006
fc301958:30573243

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.72.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Have you tried adjusting the editor.dragAndDrop setting?

This may help if your scenario is that you have some text highlighted, then you drag within that text and want a new selection to be created instead.
Otherwise I am not sure how I can reproduce the issue you describe

/gifPlease
If you are taking about something else than suggested by @Eshnek

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette).
Happy coding!

That's it, @Eshnek ! Thank you!


Crafting Events

Currently there is no easy way to do something if an item is crafted in a crafting table or burned in a furnace.
The only way i found to do something similar is by using the AffectSlotEvent but that only really works for blocking the crafting but doesn't allow to get the items that are crafted, because its already fired in the moment the items are in the grid and not in the moment the items are collected from the Output slot.

Is there any way this could be prioritized? This is a pretty integral part of Minecraft...

Added $25 to the Bounty
Would love to see this being added asap ^^

Added 25$ on top of the 50$ bounty.
Would love to see this being added soon. This is currently holding us back from completing a project that we're working on.

Am I correct in assuming that this issue has been addressed in bfd7f774a040448907b816f446f331d3cd84710b as it was closed without further comment?

There's been several commits relating to crafting events over the past month, and I was involved with testing several of them with faith. This should be well and truly addressed and fixed.


DivideByZeroException for roads with default speed less than 6.25 km/h

Placing a road that has a default speed limit of less than 6.25 km/h (or 0.125 as set in the road editor) (will call it "bugroad" from now on) causes a DivideByZeroException as soon as a vehicle starts driving over it. It might be the case that advanced AI + DLS has to be enabled for this, but I'm not exactly sure.
Originally encountered with https://steamcommunity.com/sharedfiles/filedetails/?id=1175300283 which sets a value of 0.1 (5 km/h) but any other bugroad will do. Quickly made two roads in asset editor, lane speed 0.124 throws exceptions, 0.126 works fine.
Crash happens in TrafficMeasurementManager.CalcLaneRelativeMeanSpeed. laneVehicleSpeedLimit is zero because GetLockFreeGameSpeedLimit(...) * 8 is less than 1 for such bugroads, causing div0 in the next line.
Suggested solution: set laneVehicleSpeedLimit to at least 1 before doing anything with it.

Thanks for the report! It will be fixed with the next update. https://github.com/VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition/tree/1.10.5


[rmodels] Read uninitialized values in GenMeshTangents

This commit (c4a51a3) will skip the last iteration if mesh->vertexCount % 3 == 0 (I suppose this is the normal case), which results in the last values for tan1 and tan2 being uninitialized. In any case this reads uninitialized memory from the end of tan1 and tan2 in the next loop regardless of the value of mesh->vertexCount. Did you mean to use i <= mesh->vertexCount - 3? Maybe a better option would be to assert that mesh->vertexCount % 3 == 0 and keep the old loop, since otherwise the last 1 or 2 values from tan1 and tan2 will always be uninitialized, which is probably not what you want.
\cc @sgalindo

@ListeriaM Thanks for the further review, I didn't notice it...


FOLIO-3994 Use GitHub Workflows release v1

Currently that equates to https://github.com/folio-org/.github/releases/tag/v1.6.0
When a new centralised version is released, then due to our @v1 we will automatically use the new current release.

@MikeTaylor -- Would you please now do the release v1.2.0 of mod-reporting.
Due to my re-naming of the GitHub Workflow file, the CI is computing an older SNAPSHOT version number. It appends the "run-number" of the Workflow, which is now not sequential to its earlier runs. I believe that the new release mod-reporting version number will rectify that.


rds: support rds read replicas

This just adds a replicate_source_db variable to the rds module
that proxies the setting to the TF RDS resource.

This worked in terracode-warehouse (planned for both replica and primary)

@achille-roussel What version of TF do we need to support? I can bump circle.yml if that's ok with you. make test passes on v0.9.6 on my computer

What's your concern on the version support? Are you using new features of 0.9.6? Supporting 0.9.x is good enough I think.

@achille-roussel I think ternaries may be new? make test passes locally but doesn't in CI so I assumed it was due to TF versioning

Yes, ternaries are new in 0.8 I think, can you fix the test to run with a newer version of TF?
=> https://github.com/segmentio/stack/blob/master/circle.yml#L4

@achille-roussel Yep, just wanted to check that it's ok to upgrade :)

@tejasmanohar what's the state of this PR?


Fix Electron 20+ build

electron 20+(or one of the versions around it?) build against c++17 but the config's set c++ standard to gnu++14 which causes build failures.
Unsetting the option lets the compiler pick and it will default to a higher version.

this ain't it.


Since upgrade to minio-go 4.0 remove workaround

We added previously a code to fix the issue of chaining
credentials, we do not need this anymore since the
upstream minio-go already has this relevant change.

What is the purpose of this change? What does it change?
Removes a previous workaround

Was the change discussed in an issue or in the forum before?
Yes #1423

Checklist

[x] I have read the Contribution Guidelines
[ ] I have added tests for all changes in this PR
[ ] I have added documentation for the changes (in the manual)
[ ] There's an entry in the CHANGELOG.md file that describe the changes for our users
[x] I have run gofmt on the code in all commits
[x] All commit messages are formatted in the same style as the other commits in the repo
[x] I'm done, this Pull Request is ready for review

Codecov Report

Merging #1476 into master will decrease coverage by 5.25%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1476      +/-   ##
==========================================
- Coverage   51.64%   46.38%   -5.26%
==========================================
  Files         138      138
  Lines       11083    11065      -18
==========================================
- Hits         5724     5133     -591
- Misses       4485     5114     +629
+ Partials      874      818      -56

Impacted Files
Coverage Δ

internal/backend/s3/s3.go
63.84% <100%> (-0.19%)
:arrow_down:

internal/backend/b2/b2.go
0% <0%> (-78.84%)
:arrow_down:

internal/backend/azure/azure.go
0% <0%> (-76.71%)
:arrow_down:

internal/backend/swift/swift.go
0% <0%> (-75.89%)
:arrow_down:

internal/backend/gs/gs.go
0% <0%> (-71%)
:arrow_down:

internal/backend/swift/config.go
36.95% <0%> (-54.35%)
:arrow_down:

internal/archiver/archiver.go
65.03% <0%> (+0.21%)
:arrow_up:

Continue to review full report at Codecov.

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

Thank you!


Enhancing content visibility on dashboard

As u can see the color of the  coin-symbol on the dashboard is black which is not even visible  there is the need of changing the colour of the coin-symbol

As u can see the color of the coin-symbol on the dashboard is black which is not even visible there is the need of changing the colour of the coin-symbol

Oky I will assign you
Resolve this


console.error is also stripped

console.error is also stripped

All console methods are stripped.

It should really say in the documentation that all console statements are removed.


Dash Item position issue on adding new item

Hi, I found this a good library to display responsive tiles in a grid though I'm having an issue while adding a new item into dash layout. I want to add a new item by clicking a button, it works well until I don't resize the item. After spending a few hours I figured out the placeholder item places itself just after the first item.
You can reproduce issue here:
https://codesandbox.io/s/vue-responsive-dash-wbgs8
Steps:

Click "Add" button and add first item.
Resize the added item.
Click "Add" button to add another item.
Note: See the space between first and second item.

Is there something I can do to influence this behaviour and remove this space?

For a quick fix you can change default variables for width and height in DashItem.model.ts to 0 which should fix this problem (it works for me) and build the library... or you can find these variables in node_modules.
Also this fixed issue with responsive layouts... basically the same problem as @rimtiaz but when breakpoint change happens the placeholder Dashitem goes to the x:0 coordinate and pushes all other items under it (because it has height: 1).
Maybe for placeholder DashItem you can use 0 values for width and height as a future fix? @bensladden

This is an old issue but this is how I fixed it.
demo link
https://codesandbox.io/s/vue-responsive-dash-forked-zpi82
Description:
I add ref attribute to  <dash-layout to access child component, through this I can access the placeholderY value and can update it.(see in moveEnd method )
eg:
 <dash-layout ref="dashLayout"
and add moveEnd  event in <dash-item
eg:
   <dash-item
      ...
       v-on:moveEnd="moveEnd"
      ...
    >

Now we can call method moveEnd when moveEnd event fires. ( see moveEnd event documentation here )
    moveEnd() {
      this.$nextTick(() => {
        this.$refs.dashLayout[0].placeholderY = this.maxY + this.maxH;
      });
    },

in moveEnd method I'm accessing the placeholderY value using vue refs and assigning new value. I'm calculating the values for maxY and maxH using getMaxPosition method.
During every execution of addItem() method and  after add a new item to the layout I'm also calling getMaxPosition method to  updated maxY and maxH values .
Thanks :)

For a quick fix you can change default variables for width and height in DashItem.model.ts to 0 which should fix this problem (it works for me) .....

Yeapp, that's work 🥳
I made a fork of that library with @rhlatky's simple fix.
https://www.npmjs.com/package/capico-vue-responsive-dash
I tried a lot of other similar libraries made with Vue, but @bensladden's solution is the best.🤩
Thanks a lot, man.🤗


automate address configuration

Goals of PR
Automate the configuration of addresses by parsing the hardhat deployment files, and write the contract deployment addresses to a config file.
Core changes:
Writes deployment addresses to a .deployments.env file, removes and replaces references to hardcoded addresses.
Notes:
The address a contract is deployed to is hash(deployer address | nonce), so we can't hardcode contract deployments.

this is very useful, but why ts, why not make it part of ops tool?

this is very useful, but why ts, why not make it part of ops tool?

we hardhat to deploy our L1 contracts
the process is essentially:

create l2 genesis (uses ops)
deploy l1 contracts (uses 'hardhat')
create rollup config (currently typescript create_config.ts, this PR currently also parses and writes the deployment addresses here)

i think if the plan is to move step 3 into the ops tool, then these changes should also go into ops tool, otherwise I think its simpler to leave these changes in the ts config script.


Tensor expression example for ROCm

Goal

Enable tensor expression example on ROCm
ROCm 2.6 with gfx900/gfx906

Result

need rebase to incorporate gcnArch fix

add utility function to detect backend


operator kube-green (0.5.1)

upgrade kube-green to version 0.5.1

/merge possible

/merge possible


Improve templates dev experience

This MR allows

Run template dev server without firebase token (by calling get_firestore_db inside if condition)
Use same make_svg function from main view file

I will check this PR that is working well tomorrow. thank you for your contribute.


HorizontalPodAutoscaler doesn't work - error: missing request for cpu

I have followed the tutorial but it does not work. The output of kubectl get hpa -n ratan  -
NAME                   REFERENCE                     TARGETS         MINPODS   MAXPODS   REPLICAS   AGE
azure-vote-back-hpa    Deployment/azure-vote-back    <unknown>/50%   3         10        3          3m31s
azure-vote-front-hpa   Deployment/azure-vote-front   <unknown>/50%   3         10        3          3m30s

And the output of kubectl describe hpa -n ratan azure-vote-front-
Name:                                                  azure-vote-front-hpa
Namespace:                                             ratan
Labels:                                                <none>
Annotations:                                           kubectl.kubernetes.io/last-applied-configuration:
                                                         {"apiVersion":"autoscaling/v1","kind":"HorizontalPodAutoscaler","metadata":{"annotations":{},"name":"azure-vote-front-hpa","namespace":"ra...
CreationTimestamp:                                     Wed, 20 May 2020 02:05:36 +0600
Reference:                                             Deployment/azure-vote-front
Metrics:                                               ( current / target )
  resource cpu on pods  (as a percentage of request):  <unknown> / 50%
Min replicas:                                          3
Max replicas:                                          10
Deployment pods:                                       3 current / 0 desired
Conditions:
  Type           Status  Reason                   Message
  ----           ------  ------                   -------
  AbleToScale    True    SucceededGetScale        the HPA controller was able to get the target's current scale
  ScalingActive  False   FailedGetResourceMetric  the HPA was unable to compute the replica count: missing request for cpu
Events:
  Type     Reason                        Age                   From                       Message
  ----     ------                        ----                  ----                       -------
  Warning  FailedGetResourceMetric       10s (x11 over 2m41s)  horizontal-pod-autoscaler  missing request for cpu
  Warning  FailedComputeMetricsReplicas  10s (x11 over 2m41s)  horizontal-pod-autoscaler  invalid metrics (1 invalid out of 1), first error is: failed to get cpu utilization: missing request for cpu

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

ID: 6ab10c96-1f2f-e48f-a084-b1715156e33f
Version Independent ID: a113b8e9-259a-2a65-2e54-a2661c78ddb5
Content: Kubernetes on Azure tutorial  - Scale Application - Azure Kubernetes Service
Content Source: articles/aks/tutorial-kubernetes-scale.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

@ratanparai
Thanks for your Question! We are currently investigating and will get back on this.

@ratanparai
The HPA will be unable to calculate CPU utilization unless a resource request exists for all pods that match the scale target.
The resource request is part of the container spec of both "Deployment" resources. To confirm the CPU resource requests exist, run kubectl describe deployment azure-vote-front and look under Pod Templates -> Containers -> [Container Name] -> Requests - there should be a key-value pair for "cpu" in that section.
Here is an example of what needs to be added to the "Deployment" resource yaml file.

@VikasPullagura-MSFT : Thanks for your reply.
The deployed service yaml is -
apiVersion: apps/v1
kind: Deployment
metadata:
  name: azure-vote-back
spec:
  replicas: 1
  selector:
    matchLabels:
      app: azure-vote-back
  template:
    metadata:
      labels:
        app: azure-vote-back
    spec:
      nodeSelector:
        "beta.kubernetes.io/os": linux
      containers:
      - name: azure-vote-back
        image: redis
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
          limits:
            cpu: 250m
            memory: 256Mi
        ports:
        - containerPort: 6379
          name: redis
---
apiVersion: v1
kind: Service
metadata:
  name: azure-vote-back
spec:
  ports:
  - port: 6379
  selector:
    app: azure-vote-back
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: azure-vote-front
spec:
  replicas: 1
  selector:
    matchLabels:
      app: azure-vote-front
  template:
    metadata:
      labels:
        app: azure-vote-front
    spec:
      nodeSelector:
        "beta.kubernetes.io/os": linux
      containers:
      - name: azure-vote-front
        image: microsoft/azure-vote-front:v1
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
          limits:
            cpu: 250m
            memory: 256Mi
        ports:
        - containerPort: 80
        env:
        - name: REDIS
          value: "azure-vote-back"
---
apiVersion: v1
kind: Service
metadata:
  name: azure-vote-front
spec:
  type: LoadBalancer
  ports:
  - port: 80
  selector:
    app: azure-vote-front

As you can see there is CPU resource already provided in the deployment. and the Horizontal pod scaler yaml file -
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  name: azure-vote-back-hpa
spec:
  maxReplicas: 10 # define max replica count
  minReplicas: 3  # define min replica count
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: azure-vote-back
  targetCPUUtilizationPercentage: 50 # target CPU utilization

---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  name: azure-vote-front-hpa
spec:
  maxReplicas: 10 # define max replica count
  minReplicas: 3  # define min replica count
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: azure-vote-front
  targetCPUUtilizationPercentage: 50 # target CPU utilization

The matrics-server is working -
➜  HorizontalPodAutoscaling git:(master) kubectl top nodes -n ratan
NAME                       CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
aks-agentpool-32213995-0   517m         27%    5053Mi          110%
aks-agentpool-32213995-1   244m         12%    3335Mi          73%
aks-agentpool-32213995-2   406m         21%    4771Mi          104%
aks-agentpool-32213995-3   421m         22%    4436Mi          97%

Also the output of kubectl describe deployment azure-vote-front as you asked -
➜  HorizontalPodAutoscaling git:(master) kubectl describe deployment azure-vote-front -n ratan
Name:                   azure-vote-front
Namespace:              ratan
CreationTimestamp:      Wed, 20 May 2020 11:10:05 +0600
Labels:                 <none>
Annotations:            deployment.kubernetes.io/revision: 1
                        kubectl.kubernetes.io/last-applied-configuration:
                          {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"name":"azure-vote-front","namespace":"ratan"},"spec":{"replicas"...
Selector:               app=azure-vote-front
Replicas:               3 desired | 3 updated | 3 total | 3 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:  app=azure-vote-front
  Containers:
   azure-vote-front:
    Image:      microsoft/azure-vote-front:v1
    Port:       80/TCP
    Host Port:  0/TCP
    Limits:
      cpu:     250m
      memory:  256Mi
    Requests:
      cpu:     100m
      memory:  128Mi
    Environment:
      REDIS:  azure-vote-back
    Mounts:   <none>
  Volumes:    <none>
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Progressing    True    NewReplicaSetAvailable
  Available      True    MinimumReplicasAvailable
OldReplicaSets:  <none>
NewReplicaSet:   azure-vote-front-ccfd8667f (3/3 replicas created)
Events:
  Type    Reason             Age                 From                   Message
  ----    ------             ----                ----                   -------
  Normal  ScalingReplicaSet  2m31s               deployment-controller  Scaled down replica set azure-vote-front-ccfd8667f to 1
  Normal  ScalingReplicaSet  2m14s (x2 over 9h)  deployment-controller  Scaled up replica set azure-vote-front-ccfd8667f to 3

@ratanparai Thanks for sharing the details.
As this needs more deeper investigation, recommend to open a support case for this issue so support team can troubleshoot.
If you don't have the ability to open a technical support ticket, you can email me with Subject as "ATTN: Vikas" at<EMAIL_ADDRESS>and provide me with your SubscriptionID and link to this thread. I can then enable your subscription for one time free support.
Also, once you get the issue fixed, request you to reply back here on the thread with the resolution steps for the benefit of the community.

I have created a support ticket ID:<PHONE_NUMBER>05457 after creating this issue and also had a screen share session with support and tried different things but couldn't figure out why it is not working. Still waiting for the solution.
We have another cluster and it works without issue in that cluster. It's very frustrating.

@ratanparai was this resolved?

@vinita-razor : We had to recreate the cluster.
Microsoft support couldn't figure out the issue after multiple support calls and as we were just setting up cluster, we decided to delete the cluster and create new one. This resolved our issue.


Please fix Mega decryption key problem.

New Issue Checklist (tick off like this: [x])

[x] I checked existing issues (open and closed) for possible duplicates
[ ] I can reproduce the problem on the latest stable version (not nightly!)
[ ] If you have a problem a specific website: adding the domain to your blacklist does not solve the problem
[x] The issue is not about adding entries to the default blacklist

What is your browser?

[ ] Firefox
[ ] Chrome
[x] Microsoft Edge

What is your operating system?

[ ] Linux
[ ] Mac
[x] Windows

Description (please include examples/screenshots where applicable)

For example like this Mega URL, it used to be attached with its decryption code, but because of Skip Redirect, it have disappeared. I can tell because I have tried it without Skip Redirect.
Thank you.

Without the full URL I can't tell you much, but you probably need to add mega.nz to your blacklist.


Automated cherry pick of #1246: fix: network is_public init value set to true for domain scope

Cherry pick of #1246 on release/2.10.0.
#1246: fix: network is_public init value set to true for domain scope

/lgtm
/approve

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.10.0@1c18f32). Click here to learn what that means.
The diff coverage is 0%.

@@               Coverage Diff                @@
##             release/2.10.0   #1247   +/-   ##
================================================
  Coverage                  ?   7.92%
================================================
  Files                     ?     367
  Lines                     ?   57356
  Branches                  ?       0
================================================
  Hits                      ?    4546
  Misses                    ?   52410
  Partials                  ?     400

Flag
Coverage Δ

#aFlag
7.92% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/networks.go
0.97% <0%> (ø)

Continue to review full report at Codecov.

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


Article: Editor

Story link
#122 Story
Task description
Create custom Editor component based on one of existing solutions.
It should support:

Toggling between Underlined, Bold, and Italics text with toolbar buttons
Normal or Heading text style, changing text style with button
Toolbar customization, so we can make custom buttons and remove excess features
Embedding images with captions using a button (link or upload) or Ctrl+V / context menu paste

To do

[ ] Create a preset for Article page that

[ ] supports headings & image captions
[ ] has limits of 2000 to 63206 characters

[ ] Create a preset for Note page that

[ ] doesn't support headings or image captions
[ ] has limits of ???

Estimating

also implement the configs & toolbar for note and preview


Optional configuration value for custom profile dir

Also provides a solution for #108

Thanks for your PR! LGTM, I will test it and release it later on this week.


Socket Channel not working in rasa 3.0.0

Rasa Open Source version
3.0.0
Rasa SDK version
3.0.0
Rasa X version
No response
Python version
3.8
What operating system are you using?
Linux
What happened?
Using the rasa chat widget to talk to the bot throws the following exception in rasa 3.0.0:
[2021-11-28 13:09:58 +0000] [4700] [ERROR] Exception occurred while handling uri: 'http://localhost:5005/socket.io/?EIO=4&transport=polling&t=Nrcgg60'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
  File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_server.py", line 317, in handle_request
    return await self._make_response(r, environ)
  File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_server.py", line 385, in _make_response
    response = make_response(
  File "/opt/venv/lib/python3.8/site-packages/engineio/async_drivers/sanic.py", line 102, in make_response
    return HTTPResponse(body=payload, content_type=content_type,
TypeError: 'NoneType' object is not callable

This did not happen in rasa 2.8.15.
This repo contains a reproducible example.
Command / Request
No response
Relevant log output
No response
Definition of done

[ ] Determine if the cause is in Rasa Open Source 3.0
[ ] If the problem is in Rasa Chat Widget, update this issue and move to Fabric backlog
[ ] Try to add test for this?

It looks like Rasa 3.0 is using python-socketio version 5.5.0: https://github.com/RasaHQ/rasa/blob/main/poetry.lock#L2129. We'll need to check if the corresponding Javascript version used in the Rasa chat widget is compatible (https://github.com/miguelgrinberg/python-socketio)

@gausie Do you know what socket-io version that Rasa webchat widget is currently using?

I have experimented this on rasa/webchat/ and its working fine.
pip install sanic==21.6.0
pip install Sanic-Cors==1.0.0
pip install sanic-routing==0.7.0

I am facing similar error with rasa 3.0.1
[2021-12-02 20:35:12 -0500] [88145] [ERROR] Exception occurred while handling uri: 'http://localhost:5005/socket.io/?EIO=4&transport=polling&t=NrzxbjF'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
  File "/Users/jona/Library/Caches/pypoetry/virtualenvs/rasa-assistant-_8IB3lkj-py3.7/lib/python3.7/site-packages/engineio/asyncio_server.py", line 317, in handle_request
    return await self._make_response(r, environ)
  File "/Users/jona/Library/Caches/pypoetry/virtualenvs/rasa-assistant-_8IB3lkj-py3.7/lib/python3.7/site-packages/engineio/asyncio_server.py", line 388, in _make_response
    response_dict['response'], environ)
  File "/Users/jona/Library/Caches/pypoetry/virtualenvs/rasa-assistant-_8IB3lkj-py3.7/lib/python3.7/site-packages/engineio/async_drivers/sanic.py", line 103, in make_response
    status=int(status.split()[0]), headers=headers_dict)
TypeError: 'NoneType' object is not callable

I tried installing @nimitkh version using poetry but I got a version error

I am also facing similar error with Rasa v3.0.1.
I made sure to follow the socketio compatibility table:
Rasa v3 is using: python-socketio 5.x and I tested my frontend client with JavaScript Socket.IO 4.4.0.

This issue happens because of this: https://github.com/miguelgrinberg/python-engineio/issues/251

I made some investigation and here are the results:
Unfortunately, we have to wait for python-engineio to get fixed (https://github.com/miguelgrinberg/python-engineio/issues/251) because we made a bunch of changes to how we use sanic, and downgrading it to 21.6.0 makes little sense because in this case we would need to revert our changes, and can potentially lead to issues with rasa-sdk as well.
We can speed things up a bit by fixing this issue: https://github.com/miguelgrinberg/python-engineio/issues/251

[update] on version rasa==3.0.2 and rasa-sdk==3.0.2 with the following versions, it working with rasa/webchat.

python-engineio==4.3.0
python-socketio==5.5.0
rasa==3.0.2
rasa-sdk==3.0.2
sanic==21.6.0
Sanic-Cors==1.0.0
sanic-routing==0.7.0
sanic-jwt==1.7.0
sanic-plugin-toolkit==1.2.0
Sanic-Plugins-Framework==0.9.5
socketIO-client==0.7.2

Same issue

@nimitkh which python version are you using?

@Italosayan It is 3.7.7

It's now fixed in the python-engineio repo, I've just asked for a pypi release

python-engineio has released a new version with the fix: 4.3.1 🎉

@amn41 may have discovered a different issue with python-engineio 4.3.1 and sanic 21.9.3

I’m having an issue with sanic websockets and Rasa Web Chat and suspect it’s related to this. I’m running the latest docker image rasa/rasa:3.0.5  which has the following installed:

$ pip list | grep anic
sanic                   21.9.3
Sanic-Cors              1.0.1
sanic-jwt               1.7.0
sanic-plugin-toolkit    1.2.1
sanic-routing           0.7.2

If I hook up Rasa Web Chat to this server, I get an exception when trying to start a chat:
rasa-production_1  | 2022-01-20 10:34:08 DEBUG    rasa.core.channels.socketio  - User JRwVm-eqBQ_Hkr90AAAB connected to socketIO endpoint.
rasa-production_1  | Exception occurred while handling uri: 'ws://docker-stack/socket.io/?EIO=4&transport=websocket&sid=z75hbjVaYkWkQmbdAAAA'
rasa-production_1  | Traceback (most recent call last):
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/sanic/server/protocols/websocket_protocol.py", line 119, in websocket_handshake
rasa-production_1  |     subprotocols = list(subprotocols)
rasa-production_1  |   File "/usr/lib/python3.8/typing.py", line 261, in inner
rasa-production_1  |     return func(*args, **kwds)
rasa-production_1  |   File "/usr/lib/python3.8/typing.py", line 685, in __getitem__
rasa-production_1  |     params = tuple(_type_check(p, msg) for p in params)
rasa-production_1  |   File "/usr/lib/python3.8/typing.py", line 685, in <genexpr>
rasa-production_1  |     params = tuple(_type_check(p, msg) for p in params)
rasa-production_1  |   File "/usr/lib/python3.8/typing.py", line 149, in _type_check
rasa-production_1  |     raise TypeError(f"{msg} Got {arg!r:.100}.")
rasa-production_1  | TypeError: Parameters to generic types must be types. Got 0.
rasa-production_1  |
rasa-production_1  | During handling of the above exception, another exception occurred:
rasa-production_1  |
rasa-production_1  | Traceback (most recent call last):
rasa-production_1  |   File "handle_request", line 83, in handle_request
rasa-production_1  |     class Sanic(BaseSanic, metaclass=TouchUpMeta):
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_server.py", line 271, in handle_request
rasa-production_1  |     packets = await socket.handle_get_request(environ)
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_socket.py", line 89, in handle_get_request
rasa-production_1  |     return await getattr(self, '_upgrade_' + transport)(environ)
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_socket.py", line 142, in _upgrade_websocket
rasa-production_1  |     return await ws(environ)
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/engineio/async_drivers/sanic.py", line 122, in __call__
rasa-production_1  |     self._sock = await protocol.websocket_handshake(request)
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/sanic/server/protocols/websocket_protocol.py", line 132, in websocket_handshake
rasa-production_1  |     raise ServerError(msg, status_code=500)
rasa-production_1  | sanic.exceptions.ServerError: Failed to open a WebSocket connection.

Using sanic 21.6.0 and python-engineio 4.3.1 works.

I am facing an exception while trying to start a conversation with the bot using rasa-webchat.
Versions :
rasa : 3.0.5  sanic : 21.6.0  sanic-routing : 0.7.0  python-engineio : 4.3.1
Exception:
`2022-01-25 17:30:13 DEBUG    rasa.core.channels.socketio  - User FDlqpflyb3RoLF_OAAAD connected to socketIO endpoint.
2022-01-25 17:30:13 DEBUG    rasa.core.channels.socketio  - User FDlqpflyb3RoLF_OAAAD connected to socketIO endpoint.
2022-01-25 17:30:35 DEBUG    rasa.core.channels.socketio  - User FDlqpflyb3RoLF_OAAAD disconnected from socketIO endpoint.
[2022-01-25 17:30:35 +0530] [4614] [ERROR] Exception occurred while handling uri: 'ws://localhost:5005/socket.io/?EIO=4&transport=websocket&sid=Rqt75Tlbo11YI4ZzAAAC'
Traceback (most recent call last):
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic/app.py", line 783, in handle_request
f"Invalid response type {response!r} "
sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)
[2022-01-25 17:30:35 +0530] [4614] [ERROR] Exception occurred while handling uri: 'ws://localhost:5005/socket.io/?EIO=4&transport=websocket&sid=Rqt75Tlbo11YI4ZzAAAC'
Traceback (most recent call last):
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic/app.py", line 783, in handle_request
f"Invalid response type {response!r} "
sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic/http.py", line 129, in http1
await self.protocol.request_handler(self.request)
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic_plugin_toolkit/realm.py", line 566, in _handle_request_21_03
raise cancelled
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic_plugin_toolkit/realm.py", line 554, in _handle_request_21_03
_ = await real_handle(request)
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic/app.py", line 791, in handle_request
await self.handle_exception(request, e)
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic/app.py", line 704, in handle_exception
await response.send(end_stream=True)
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic/response.py", line 122, in send
await self.stream.send(data, end_stream=end_stream)
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic/http.py", line 335, in http1_response_header
await self._send(ret)
File "/Users/adheesh.arumugam/.virtualenvs/rasa_3.x_env/lib/python3.7/site-packages/sanic/server.py", line 268, in send
raise CancelledError
concurrent.futures._base.CancelledError`
Few things to note:

the bot is functional through socket communication and it works as expected.
The above exception occurs only when we reload the page and click the chat widget.

Hi,
Were you able to resolve the above issue?
Facing similar error.

@donodje can we close this issue?

Hi,
I installed sanic ==21.12
pip install sanic==21.12
But getting the below error.Which version of sanic-plugin-toolkit should I have?
sanic-plugin-toolkit 1.2.1 requires sanic<21.12.0,>=21.3.1, but you have sanic 21.12.0 which is incompatible.
Successfully installed sanic-21.12.0
Kindly help.
Thanks.

@amn41 may have discovered a different issue with python-engineio 4.3.1 and sanic 21.9.3

I’m having an issue with sanic websockets and Rasa Web Chat and suspect it’s related to this. I’m running the latest docker image rasa/rasa:3.0.5  which has the following installed:
$ pip list | grep anic
sanic                   21.9.3
Sanic-Cors              1.0.1
sanic-jwt               1.7.0
sanic-plugin-toolkit    1.2.1
sanic-routing           0.7.2

If I hook up Rasa Web Chat to this server, I get an exception when trying to start a chat:
rasa-production_1  | 2022-01-20 10:34:08 DEBUG    rasa.core.channels.socketio  - User JRwVm-eqBQ_Hkr90AAAB connected to socketIO endpoint.
rasa-production_1  | Exception occurred while handling uri: 'ws://docker-stack/socket.io/?EIO=4&transport=websocket&sid=z75hbjVaYkWkQmbdAAAA'
rasa-production_1  | Traceback (most recent call last):
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/sanic/server/protocols/websocket_protocol.py", line 119, in websocket_handshake
rasa-production_1  |     subprotocols = list(subprotocols)
rasa-production_1  |   File "/usr/lib/python3.8/typing.py", line 261, in inner
rasa-production_1  |     return func(*args, **kwds)
rasa-production_1  |   File "/usr/lib/python3.8/typing.py", line 685, in __getitem__
rasa-production_1  |     params = tuple(_type_check(p, msg) for p in params)
rasa-production_1  |   File "/usr/lib/python3.8/typing.py", line 685, in <genexpr>
rasa-production_1  |     params = tuple(_type_check(p, msg) for p in params)
rasa-production_1  |   File "/usr/lib/python3.8/typing.py", line 149, in _type_check
rasa-production_1  |     raise TypeError(f"{msg} Got {arg!r:.100}.")
rasa-production_1  | TypeError: Parameters to generic types must be types. Got 0.
rasa-production_1  |
rasa-production_1  | During handling of the above exception, another exception occurred:
rasa-production_1  |
rasa-production_1  | Traceback (most recent call last):
rasa-production_1  |   File "handle_request", line 83, in handle_request
rasa-production_1  |     class Sanic(BaseSanic, metaclass=TouchUpMeta):
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_server.py", line 271, in handle_request
rasa-production_1  |     packets = await socket.handle_get_request(environ)
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_socket.py", line 89, in handle_get_request
rasa-production_1  |     return await getattr(self, '_upgrade_' + transport)(environ)
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_socket.py", line 142, in _upgrade_websocket
rasa-production_1  |     return await ws(environ)
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/engineio/async_drivers/sanic.py", line 122, in __call__
rasa-production_1  |     self._sock = await protocol.websocket_handshake(request)
rasa-production_1  |   File "/opt/venv/lib/python3.8/site-packages/sanic/server/protocols/websocket_protocol.py", line 132, in websocket_handshake
rasa-production_1  |     raise ServerError(msg, status_code=500)
rasa-production_1  | sanic.exceptions.ServerError: Failed to open a WebSocket connection.

Using sanic 21.6.0 and python-engineio 4.3.1 works.

Facing the same issue with rasa 3.0.8 (sanic==21.9.3)

This fix is not released yet and will be released in 3.1

I'm facing an issue in webchat even when I tried with unreleased rasa having the fix for this issue.
I took the code from RasaHQ's main branch (which has this current issue addressed) and installed the dependencies pertaining to unreleased rasa using poetry as described by the docs.
When I tried to run it with rasa webchat, the old socket exception didn't occur. But when we close the session, it's throwing an exception.
Versions:
Rasa Version : 3.0.8
Minimum Compatible Version : 3.0.0
Rasa SDK Version : 3.0.5
Python Version :  3.7.4

Exception:
2022-03-03 20:44:48 DEBUG    rasa.core.channels.socketio  - User PuIQ5ep8xl8Xx_5WAAAd disconnected from socketIO endpoint.
[2022-03-03 20:44:48 +0530] [13248] [ERROR] Exception occurred while handling uri: 'ws://localhost:5005/socket.io/?EIO=4&transport=websocket&sid=JKutAeQkewNitK-zAAAc'
Traceback (most recent call last):
  File "handle_request", line 125, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)

Also, I am facing an error when I killed the rasa core using ctrl + c.  Basically, if we stop the server, the following error message is displayed in the terminal. If there were 'n' sessions active when stopping the core server, the same error message repeats 'n' times
Error:
2022-03-03 20:44:49 ERROR    asyncio  - Task was destroyed but it is pending!
source_traceback: Object created at (most recent call last):
  File "/Users/adheesh.arumugam/.virtualenvs/rasa_test_env/bin/rasa", line 5, in <module>
    main()
  File "/Users/adheesh.arumugam/rasa/rasa/__main__.py", line 119, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/Users/adheesh.arumugam/rasa/rasa/cli/run.py", line 95, in run
    rasa.run(**vars(args))
  File "/Users/adheesh.arumugam/rasa/rasa/api.py", line 61, in run
    **kwargs,
  File "/Users/adheesh.arumugam/rasa/rasa/core/run.py", line 230, in serve_application
    workers=number_of_workers,
  File "/Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/sanic/app.py", line 1204, in run
    serve_single(server_settings)
  File "/Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/sanic/server/runners.py", line 206, in serve_single
    serve(**server_settings)
  File "/Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/sanic/server/runners.py", line 155, in serve
    loop.run_forever()
  File "connection_task", line 15, in connection_task
    from sanic.http import Http, Stage
  File "/Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/sanic/http.py", line 146, in http1
    await self.protocol.request_handler(self.request)
  File "handle_request", line 83, in handle_request
    )
  File "/Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/engineio/asyncio_server.py", line 259, in handle_request
    jsonp_index)
  File "/Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/engineio/asyncio_server.py", line 396, in _handle_connect
    self.start_background_task(self._service_task)
  File "/Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/engineio/asyncio_server.py", line 332, in start_background_task
    return asyncio.ensure_future(target(*args, **kwargs))
task: <Task pending coro=<AsyncServer._service_task() running at /Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/engineio/asyncio_server.py:498> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x1633f1590>()] created at /Users/adheesh.arumugam/.pyenv/versions/3.7.4/lib/python3.7/asyncio/tasks.py:590> created at /Users/adheesh.arumugam/.virtualenvs/rasa_test_env/lib/python3.7/site-packages/engineio/asyncio_server.py:332>

Both of the errors didn't occur in the older version of rasa and rasa-sdk.

If you look at the PR it was merged into 3.0.x branch, not main. I built from 3.0.x and it fixed the socket issue.

@rgstephens I replicated the same process by switching to the 3.0.x branch and performing poetry install. The above-mentioned error and exception still persist.
The error occurs when we stop the core server and an exception occurs when we close the browser window/tab

You can try the docker image I built - stephens/rasa:3.0.8-full-10412. I've had this deployed for a couple of weeks and am using sockets with the botfront rasa chat widget.

The socket issue still persists even with the latest Rasa version (3.2.4). I'm using rasa-webchat as the chat interface. The issue can be reproduced by:

Closing the chat session (by closing the browser tab).
Redirecting to a different page and coming back to the page with the chatbot. In this case, the chatbot stops working.

Version Reference:
Python packages:
rasa==3.2.4
rasa-sdk==3.2.0
sanic==21.12.1
Sanic-Cors==2.0.1
sanic-jwt==1.8.0
sanic-routing==0.7.2
Javascript dependencies:
<EMAIL_ADDRESS>

Using sanic 21.6.0 and python-engineio 4.3.1 works.

to try and overcome the http://<IP_ADDRESS>:5005/socket.io/?EIO=3&transport=polling&t=123 error that when trying to connect from my local machine using a chatbot front-end that uses socket.io such as https://github.com/botfront/rasa-webchat to the Rasa server that i was hosting on an AWS EC2 instance , i tried the following:

tried using the latest Rasa 3.x but that didn't work, and reverting back to Rasa v2.2.10 but that didn't work too
tried reverting back to Rasa 3.0.0 as suggested in this thread but that didn't work

opened TCP port 5005 for IPv4 and IPv6 incoming traffic
note that when i tried to use the dependencies mentioned in this thread by @nimitkh i got the following error:

# sanic-plugins-framework 0.9.5 requires sanic<21,>=18.12.0, but you have sanic 21.6.0 which is incompatible.
# rasa 3.0.2 requires sanic-routing<0.8.0,>=0.7.2, but you have sanic-routing 0.7.0 which is incompatible.

  where i was using Ubuntu 22.04 with Python 3.7.7, so i used `--no-deps` as follows to make sure a version of sanic less than 21.9 was installed:

python -m pip install rasa==3.0.0
python -m pip install python-engineio==4.3.1
python -m pip install python-socketio==5.5.0
python -m pip install rasa-sdk==3.0.0
python -m pip install Sanic-Cors==1.0.0
python -m pip install sanic-jwt==1.7.0
python -m pip install sanic-plugin-toolkit==1.2.0
python -m pip install socketIO-client==0.7.2
python -m pip install --no-deps Sanic-Plugins-Framework==0.9.5
python -m pip install --no-deps sanic-routing==0.7.0
python -m pip install --no-deps sanic==21.6.0

so i forked this restful chatbot interface so i don't need to use socket.io https://github.com/ltfschoen/Chatbot-Widget and that worked

@ltfschoen I have several bots working with the botfront widget and 3.x here. They're all on various 3.x releases.

@ltfschoen I have several bots working with the botfront widget and 3.x here. They're all on various 3.x releases.

i figured out what i was doing wrong.
like you say https://github.com/botfront/rasa-webchat does work fine with Rasa 3.x.
first thing i hadn't done was in credentials.yml i had session_persistence: true/false instead of just session_persistence: true, but that wasn't the issue.
i updated the index.html file so it had socketUrl: "http://<MY_EC2_PUBLIC_IP>:5005"
when i ran the web server i still got error GET http://<MY_EC2_PUBLIC_IP>:5005/socket.io/?EIO=3&transport=polling&t=OIt2MeS 400 (Bad Request)
but when i create EC2 Security > Inbound rule to allow port forwarding on 5000 and 5005 on TCP <IP_ADDRESS>/0 it still didn't work, but then i noticed in the terminal window of the Rasa server where i'd run python -m rasa run --enable-api --cors "*", it had an error shown: Rasa server is up and running. The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO).
so given that i knew that EIO was an abbreviation for the EngineIO version since i recently answered this stackoverflow question https://stackoverflow.com/questions/74265891/what-is-eio-3transport-pollingt-in-socket-io/74508268#74508268, i quicky checked that the Rasa server was running
python -m pip show python-engineio  -> 4.3.1
python -m pip show python-socketio  -> 5.5.0

but the error was telling me that the client was using an unsupported version, which was EngineIO v3, since the query string parameters from the client were EIO=3,  so i needed it to show EIO=4 instead...
in index.html i was using <script<EMAIL_ADDRESS>type="text/javascript"></script>, but when i changed @1.5.0 to @1.0.0 or removed the version number so it became <script src="https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.min.js" type="text/javascript"></script> it gave me an error  saying WebChat.default.init is undefined, so i simply changed that code to WebChat.default instead of WebChat.default.init, since the latest version doesn't use .init. See https://github.com/botfront/rasa-webchat/blob/master/dev/src/index.html#L8, and when i did that and restarted the Flask server and refreshed the webpage at http://<MY_EC2_PUBLIC_IP>:5000 it finally worked

I see something similar with Rasa 3.4.0 from the official docker image (rasa/rasa:3.4.0-full) and recent versions of FF and Chrome using the web widget Rasa recommends in the docs, but it appears to only happen on refresh. Start a chat, works fine, hit refresh, get this error server side:
rasa-rasa-1  | Exception occurred while handling uri: 'ws://<IP_ADDRESS>:5005/socket.io/?EIO=4&transport=websocket&sid=GCuxT_yUCL6z0xZYAAAG'
rasa-rasa-1  | Traceback (most recent call last):
rasa-rasa-1  |   File "handle_request", line 124, in handle_request
rasa-rasa-1  | sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)

Note that I do not get the The client is using an unsupported version of the Socket.IO or Engine.IO protocols message some other people saw for similar errors in forum threads I researched.
My credentials.yml settings for socketio are as follows:
socketio:
  user_message_evt: user_uttered
  bot_message_evt: bot_uttered
  session_persistence: true

Again, the initial chat works fine, this happens when refreshing the page. Perhaps it's a new/different bug?
I've seen some people recommend Botfront but that project appears to be dead.

I see something similar with Rasa 3.4.0 from the official docker image (rasa/rasa:3.4.0-full) and recent versions of FF and Chrome using the web widget Rasa recommends in the docs, but it appears to only happen on refresh. Start a chat, works fine, hit refresh, get this error server side:
rasa-rasa-1  | Exception occurred while handling uri: 'ws://<IP_ADDRESS>:5005/socket.io/?EIO=4&transport=websocket&sid=GCuxT_yUCL6z0xZYAAAG'
rasa-rasa-1  | Traceback (most recent call last):
rasa-rasa-1  |   File "handle_request", line 124, in handle_request
rasa-rasa-1  | sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)

Note that I do not get the The client is using an unsupported version of the Socket.IO or Engine.IO protocols message some other people saw for similar errors in forum threads I researched.
My credentials.yml settings for socketio are as follows:
socketio:
  user_message_evt: user_uttered
  bot_message_evt: bot_uttered
  session_persistence: true

Again, the initial chat works fine, this happens when refreshing the page. Perhaps it's a new/different bug?
I've seen some people recommend Botfront but that project appears to be dead.

Hey, did you find a solution for this ??


Extension Host Terminated

VSCode Version: Code - Insiders 1.16.0-insider<PHONE_NUMBER>787fa87c7c57ba19195b939050a843, 2017-08-21T07:17:17.874Z)
OS Version: Windows_NT x64 10.0.15063
Extensions:

Extension
Author (truncated)
Version

ng-template
Ang
0.1.4

path-intellisense
chr
1.4.2

vscode-svgviewer
css
1.4.2

githistory
don
0.2.3

ts-tslint
eg2
0.0.4

tslint
eg2
0.17.0

vscode-great-icons
emm
2.1.14

vsc-ember-cli
fel
0.3.3

auto-close-tag
for
0.4.3

auto-rename-tag
for
0.0.14

output-colorizer
IBM
0.1.2

Angular2
joh
2.4.2

vscode-codemetrics
kis
1.9.0

markdown-shortcuts
mdi
0.8.1

code-beautifier
mic
1.7.2

prettify-json
moh
0.0.3

csharp
ms-
1.12.1

typescript-javascript-grammar
ms-
0.0.23

debugger-for-chrome
msj
3.1.8

view-in-browser
qin
0.0.5

typescript-hero
rbb
1.4.0

vscode-icons
rob
7.12.0

sass-indented
rob
1.4.1

autoimport
ste
1.2.2

JasmineSnippets
xab
1.0.0

(1 theme extensions excluded)

Steps to Reproduce:

Launched VC Code, received message. Console contains:

/C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly. Code:<PHONE_NUMBER>  Signal:  null
e._onExtensionHostCrashed @ /C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:28
/C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow @ /C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:28

Does it reproduce with code --disable-extensions?

That's the same error code as in https://github.com/Microsoft/vscode/issues/32530
Maybe a duplicate? This has been resolved for me in today's insider.

Thanks @jens1o


Error in SimonSaysArea tests

Wrong description for one of the tests for the remove method.

ed84d16 fixed the issue. Thanks!


Add - Without Auth

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is ordered alphabetically
[x] My submission has a useful description
[x] The description does not have more than 100 characters
[x] The description does not end with punctuation
[x] Each table column is padded with one space on either side
[x] I have searched the repository for any relevant issues or pull requests
[x] Any category I am creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

Hi @swoorr
Thanks for your contribution ;)
We have some problems with Public APIs, so we won't be able to review/add this improvement right now.
Read this issue for more information, please: https://github.com/public-apis/public-apis/issues/3104


Git pre-commit hook is set by each developer locally. It is hard to force all developer set same pre-commit hooks, but there are some basic things should be check before commit, such as python style, file should use \n as line end,  etc.
This PR is added to solve this problem, by using a python package pre-commit. Each developer should do two things to enable this feature.

Install pre-commit package. pip install pre-commit
Enable pre-commit package to manage Paddle git pre-commit in local directory, by run pre-commit install in Paddle checkout directory.

Currently, some hooks are added, and all files are scan & fixed by this PR.
By the way, there is another thing I found about yapf, the python formatter used by Paddle. Different version of yapf could generate different result, with the same input python file. So, we must use the same yapf when developing Paddle. pre-commit also can help us to archive that.
pre-commit is used only by Paddle developer, we should add some other tools (or just use pre-commit package, I'm not sure) to complete the CI tests about these checks.

Coverage increased (+0.004%) to 62.934% when pulling 836d61382fc8bc7148a3b3120cb3beeae4487567 on reyoung:feature/pre-commit-hooks-scripts into b87427b682fd316d638def2e48ca7073007a49f3 on baidu:develop.

Coverage decreased (-0.01%) to 62.92% when pulling 07af31fd322ae7f55617de52a346688409a087ab on reyoung:feature/pre-commit-hooks-scripts into b87427b682fd316d638def2e48ca7073007a49f3 on baidu:develop.

semantic_role_labeling.md, hierarchical-layer.md, hierarchical-rnn.md，请问这三个md格式化前后有什么变化么？看上去是完全一样的。

分行符，应该用\n而不是\r\n
发自 Smartisan T2
Tao Luo<EMAIL_ADDRESS>于 2016年11月14日，上午11:15写道：
semantic_role_labeling.md, hierarchical-layer.md, hierarchical-rnn.md，请问这三个md格式化前后有什么变化么？看上去是完全一样的。
―
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/baidu/Paddle/pull/450#issuecomment-260239612, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAseezgGM30vQOHf2kNrvUEaYr95SShhks5q99JGgaJpZM4KweDx.

pre-commit是检测python格式的，现在还检查md么？

pre-commit是检测python格式的，现在还检查md么？

检查所有文件

如果要开发Paddle，需要pip install pre-commit安装pre-commit？
LGTM


Other SIMD types

Do you have interest in supporting other SIMD types?  I'm particularly interested in AVX, for modern x86 processors, and NEON, for ARM processors.
I would be willing to implement this, if it's something you want.  It would be useful to me, and the amount of code for each one looks small.
Another possibility is to create an implementation using the portable vector extension in clang and gcc (not VisualStudio though).  You can write a single implementation that automatically works on all architectures and uses whatever vector instructions are available.

I wrote an implementation with clang/gcc portable vectors.  It gives a nice speedup on my ARM Mac.
After benchmarking on a couple of computers, I concluded that the only routine that should be explicitly vectorized is vecdot().  All the others are simple enough that the compiler can vectorize them automatically.  The handwritten routines never help performance, and sometimes hurt.  On modern x86 processors, the compiler can generate AVX code that is faster than the handwritten SSE code.
Try compiling with -DUSE_SSE -mavx and measure the speed.  Now replace all the SSE routines except the dot product ones with the ANSI versions.  It gets slightly faster.
I can create a PR with these changes, if you want.


Compile error in test cases when using OpenCL 1.1

When compiling boost::compute in windows with MSVC 2010 & NVIDIA GTX 580, test/test_buffer.cpp and test/test_command_queue.cpp causes compile error. This seems to be related to OpenCL 1.1 header file. (Since I didn’t see any problem when compiling this in OpenCL 1.2 environment)
Solution was removing BOOST_COMPUTE_CL_CALLBACK in test/test_buffer.cpp:129 and adding BOOST_COMPUTE_CL_CALLBACK to test/test_command_queue.cpp:203
Also, test_buffer fails with NVIDIA GTX 580, but adding queue.finish() to line 142 seems to solve it. It seems like that this is also a bug in NVIDIA OpenCL because it was fine when I executed it with CPU. There is also a bug in test_vector.cpp but I cannot find workarounds.

Can you post the compiler errors you're getting? For the other changes, could you submit a pull-request with the patches so I can test them out? Thanks!

I think bug in test_buffer.cpp was fixed by https://github.com/boostorg/compute/pull/693/files#diff-3b128b5d561d95e3e1bf88e7e55944bb.


Don't send all credstore entries to daemon on docker build

In Docker For Mac/Win in 17.03.0-ce we make default the usage of docker-credential-helper.
A user reported that we scan each and every entry in the all user keychains, as per https://github.com/docker/for-mac/issues/1371.
This behaviour is observable, only on docker build and not docker pull.
This leads us to believe that https://github.com/docker/docker/blob/master/cli/command/image/build.go#L280 is probably partly  faulty. Along with https://github.com/docker/docker-credential-helpers/blob/master/osxkeychain/osxkeychain_darwin.c#L118 which seems to open all keychains.
All entries in the keychains are sent to the daemon. Which in turn triggered the behaviour described by the user.
They should probably be filtered by the one used by docker login.
Output of docker version:
> docker version
Client:
 Version:      17.03.0-ce
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   60ccb22
 Built:        Thu Feb 23 10:40:59 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.03.0-ce
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   3a232c8
 Built:        Tue Feb 28 07:52:04 2017
 OS/Arch:      linux/amd64
 Experimental: true

Output of docker info:
> docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 17.03.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.12-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 5.572 GiB
Name: moby
ID: T4H4:FHZA:GOQW:7GND:BENW:HYGI:JHRC:H3XI:OQQP:YW22:6YNH:O2DX
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 16
 Goroutines: 26
 System Time: 2017-03-03T13:24:29.210944844Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

cc @vdemeester

They should probably be filtered by the one used by docker login.

i.e. those that are in the config.json in the following form.
{
        "auths": {
                "https://index.docker.io/v1/": {},
                "localhost:5000": {},
                "quay.io": {}
        }
}

cc @docker/security-team

We could tag keychain entries with what's in config.json:auth when creating them with:

"docker auths" for example in  kSecAttrDescription

serialized associated data in kSecAttrLabel

That way, entry retrieval wouldn't go through all keychains entries.

@n4ss : that's ok for osxkeychain but what about wincred and secretservice?
And if we use auths urls, we don't even need to list the credStore keys.
If the goal is to remove those urls from config.json that is another thing...

I'm now seeing behaviour where credentials aren't being used on docker build, but are on docker pull:
$ make start
build     │ Sending build context to Docker daemon 503.8 kB
build     │ Step 1/10 : FROM my_private_ecr/image_name:tag_name
build     │ Pulling repository my_private_ecr/image:name
build     │ unauthorized: authentication required
ERROR: build error: exit status 1

$ docker pull my_private_ecr/image_name:tag_name
tag_name: Pulling from image_name
b7f33cc0b48e: Already exists

make start is a wrapper script that does some unrelated things, eventually getting down to a docker build.
I'm on the latest Docker for Mac (15654).
docker --version
Docker version 17.03.0-ce, build 60ccb22

that's ok for osxkeychain but what about wincred and secretservice?

For Windows,  a PR can be submitted towinsec to add attributes to credentials when storing and also to lookup by attribute. Windows handles that: Credentials and their Attributes
For Linux,it seems  we already use libsecret secrets' attributes. We can use that to filter the lookup if needed.

@n4ss I think that could/should work 👍

I can write the patch by the way.

I'm following-up here for the changes to be made on docker-credentials-helper: :https://github.com/docker/docker-credential-helpers/issues/46

@jeanlaurent I'm the person that made the credential stores/helpers themselves the source of truth (as opposed to the docker config) when it comes to enumerating stored credentials ( #26354 ). Delivering the entire universe of credentials to the daemon during docker builds was existing behavior which was potentially broken by credential helpers. The 'correct' fix in this case would probably be to limit the credentials passed to the daemon.

@KingEmet my ongoing patch is currently done in the helpers but I agree with you. The best way long-term should probably be to filter on daemon creds requests and helpers should themselves namspace/tag the docker creds entries as such.

Moved to P0 after discussion with @n4ss.

cc @icecrime ^^

After discussions, we found we couldn't fix this issue elegantly / easily without introducing changes in the communication between credential helpers and docker client.
One interesting way to solve that permanently (and much more elegantly), is to leverage @tonistiigi work on streamed context (https://github.com/docker/docker/issues/31829) once it is done, to expose grpc methods allowing to request credentials on demand from the builder to the client in addition to the filesystem context.

Removed the P0 as this is fixed for desktop version — the docker-credential-x binaries now use labels to just get/ask for the docker credentials and not all of them 👼

@dlanger I found today that current docker stable and edge have issues with logging out of an internal registry on mac (I assume it's one that was logged into with a previous docker version).  This resulted in all docker build commands failing to pull base images for me if the base image didn't already exist locally. #33252 discusses this issue specifically.
When you docker logout internal_registry, you can open keychain access and under login/passwords you may still see "Docker Credentials". Delete that password, log back into your internal registry, and it may resolve your issue.

The same behaviour described above also effects other platforms. I am running on AWS (RHEL 7.3) with docker version 17.05.
The private registry in this case is ECR and is confgiured thus in .docker/config.json -
{
    "credsStore": "ecr-login"
}

docker push and pull work successfully. You can use docker login beforehand per the AWS docs here -
https://aws.amazon.com/blogs/compute/authenticating-amazon-ecr-repositories-for-docker-cli-with-credential-helper/
$ aws ecr get-login
docker login –u AWS –p password –e none https://aws_account_id.dkr.ecr.us-east-1.amazonaws.com

... or (as we do and the same doc goes on to suggest) engage the ECR Credentials Helper which does it for you.
The behaviours are ... (lets say I have a copy on the alpine:3.5 image in a private repo)
docker pull<PHONE_NUMBER>12.dkr.ecr.eu-west-1.amazonaws.com/alpine:3.5  (works)
docker push<PHONE_NUMBER>12.dkr.ecr.eu-west-1.amazonaws.com/alpine:3.5  (works)
But build FAILS
Sending build context to Docker daemon  4.096kB
Step 1/5 : FROM<PHONE_NUMBER>12.dkr.ecr.eu-west-1.amazonaws.com/alpine:3.5
Pulling repository<PHONE_NUMBER>06.dkr.ecr.eu-west-1.amazonaws.com/alpine
unauthorized: authentication required

If the image is local, build works successfully.
This is a major issue for us !

@goffinf did you open an issue in https://github.com/awslabs/amazon-ecr-credential-helper too?
can you make a docker-credential-ecr-login list and check that the protocol for<PHONE_NUMBER>12.dkr.ecr.eu-west-1.amazonaws.com is https?

We're hitting this problem, too, using the ECR creds helper.  I've done a bunch of digging around, and this is not a bug in that, except insofar as the cred helper protocol is insufficient for the task.
What I think docker build should do is to use the list of registries in credHelpers to get the list of credentials to send, rather than asking each cred helper what they think is a list of valid registries.  But, given the never-ending PRs that may, one day, result in us not having to pre-populate every registry ever, I doubt such a PR would be accepted (the more intelligent one, to parse the Dockerfile to find registries to send creds for, got closed in favour of another PR to do cred negotiation -- which also got closed), so I'm not going to take the time to put a PR together unless there's a clear indication from Docker core that it had a hope of being merged.
We're going to start doing an explicit pull before every build, which neatly avoids this problem, and has the added benefit of making sure we're always building against the latest version of a tag, rather than a potentially out-of-date version of the same tag (non-immutable tags ftl).


Cannot find module

VSCode seems no to be finding the types required for the package, pnpm add @types/nextjs-routes package doesn't exist as well

The types ship with the package. @types/nextjs-routes does not exist.
It looks like you’re trying to import the cjs module into mjs, which isn’t valid. Could you let me know if the issue persists if you import nextjs-routes/config or nextjs-routes/config.mjs?

the error is still present, I changed my next config to .config.js and used nextjs-routes/config but throws the error of no declarations found

Thanks for reporting @AlvaroAquijeDiaz. This has been fixed in v1.0.8.