Homekit problems with unresponsive device state updates

Home Assistant release with the issue:

0.83.x
Last working Home Assistant release (if known):
0.81.6
Operating environment (Hass.io/Docker/Windows/etc.):

Hassio
Component/platform:

https://www.home-assistant.io/components/homekit/
Description of problem:
After updating from version 81.6 to 83, when HA is running for a couple of hours (sometime minutes), all state changes from the HA UI or other device using the Home App, does not update the device change in real time to other iOS devices. For example: I have an iPad Mini fixed on the wall, If I turn of a light on my computer, this entity state does not mirror the change on the iPad Home app. I have to close the app, reconnect to the server then the state will change.
Related issue: https://github.com/home-assistant/home-assistant/issues/15675
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
homekit:
  auto_start: False
  filter:
    exclude_domains:
      - automation
      - input_boolean
      - remote
      - script
      - binary_sensor
      - device_tracker
      - fan
      - media_player
      - sensor
      - alarm_control_panel
      - climate
      - cover
      - light
      - lock
      - switch
    include_entities:
      - input_boolean.boa_noite
      - input_boolean.bom_dia
      - input_boolean.chegar_casa
      - input_boolean.visita_casa
      - input_boolean.entrar_muvrh
      - input_boolean.sair_muvrh
      - input_boolean.muvrh_desligar_tudo
      - input_boolean.cafe_manha
      - input_boolean.chaleira_manha
      - device_tracker.antonio
      - device_tracker.roberta
      - binary_sensor.casa_movimento
      - binary_sensor.muvrh_movimento
      - binary_sensor.door_window_sensor_158d0001b8671f
      - binary_sensor.door_window_sensor_158d0001bf2a09
      - binary_sensor.entrada_casa
      - binary_sensor.box_banheiro_suite

Traceback (if applicable):
NONE

Additional information:
I believe this problem is related to the HAP-python code that was updated to version 2.4.1 on v83, issue addressed here: https://github.com/ikalchev/HAP-python/issues/176
No errors are show on log, very strange, it is like the connection from the server gets dropped.

Quick update: just tried to load HomeKit component as a custom_component from version 0.81.6 (copied all files to the custom component folder) and problem was still present. Thanks.

I’m experiencing an issue with HomeKit automations triggered by HA sensors, I wonder if it’s the same or a similar issue.

Hello @nikolaykasyanov , yes I believe it is related since no state change updates are pushed to the iOS device. I have to manually close and open the app so it reconnects to the server and request for all devices states, then it shows the correct state.

Another update: just changed my config settings to a new port and added ip_address, let's see if it helps:
auto_start: False
port: 5200
ip_address: <IP_ADDRESS>
filter:
  exclude_domains:
    - automation
    - input_boolean
    - remote
    - script
    - binary_sensor
    - device_tracker
    - fan
    - media_player
    - sensor
    - alarm_control_panel
    - climate
    - cover
    - light
    - lock
    - switch
  include_entities:
    - input_boolean.boa_noite
    - input_boolean.bom_dia
    - input_boolean.chegar_casa
    - input_boolean.visita_casa
    - input_boolean.entrar_muvrh
    - input_boolean.sair_muvrh
    - input_boolean.muvrh_desligar_tudo
    - input_boolean.cafe_manha
    - input_boolean.chaleira_manha
    - device_tracker.antonio
    - device_tracker.roberta

@tatunts interesting, rolling back to 0.82.0 fixed my issue.

Sorry, closed by mistake.

@tatunts interesting, rolling back to 0.82.0 fixed my issue.

Mine was working great on version 81.6 but really don't want to go back since there are breaking changes I made, new Asus WRT component and fast loading lovelace UI, comparing to previous version.

Not sure if this is related, I get those errors on log:
18-12-05 10:00:22 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eof
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:841)
2018-12-05 10:00:22 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error errno:1 reason: HTTP_REQUEST
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
  File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:841)
2018-12-05 10:00:29 ERROR (MainThread) [homeassistant.helpers.service] Template rendered invalid service:
2018-12-05 11:00:58 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eof
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:841)
2018-12-05 11:00:58 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error errno:1 reason: WRONG_VERSION_NUMBER
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
  File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:841)
2018-12-05 11:00:59 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eof
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:841)
2018-12-05 11:00:59 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error errno:1 reason: WRONG_VERSION_NUMBER
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
  File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:841)
2018-12-05 11:10:49 ERROR (MainThread) [homeassistant.helpers.service] Template rendered invalid service:
2018-12-05 11:58:23 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eof
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:841)
2018-12-05 11:58:23 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error errno:1 reason: HTTP_REQUEST
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
  File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:841)

And yes, the problem started just after those errors:
2018-12-05 15:45:33 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eof
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:841)
2018-12-05 15:45:33 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error errno:1 reason: WRONG_VERSION_NUMBER
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
  File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:841)
2018-12-05 15:46:01 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eof
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:841)
2018-12-05 15:46:01 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error errno:1 reason: NO_SHARED_CIPHER
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
  File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:841)

Maybe the problem is not HAP-python @cdce8p , do you agree?
Many Thanks!

I think I have the same problem: no HomeKit push notifications but when I open the Home app it all shows correct there. Issue is solved when I restart HA but returns some hours later.
I also have these handshake errors in my log but not sure if it is related.

I think I have the same problem: no HomeKit push notifications but when I open the Home app it all shows correct there. Issue is solved when I restart HA but returns some hours later.
I also have these handshake errors in my log but not sure if it is related.

Yes, I believe that is the same problem. No data is pushed to the iOS device so it cannot send you notifications in real time. If you open the app again, it will connect to HA instance and update states.

For info, I still have the issue but no longer the SSL errors. Those I think I fixed by tinkering a bit with httpd zs shown below (adding trusted_proxies etc.). So don't assume it's related.
http:
  ...
  use_x_forwarded_for: true
  cors_allowed_origins:
    - https://google.com
    - https://www.home-assistant.io
  trusted_proxies:
    - <IP_ADDRESS>
  trusted_networks:
    - <IP_ADDRESS>
    - <IP_ADDRESS>/24
'''

@tatunts I haven't seen the issue before. I don't think that these are related to HAP-python, because it still uses sync networking and not uvloop for it (although not being fully async might be the root of the problems).
As for the notification issue, I was wondering if part of the issue is some kind of energy saving measure  from iOS to limit communications with accessories.
Do you guys have either:

An HomePod?
An Apple TV?
Or an iPad set as HomeHub?

Thanks for your reply @cdce8p.

Do you guys have either:

An HomePod?
An Apple TV?
Or an iPad set as HomeHub?

I do have an iPad mounted on the wall set as HomeHub.

Apple TV as a hub here. As the issue is temporarily solved after restarting HA, I would expect for the issue to remain if it would be on iOS side though. Yesterday I restarted HA in the morning and a few hours later notifications were still working. Few hours later when I got home it was broken.

Hello @WhiteDogBe.
I believe most of the times that this problem happens is when I go out and return home, just like you said. Sometimes it works for ours when I am home and sometimes it does not, very strange.
Maybe the problem is related after all to the HAP-python code. The creator of the code used here is already trying to debug this problem: https://github.com/ikalchev/HAP-python/issues/176
What incredible people here... I really appreciate all effort and time spend here to help us mortals.
Thanks a lot!

Thanks for the feedback.
@WhiteDogBe I agree. It's probably HAP-python related.

I too use an Apple TV 4K as a hub . The no response occurs regardless of whether I am on WiFi connection or away from house on cell connection. No response has been occurring since version .74 or so.
Please also note that the current version does fix the close wait problem for me and keeps me from having to reboot due to excess close wait tcp links.
Regards

Hi,
@cdce8p , I am experiencing the same issue where notifications are not coming through via the Home App of iOS HomeKit. If I close the app and open it again, it refreshes to the correct states.
If I restart Home Assistant, the issue fixes itself for a brief period of time, and then it's back to square one. :(
Currently using an Apple TV 4 as a hub.
@tatunts , thanks for raising this issue. I first thought it was my setup, and tried almost everything to try and resolve this to no avail.

I've checked the logs, and noticed that when the devices stop pushing state updates to the Home App, the following:
DEBUG (Thread-13) [pyhap.hap_server] Connection timeout

Hello @wasp100! Please try this fix here: https://github.com/ikalchev/HAP-python/issues/176
It worked for me, everything works beautifully for almost a day now.

@wasp100 , what is your home assistant configuration? hassbian, hassos/hassio, or installed on what OS ?

@jr3us , I'm on 0.83.3 Hassbian on Raspberry Pi Zero W
Config is simple...
homekit:
I'm not experiencing the "No Response" but rather no state updates. If I leave the Home App open and change a switch in Home Assistant, normally, the home app would update immediately. Unfortunately, it doesn't refresh the state... If I reboot, it works for a while, then dies again :(

HI @tatunts, are you referring to this:?
For Hassbian it should be in /srv/homeassistant/lib/python3.x/site-packages/pyhap.
In the pyhap folder, you need to replace the hap_server.py file with this one: hap_server.py. Remember to restart Home Assistant afterwards.
I navigated to the folder location and there was no hap_server.py to replace. Anyways, downloaded the "new" hap_server.py file and trying it out.

@tatunts why would I not have the hap_server.py in my config? That's strange...

@jr3us , yes changed to python3.5. Installed hap_server.py. Running as we speak.
I’ve been getting all my notifications via homekit successfully so far.
Will give progress update later.
The question is why didn’t I have the file in my directly, or is it something new?

@jr3us , no more notifications!
Just checked again... I was in /site-packages and not /site-packages/pyhap... (and that's why there was no file to replace) lol
Found hap_server and replaced it, and restarted...
Starting the test again... will provide an update. Fingers crossed.

@wasp100 : is it still running good?  Also, what kernel version are you using? have you done rpi-update to your hassbian to upgrade the kernel?

@jr3us : Still seems to be running well... Been running with new hap_server for around 4 hours now.
My current version on Pi Zero W is :
Linux hassbian 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l GNU/Linux
Is this the latest? I normally run apt-get update and apt-get upgrade.
What does rpi-update do? Is it the same?

@jr3us : Ps. I also have all the devices (hub and iPhone) set to static IPs. Don't know whether that helps as well.

@jr3us To be honest, I don't have any clue. This seems to one of the most difficult bugs I've encountered so far, just because it's so difficult to debug.

I'm going to try a different pi with the same sd card, and if that doesn't help, then I will try rebuilding what i have from a fresh hassbian image.
I'll report back tomorrow.
Thanks for the assistance you have been providing!

@jr3us : I've updated the kernel/firmware using rpi-update about an hour ago to test whether this would affect my setup. The good news is that the "fix" is still working well... all notifications coming through.
I suggest you test with a fresh hassbian image.
@cdce8p : Thanks for your help once again!
@tatunts : Replacing the file is working well so far (even with updating the firmware)! Thanks!

I have the same issue. After a few mins I dont get the notifications just when I open the Home app. I'm using HA on windows. I have replaced the hap_server.py but it does not help.

Same issue over several updates now. Was hoping it was a bug somewhere that would work itself out.
Have 2 apple TV 4K acting as hubs. Both static ip.
Raspberry pi on static up running hassio.
All on latest versions.
If I reset my home assistant server it will push updates for a little while and then stop.
All states update if I manually open the app and it pushes to check states but nothing is ever pushed to it so update states so automations set up in home  related to home assistant don’t work
If I knew how to better troubleshoot or what to look for I’d love to help out.
I’ve tried wiping and restoring to current version.
I’ll try to wipe and restore to an older version to see if that fixes it.
I think I noticed issues starting to arise a little while after there was a retraction of some update that happened.

Hi all, same issue here.
Is anyone using a late version of HA without this issue?

I have to restore back to 0.82.1 inorder to get state updates. The 0.84.3 also got problems

Doing the same here , installed SSH add on and downgraded to 0.82..1 using

hassio homeassistant update --options "version=0.82.1"

Hello @leonlmf and @monxhy, have you guys tried to change the hap_server.py file? This has fixed all status updates problems for me. https://github.com/ikalchev/HAP-python/issues/176#issuecomment-445209696

Thanks @tatunts.  I’ve seen others trying that file and noticed only those on rPis using Hassio or raspbian seemed to work.  For example, someone above using windows said it didn’t work and I vaguely remember the file fixing something specific to rPis?  Could be totally wrong..  I’m using HA on docker on my NAS - do you think making this change work on docker?
I guess I should just try and see.   Not keen on downgrading either for same reasons as someone above - breaking changes..

@tatunts Hi I cant find this hap_server.py. I am using hassio.

I have the same problem, would love to try the new version but am using HASSOS and HASSIO, can't find the file in any of the paths that were mentioned. Assuming they are inside a Docker and not easily accessible?

... and I can confirm that the new file worked for me.  Been about 12 hours now and still updating.
@tatunts - Thanks! You were right.
and of course, thanks awesome HA community!

I recognized the same problem since some versions ago... but I will wait for the final productive solution in a future HA version 😊
BTW I am using a Homepod as hub with 2 iPads, one mounted on the wall.

I did replace the hap_server.py per instructions posted above, but my contact sensor updates (Deconz/Aqara) are still not working properly on Home App. Motion sensors (Deconz/Aqara) does update normally, and everything works as expected in Hassio.
Contact sensors are the only device I noticed issues so far. All present the same unresponsive behaviour across my house.

Nothing to do for me... also rollback to 0.82.1 doesn’t solve the issue :(
The other big problem is the automation used to star HomeKit after Zwave takes too long.
The only modification to the system (Hassbian) was adding a VLAN where there are all IoT sensors (like Xiaomi). But I’ve also tried to remove the VLAN an no success.
Any hints? Homebridge on the same Pi works without problems

Running Hassio on RPi3 and accessing via macOS
Anyone able to explain to me why I cannot see pyhap in site-packages?
Tried to navigate to it using configurator. Can’t get there using samba via Mac finder.
I even tried to ssh into it and run a find / -iname pyhap (also tried hap_server.py) with no result. Cant say that it’s the right command by any means as I’m not really a terminal whiz.
Any application that can get more access to it or do I have to ssh into it via the developer side with the 22222 port unlike the ssh addon that uses 22.

You need to paste the configuration, save it and then start the add-on. You should see it on samba share.

Thanks @tatunts for linking to the fix - I was having this issue after moving from homebridge to native HA HomeKit support (& updating from 0.5x). Replacing hap_server.py worked. Running 0.84.6

Hello devs! This problem was solved with the release of version 2.4.2. https://github.com/ikalchev/HAP-python/releases/tag/v2.4.2
Hope this gets included on release 85 :)
Thanks!

https://github.com/home-assistant/home-assistant/pull/19776


Have to manually rename [projectname].ninja to build.ninja

A bug exists where when [projectname].ninja is generated, it is not renamed to build.ninja and ninja fails. Can be circumvented by renaming [projectname].ninja manually.

Can you reproduce this reliably and provide the steps to do so?

I think I had multiple concurrent builds on dragon installed and all intercommunicating. In troubleshooting something else, I did a fresh install and issue was fixed.


report error context

https://docs.honeybadger.io/lib/ruby/getting-started/adding-context-to-errors/

First step you be try to include what's coming in  Tower.Event.metadata in the honeybadger report.

It seems that the only field in the sent JSON that resembles metadata would be notice.request.context :thinking: ?


Tests pass for the wrong reason. 2) Fix intermittent failure in lo…

…c tests.

This is going to leave a couple tests busted (pipe between tool runner). I'm not sure whether it's a real issue or a test issue.
Tests were passing before because done() was always getting called and done(err) should be called for failure cases.


Fix Eslint 9 incompatible eslint-plugin-import

Either wait for eslint-plugin-import  or consider switching to eslint-plugin-import-x if that gets compatibility sooner? https://github.com/un-ts/eslint-plugin-import-x/issues/121

Merged into #51


Support table rows with additional columns than header

Given the following table
|   1  |   2  |
|------|------|
| test | asdf | 1234 |

pulldown-cmark gives the following events (notice there is no event for the 1234 cell):
1..56 Start(Table([None, None]))
1..17 Start(TableHead)
5..6 Start(TableCell)
5..6 Text(Borrowed("1"))
5..6 End(TableCell)
12..13 Start(TableCell)
12..13 Text(Borrowed("2"))
12..13 End(TableCell)
1..17 End(TableHead)
33..56 Start(TableRow)
35..39 Start(TableCell)
35..39 Text(Borrowed("test"))
35..39 End(TableCell)
42..46 Start(TableCell)
42..46 Text(Borrowed("asdf"))
42..46 End(TableCell)
33..56 End(TableRow)
1..56 End(Table([None, None]))

Would it be possible to get an event for the final table cell in the last row even though the table is defined as only having two columns?
By the way, in case you didn't see, this library is now being used in Deno for markdown code formatting with deno fmt 🙂

We're mostly trying to follow GitHub's table markdown standard (GFM) here, and it seems that the third cell in your example is dropped here too:

1
2

test
asdf

I am not sure that we can accommodate this use case while staying aligned with GFM without adding additional complexity like an additional option. Without actually looking at the code, I am fairly certain all the cells are actually parsed, so if there is a way to expose these cells in a way that is compatible with GFM, the implementation should be trivial.
Happy to hear that we can be useful to Deno in some way. Awesome project!

@marcusklaas thanks for explaining and that makes a lot of sense! I see it dropping the excess cells here: https://github.com/raphlinus/pulldown-cmark/blob/d99667b3a8843744494366799025dcea614ff866/src/firstpass.rs#L284
I think I will attempt to parse this out manually as I've been doing in some other areas.


Alternatives?

I really need something to send emails with Flask and I really don't want to program it from scratch.
This package doesn't seem to be maintained. Are there any other options?

Yes, copy the email implementation from Django; its dependencies on other Django stuff are basically non-existent, and as far as I know it's the best mail sending implementation that's available for python (and it handles all the nasty corner cases like when non-ascii stuff is involved).
Actually, I did exactly this for the project I'm working on about two years ago. Feel free to copy from there (but I'd check if Django fixed anything since then); it'll be even less effort than copying it from Django yourself since the external dependencies in my version are even smaller.

Cool, thank you!

@OneAdder You can check out the inbuilt email package in the standard library.

Yes, copy the email implementation from Django

This is what https://github.com/waynerv/flask-mailman do.

You can do this right within the standard library:
import smtplib
import ssl
from email.mime.text import MIMEText

sender =<EMAIL_ADDRESS>the_email_password = 'P@s5w0|^\D'
destination =<EMAIL_ADDRESS>
def email_user(sender, the_email_password, destination):
    mail_body = 'lorem ipsum'
    email_sender = sender
    email_cipher = 'ECDHE-RSA-AES256-GCM-SHA384'
    email_server = 'smtp_server'
    email_port = 465
    # https://support.office.com/en-us/article/Outlook-com-no-longer-supports-AUTH-PLAIN-authentication-07f7d5e9-1697-465f-84d2-4513d4ff0145
    # https://en.wikipedia.org/wiki/SMTP_Authentication#Details
    email_auth = 'LOGIN'
    email_password = the_email_password
    email_destination = destination
    subject = 'subject'
    msg = MIMEText(mail_body, 'plain')
    msg['Subject'] = subject
    msg['From'] = email_sender
    ssl_context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH)
    ssl_context.verify_mode = ssl.CERT_REQUIRED
    ssl_context.check_hostname = True
    ssl_context.set_ciphers(email_cipher)
    ssl_context.options |= ssl.HAS_SNI
    ssl_context.options |= ssl.OP_NO_COMPRESSION
    # No need to explicitally disable SSLv* as it's already been done
    # https://docs.python.org/3/library/ssl.html#id7
    # The below options are done so as to force TLS1.2
    ssl_context.options |= ssl.OP_NO_TLSv1
    ssl_context.options |= ssl.OP_NO_TLSv1_1
    ssl_context.options |= ssl.OP_SINGLE_DH_USE
    ssl_context.options |= ssl.OP_SINGLE_ECDH_USE
    conn = smtplib.SMTP_SSL(email_server, port=email_port,
                            context=ssl_context)
    conn.esmtp_features['auth'] = email_auth
    conn.login(email_sender, email_password)
    try:
        conn.sendmail(email_sender, email_destination, msg.as_string())
    finally:
        conn.quit()

@Lvl4Sword except that this won't handle all the ugly edge cases there are when it comes to emails.

I don't believe it does either, as it was something I provided as a simple example which should work for most basic usecases.

A group of us have been working to reactivate this project, which has now moved to the pallets-eco organization. Closing this, not making any statements about the merits of continuing to use flask-mail vs. switching to an alternative (people should use what makes them happy)

Flask-Mail is now part of the Pallets Community Ecosystem. Pallets is the open source organization that maintains Flask; Pallets-Eco enables community maintenance of Flask extensions. If you are interested in helping maintain this project, please reach out on the Pallets Discord server.


Feature to list not downloaded videos because of errors  into a text file at the end

Checklist

[x] I'm reporting a feature request
[x] I've verified that I'm running youtube-dl version 2019.11.22
[x] I've searched the bugtracker for similar feature requests including closed ones

Description

WRITE DESCRIPTION HERE
Hi, the Feature is to list not downloaded videos or list errors, and save's them into a text file at the end of progress. thank you, beso

Redirect stderr to file.

Well I'm not a programmer (I'm a mathematician) I tried: "command > out 2>error" it's do the work :) but it's not showing the progress at the screen while progressing long work, can you kindly give a exact command line. thanks a lot


CU-85zu0y2yu_Implement-the-backend-filtering

CU-85zu0y2z0 - Implement backend filtering for issues

Task linked: CU-85zu0y2yu Implement the backend filtering

Task linked: CU-85zu0y2z0 Implement backend filtering for issues

Task linked: CU-85zu0y2yu Implement the backend filtering


Math magicians: fetch data from API

Hello,
In this PR, I have worked on fetching data (quotes) from the API feature on the Math Magicians App project.
Here are what I have implemented:

[ ] Use API: API Ninjas
[ ] Create a new component for displaying a quote
[ ] Fetch data inside of a new component

Show a loading state
Show an error state

[ ] Import the new component into the app.js component

Kindly check and let me know what you think.
Happy Coding🎉🎉

Hello @gemmen29,
Thanks for approving my PR. I really appreciate how professional and supportive person you are🙌.
keep up the good work.
Happy Coding🎉🎉


sonic-pi: 2.8.0 -> 2.9.0

Things done:

[x] Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
[x] Built on platform(s): NixOS
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

I'm mainly submitting this because it was failing to compile on an unrelated change. Now it compiles but segfaults during execution.
If nobody is interested to finish the work I think that we should remove the package as it's also installing a whole lot of things under the root of the derivation and probably never actually worked seeing how it was packaged.

Added the empty patch by accident?

Woops, maybe the segfault is fixed then. Testing...

Alright now it doesn't segfault anymore but it stays stuck on the splash screen. I'm not going to invest more time into this package though.


(ISO 6709) PDF layout: source code lines do not respect indents and introduces a tall line margin at the first line

This example shows both problems.

The source code lines are not indented properly.2.
The second source code line has a huge gap with the first line, but the rest of the lines do not have this gap. It should not have this gap.

The issue fixed in https://github.com/metanorma/iso-6709/issues/4 already:

Confirm fixed. Thanks!


Live indi tuning

Adds full indi break points and live tuning. Some of my changes to op edit / param are required but I just brought the files themselves.
Created as a draft for feedback. Waiting for someone on discord to test it first.

looks good thank you @jamcar23


[Feature Request]:  Specify Deployment Name for Azure OpenAI Embedding Models

Scenario
In the js samples Microsoft Teams Conversational Bot with AI: Teams Chef, the deployment name for Azure OpenAI Embedding model is hardcoded as "embedding":
https://github.com/microsoft/teams-ai/blob/f9b1014dcb071b83353498964999663f863760bc/js/samples/04.ai.a.teamsChefBot/src/VectraDataSource.ts#L78-L88
Kindly refer to this issue:
https://github.com/microsoft/teams-ai/issues/1162
Solution
Instead of hardcoding the deployment name, we should put this in .env and load it when initializing VectraDataSource
https://github.com/microsoft/teams-ai/blob/f9b1014dcb071b83353498964999663f863760bc/js/samples/04.ai.a.teamsChefBot/src/index.ts#L118-L127
Add one more option, say azureEmbedding, similar to what we do with apiKey or apiEndpoint
This should make it flexible for the user to update the correct deployment name for embedding model if they're not using embedding by default.
Additional Context
No response

I like the idea, feel free to open up a PR with the suggested changes.


Read access violation on PG 9.5 (MSVC x64 build)

Hi! I'm new to temporal_tables and it happened such that I already upgraded my PG to 9.5 that is not mentioned explicitly in README as supported. Somehow modified project builds fine with MSBuild but fails to load into MSVS 2015 IDE. So I created a new project for debugging
Anyway, I followed the example steps, got backend pid with SELECT pg_backend_pid(); , attached my Visual Studio debugger to it, then when attempting to INSERT data I'm getting
Exception thrown: read access violation.
list_head(...) returned nullptr.

Here is the call stack
>	temporal_tables.dll!get_current_temporal_context(bool will_modify) Line 165	C
 	temporal_tables.dll!get_system_time(...) Line 300	C
 	temporal_tables.dll!versioning_insert(TriggerData * trigdata, TypeCacheEntry * typcache, int period_attnum) Line 874	C
 	temporal_tables.dll!versioning(FunctionCallInfoData * fcinfo) Line 258	C
 	postgres.exe!ExecCallTriggerFunc(TriggerData * trigdata, int tgindx, FmgrInfo * finfo, Instrumentation * instr, MemoryContextData * per_tuple_context) Line 1917	C
 	postgres.exe!ExecBRInsertTriggers(EState * estate, ResultRelInfo * relinfo, TupleTableSlot * slot) Line 2042	C
 	postgres.exe!ExecInsert(ModifyTableState * mtstate, TupleTableSlot * slot, TupleTableSlot * planSlot, List * arbiterIndexes, OnConflictAction onconflict, EState * estate, char canSetTag) Line 272	C
 	postgres.exe!ExecModifyTable(ModifyTableState * node) Line 1442	C
 	postgres.exe!ExecProcNode(PlanState * node) Line 389	C
 	postgres.exe!ExecutePlan(EState * estate, PlanState * planstate, CmdType operation, char sendTuples, long numberTuples, ScanDirection direction, _DestReceiver * dest) Line 1555	C
 	postgres.exe!standard_ExecutorRun(QueryDesc * queryDesc, ScanDirection direction, long count) Line 348	C
 	postgres.exe!ProcessQuery(PlannedStmt * plan, const char * sourceText, ParamListInfoData * params, _DestReceiver * dest, char * completionTag) Line 190	C
 	postgres.exe!PortalRunMulti(PortalData * portal, char isTopLevel, _DestReceiver * dest, _DestReceiver * altdest, char * completionTag) Line 1289	C
 	postgres.exe!PortalRun(PortalData * portal, long count, char isTopLevel, _DestReceiver * dest, _DestReceiver * altdest, char * completionTag) Line 816	C
 	postgres.exe!exec_simple_query(const char * query_string) Line 1111	C
 	postgres.exe!PostgresMain(int argc, char * * argv, const char * dbname, const char * username) Line 4032	C
 	postgres.exe!BackendRun(Port * port) Line 4238	C
 	postgres.exe!SubPostmasterMain(int argc, char * * argv) Line 4729	C
 	postgres.exe!main(int argc, char * * argv) Line 211	C
 	[External Code]

temporal_contexts is NULL on that line.
Any idea what can I do next?
P.S. I tried later with 9.4 64bit, it also fails on INSERT. Am I missing something?
P.P.S. I'm using stock builds from EnterpriseDB on Windows 7 64 bit.
PPPS It looks like _PG_init() should have initialized temporal_contexts. Does something here rely on fork() and a copy of process' memory into children?

I installed Microsoft Child Process Debugging Power Tool for the sake of convenience to monitor all workers, but no break point was triggered at _PG_init. So I instrumented _PG_init with a call 	elog(ERROR, "temporal_contexts list created at 0x%x", temporal_contexts); and somehow I don't see anything in the console. Similar call at get_current_temporal_context dumps 0 into a console.

Uhm... are we missing Module Definitions File? or __declspec(dllexport)?

Bingo! Expect PR with 3 commits.

Hello @mlt,
Thank you for fixing the problem. The last commit in the master branch is a bit experimental. I have not tested it much (and I have not tested it at all in Windows).
Also many thanks for the hint about AppVeyor. I will try to set up a build worker with regression tests at the weekend.

Not a problem! I guess I'm the first Windows user :sunglasses:
Indeed, I didn't try messing with time setting, so I can't comment on that, but the very essential part worked fine for me on 9.5 64 bit.
I don't know how it is done on Travis (never used) but one can cache files, and use curl to download extra software (9.5) if absent and install it before the build.
I'd try with AppVeyor web GUI first before diving into appveyor.yml. It defaults to your cloned repo folder, so
if not exist postgresql-9.5.0-1-windows-x64.exe curl -sLO http://get.enterprisedb.com/postgresql/postgresql-9.5.0-1-windows-x64.exe
postgresql-9.5.0-1-windows-x64.exe --unattendedmodeui minimal --mode unattended --superpassword "password" --servicename "postgreSQL 9.5" --servicepassword "password" --serverport 5435

and add cache entry for postgresql-9.5.0-1-windows-x64.exe.
There are silent install keys documented here.
Alternatively, I can update my PR to whatever is necessary and include appveyor.yml , probably, along with tests, and transfer AppVeyor account by using e-mail address from your commits and send you a temporary password. You may send me you PGP public key if you prefer it that way.

I do confirm postgres.exe is linked against msvcr120.dll, while your project introduces vcruntime140.dll dependency. AFAIK mixing isn't a good thing to do. But it might worth a shot to build with static CRT. What are your thoughts on that? I personally would suggest CMake and generating MSVC specific projects, but CMake is quite heavy for 2 C files. I dunno whether msbuild can use newer project to build for previous platform... they all are installed on AppVeyor.

I've updated PR (needs autosquish though) and I've added you to "collaborators" in AppVeyor. You should be able to access it with your GitHub account. Once we are done with everything, you can export appveyor.yml into your repo, and recreate an AppVeyor project so I can delete mine. It is a PITA to deal with accounts on AppVeyor. AFAIK it is close to impossible to transfer an account with tech support involvement.

Probably I am missing something, but I cannot get access to the project in AppVeyor (though I have received a message that I was added as collaborator). I can only see the build history and logs.
I played a bit with the build last weekend. I am still unsure how to add the regression tests to the build. Do you have any thoughts?

OK. I think I got it now. I had to re-login using another account on AppVeyor.

I thought I replied by e-mail, but somehow it didn't make it here :open_mouth: So I copy it below with some edits.
Hi! Since you logged in. There is a Tests tab in settings. I sed & grep tests. It is not perfect but so far it seems ok. However I'm not certain how to make PG echo complete commands through psql. You probably see what I mean like CREATE TABLE actual_table_name_from_expected_is_missing.
I ended up using full echo for psql, but now those server responses hang unmatched as can be seen here.
I'm not very familiar how regression testing works with PGXN on *nix. Does it still use psql with some options?

I think I finalized scripting tests and it looks acceptable.

The *nix Makefile uses pg_regress to run tests. There should be pg_regress.exe in bin directory.
pg_regress --inputdir=./ --psqldir='/usr/lib/postgresql/9.4/bin' --dbname=contrib_regression test1 test2 test3
I am not a Windows expert, so I am not familiar with best practices for testing in Msbuild. Is it possible to make them part of the build process, not something that is done in AppVeyor only?

There should be pg_regress.exe in bin directory

Never noticed that. I'm surprised web search doesn't yield much official docs. And I'm surprised no-one suggested that on IRC.

Is it possible to make them part of the build process

The closest thing that comes to mind is to add Exec Task.

not something that is done in AppVeyor only

Are you fine maintaining two places enumerating tests? sed I used comes from Git installation that happened to be on PATH on AppVeyor builder machines. We can reasonably assume that everyone trying to build this extension got it with Git. I mean we could fetch the list of tests as I had before with sed.
If you don't like sed approach, another option is to add extra target to Makefile to echo tests list. One way is to have a "custom" pg_config that would return some local file when invoked with --pgxs with target all that echos $(REGRESS) and this can be fed via PowerShell into pg_regress.exe .
P.S. That was brutal to wipe most PowerShell code instead of commenting in out. I didn't have a copy :innocent:
P.P.S. I'm about to fix invocation as it is right now.

I have fixed the build; however, some tests failed due to low system clock resolution. So I needed some time to fix them as well. The branch is here.
Sorry for removing your code. Here is the original tests script.

I didn't realize until recently that you might be changing things at the same time...
There is another "problem": 9.3 binary from EnterpriseDB is built with Visual Studio 2010, i.e. v100, that somehow fails. Also 9.5 has no --psqldir. So we either skip that for that version or always use pg_regress from 9.4.

I'm done messing with things. There is another commit I've added into Pull Request for missing nextafter in VS 2010 introduced in VS 2013.

I think I have it working now. Could you please review the AppVeyor configuration and the branch?
I switched to cmd because I have not found a way to make PowerShell not to consider the stderr output that pg_regress prints while testing as an error.

Your branch looks good to me :+1:  I don't know PowerShell myself much either. It is supposedly easier for things automation due to extensibility, but it might be an overkill in this case. It looks like 2> Out-Null might have made a trick.
Also, I used ldd primarily to check msvc runtime only. I found out for myself that one can use findstr in place of grep on Windows. So if you think ldd outputs too much stuff, perhaps | findstr msvcr should reduce it and still indicate correct runtime library linkage. Or comment out ldd whatsoever since we know those are correct platform toolsets. Or just leave it as is and merge --no-ff into master :sunglasses:

On a side note, I don't know if it worth pushing further and adding PDB (debug symbol) generation alike PG main stuff. IIRC there might be line numbering lost with whole program link optimization (/GL).

Oh... and about YML. There are alternatives how to write commands. The way it is done now with - cmd: >- syntax, you are out of multiline commands. One could use usual   - something instead of a block syntax for each new command. I personally feel like lots of vertical space is lost with - cmd: >- blocks.

I have merged the branch into master. Thank you for your cooperation!


Use golang.org/x/sys instead of syscall

Pull Request Test Coverage Report for Build 76

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 79.618%

Totals

Change from base Build 74:
0.0%

Covered Lines:
875

Relevant Lines:
1099

💛  - Coveralls


Remove modmenu as a dependency

When setting up a server with this mod, it won't launch until I add modmenu on the server, and modmenu is unsupported serverside. The server will still work, but it will have an extra pointless mod in it.

Hello, which is your Minecraft version?

Are you here? I should know your Minecraft version, because modmenu is optional on 1.20+ versions

Hey, sorry for the delay.
I'm on 1.19.2. I'm playing on a 1.19 modpack.

TY! Much appreciated.

Fixed - https://modrinth.com/mod/many-flowers/version/1.19.2-2.3


Open VSX

Hi can you push your extension to https://open-vsx.org/ in addition to VSCode Market Place so people using the FLOSS version could install it too?
I wrote an article on the subject.

Sure thing, I will look at doing this when I get a sec


could not launch process: could not get thread count

Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.

What version of Delve are you using (dlv version)?
Delve Debugger
Version: 0.11.0-alpha
Build: f62bf8d1e3d6cd0ebe9e327fe9bbba31356fa1e9
What version of Go are you using? (go version)?
1.7.3
What operating system and processor architecture are you using?
osx sierra
What did you do?
Tried installing via homebrew and manually.
Ran the debugger inside IntelliJ and got this "could not launch process: could not get thread count"
Ran the same program in the terminal with "dlv debug hello.go" and got the same error message
What did you expect to see?
Delve debugging
What did you see instead?
error message "could not launch process: could not get thread count"

Duplicate of #645


Add SDImageFormatHEIF represent mif1 && msf1 brands

Fix the current hard-coded system version checking with Image/IO source uttypes checking
New Pull Request Checklist

[x] I have read and understood the CONTRIBUTING guide

[x] I have read the Documentation

[x] I have searched for a similar pull request in the project and found none

[x] I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

[x] I have added the required tests to prove the fix/feature I am adding

[x] I have updated the documentation (if necessary)

[x] I have run the tests and they pass

[x] I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: #2081
Pull Request Description
It seems that in the last of 2017. We introduce SDImageFormatHEIC. At that time, the iPhone simulator does not support well on the heif image decoding. So we do some heif decoding compatibility check based on system version, platform and simulator.
However, HEIF actually contains 6 brands of structual format. Such as this image: https://nokiatech.github.io/heif/content/images/ski_jump_1440x960.heic
This image's brand is msf1, so the format check of sd_imageFormatForImageData: will return SDImageFormatUndefined. It's not a good idea from some points. Why current user can still sucessfully view this on iOS 11 device, is because of SDWebImageImageIOCoder will always return YES for SDImageFormatUndefined (See this code)
I think the good way to use, is to also define the SDImageFormatHEIF, which represent msf1 and msf1 brand. See here: HEIF Technical information
Image/IO framework, used by Apple platform, actualy can support msf1 or msf1 brand, when the actual codec is HEVC(H265). Such as the image I provide in the demo. So I think introduce this enum is better for usage.

Codecov Report

Merging #2423 into master will decrease coverage by 0.77%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #2423      +/-   ##
==========================================
- Coverage   74.97%   74.19%   -0.78%
==========================================
  Files          36       36
  Lines        3892     3934      +42
==========================================
+ Hits         2918     2919       +1
- Misses        974     1015      +41

Impacted Files
Coverage Δ

SDWebImage/SDWebImageImageIOCoder.m
73.8% <0%> (-7.82%)
:arrow_down:

SDWebImage/NSData+ImageContentType.m
43.82% <0%> (-4.33%)
:arrow_down:

SDWebImage/SDImageCache.m
63.84% <0%> (-0.42%)
:arrow_down:

SDWebImage/SDWebImageManager.m
75.22% <0%> (+1.35%)
: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 676a4b5...7ddb757. Read the comment docs.


add makefile, upgrade to go 1.21.4

Upgrade to go 1.21.4
Add Makefile for build

I'm going to wait on this until we have debugged the K8s issue. I don't want to introduce a bunch of other changes until we have that working.


Update scalafmt-core to 3.0.6

Updates org.scalameta:scalafmt-core from 3.0.5 to 3.0.6.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, semver-patch

Codecov Report

Merging #50 (c31f077) into main (cefb47c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #50   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           28        28
  Lines          864       864
  Branches        49        49
=========================================
  Hits           864       864

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 cefb47c...c31f077. Read the comment docs.


Switch around MainMenuPatcher to use an event subscriber on the main menu and add an API for mods to add buttons to the Main Menu

Feature Information
Feature description
We have a patching system for the main menu, but it can only be used by space warp internally, it should be exposed in a way for mods to use it
Solution proposal

Change the harmony patcher to instead ping an event that mods can subscribe to
Have the Space Warp API subscribe to this ping
Add a method to the Space Warp API to register a menu button, that stores all registered buttons and adds them every time the main menu is opened by responding to the ping

Was this issue resolved by #108 ?

Yes


Implement VDC Promo codes to incentivize highly-engaged users with free capacity for limited time.

Context and why:
As we're preparing for the Blockchain solutions launch for testing purposes ( starting with DigiBye, presearch and then Matic) , we want to implement an incentive campaign, where we incentivize 50 -100+ people from every Blockchain community with free VDCs for 2 or 3months so that they can deploy their Blockchain nodes and be involved in our community.  (offering it only to people who are willing to deploy stuff, via a selection process:  a form to fill, and a cross-community event along with each solution launch )
Feature request:

A Prromo code structure that can configure a VDC to be deployed on certain free Farms, that will be free of all deployments for a limited amount of time.
Promo code to be inputted  during the first steps of vdc deployment ( could be after the vdc name)
if no promo code inputted -> no free VDC and regular deployement
If promo code inputted - > VDC to be deployed on a certain Farm that is free of charge
Note: each blockchain node requires different vdc packages, but besides presearch, they all require platinum and above.

Farms to be considered:

FreeFarm
GreenEdge farms

Some Questions

How can we generate these Promo codes
how can these promo codes configure the vdc deployment to free farms?
what do the devs exactly need to implement this feature?
After approval by stakeholders, how long could this implementation take?

as per KDS review, we won't be addressing that, it's fine to give people TFT to deploy on already discounted environments.


x/mobile: no exported names in the package

What version of Go are you using (go version)?

go version go1.16.8 linux/amd64

Does this issue reproduce with the latest release?
yes, i ues both 1.16.8 and latest
What operating system and processor architecture are you using (go env)?
GO111MODULE="off"
GOARCH="amd64"
GOBIN="/home/txs/go/bin"
GOCACHE="/home/txs/.cache/go-build"
GOENV="/home/txs/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/txs/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/txs/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/txs/Center/env/go1.16.8.linux-amd64/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/txs/Center/env/go1.16.8.linux-amd64/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.8"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build225390963=/tmp/go-build -gno-record-gcc-switches"

What did you do?
I want to build .aar for Android.  LastDay i successed on my windows pc. So, Today i use my Ubuntu 21.04 to try again. got failed.
What did you expect to see?
output an aar file
What did you see instead?
When i exec gomobile bind -target=android hello on my shell, return gomobile: /home/txs/go/bin/gobind -lang=go,java -outdir=/tmp/gomobile-work-895177626 hello failed: exit status 1
no exported names in the package "hello"
no exported names in the package "hello"

What does your code look like? Could you share more about what you were trying to do?  Please share the precise steps you took to end up in this situation.

I use the official code in dir "golang.org/x/mobile/example/bind/hello". The code as follow
// Package hello is a trivial package for gomobile bind example.
package hello

import "fmt"

func Greetings(name string) string {
	return fmt.Sprintf("Hello, %s!", name)
}

After i enter command gomobile bind -target=android hello, the problem arises.


The slide() function in Active Inference Mountain Car example

Thanks for your amazing work about Bayesian Inference! I have learned a lot from the example of 'Active Inference Mountain Car' example. But in the following code:
# We are going to use some private functionality from ReactiveMP,
# in the future we should expose a proper API for this
import RxInfer.ReactiveMP: getrecent, messageout

function create_agent(;T = 20, Fg, Fa, Ff, engine_force_limit, x_target, initial_position, initial_velocity)
    Epsilon = fill(huge, 1, 1)                # Control prior variance
    m_u = Vector{Float64}[ [ 0.0] for k=1:T ] # Set control priors
    V_u = Matrix{Float64}[ Epsilon for k=1:T ]

    Sigma    = 1e-4*diageye(2) # Goal prior variance
    m_x      = [zeros(2) for k=1:T]
    V_x      = [huge*diageye(2) for k=1:T]
    V_x[end] = Sigma # Set prior to reach goal at t=T

    # Set initial brain state prior
    m_s_t_min = [initial_position, initial_velocity]
    V_s_t_min = tiny * diageye(2)

    # Set current inference results
    result = nothing

    # The `infer` function is the heart of the agent
    # It calls the `RxInfer.inference` function to perform Bayesian inference by message passing
    compute = (upsilon_t::Float64, y_hat_t::Vector{Float64}) -> begin
        m_u[1] = [ upsilon_t ] # Register action with the generative model
        V_u[1] = fill(tiny, 1, 1) # Clamp control prior to performed action

        m_x[1] = y_hat_t # Register observation with the generative model
        V_x[1] = tiny*diageye(2) # Clamp goal prior to observation

        data = Dict(:m_u       => m_u,
                    :V_u       => V_u,
                    :m_x       => m_x,
                    :V_x       => V_x,
                    :m_s_t_min => m_s_t_min,
                    :V_s_t_min => V_s_t_min)

        model  = mountain_car(T = T, Fg = Fg, Fa = Fa, Ff = Ff, engine_force_limit = engine_force_limit)
        result = infer(model = model, data = data)
    end

    # The `act` function returns the inferred best possible action
    act = () -> begin
        if result !== nothing
            return mode(result.posteriors[:u][2])[1]
        else
            return 0.0 # Without inference result we return some 'random' action
        end
    end

    # The `future` function returns the inferred future states
    future = () -> begin
        if result !== nothing
            return getindex.(mode.(result.posteriors[:s]), 1)
        else
            return zeros(T)
        end
    end

    # The `slide` function modifies the `(m_s_t_min, V_s_t_min)` for the next step
    # and shifts (or slides) the array of future goals `(m_x, V_x)` and inferred actions `(m_u, V_u)`
    slide = () -> begin

        model  = RxInfer.getmodel(result.model)
        (s, )  = RxInfer.getreturnval(model)
        varref = RxInfer.getvarref(model, s)
        var    = RxInfer.getvariable(varref)

        slide_msg_idx = 3 # This index is model dependend
        (m_s_t_min, V_s_t_min) = mean_cov(getrecent(messageout(var[2], slide_msg_idx)))

        m_u = circshift(m_u, -1)
        m_u[end] = [0.0]
        V_u = circshift(V_u, -1)
        V_u[end] = Epsilon

        m_x = circshift(m_x, -1)
        m_x[end] = x_target
        V_x = circshift(V_x, -1)
        V_x[end] = Sigma
    end

    return (compute, act, slide, future)
end

I want to know if this line
(m_s_t_min, V_s_t_min) = mean_cov(getrecent(messageout(var[2], slide_msg_idx)))

could be replaced by the following line
(m_s_t_min, V_s_t_min) = mean_cov(result.posteriors[:x][2])

I have modified the code and get the following result:

Could you give me an explaination?

Hi @Flawless1202, thanks for trying it out and for your question. The short answer is no; unfortunately you cannot exchange the message for the marginal.
The longer answer:
Informally, a message summarizes the information of the sub-graph that it leaves (aka "closing the box"). Therefore, the forward message (obtained by mean_cov(getrecent(messageout(var[2], slide_msg_idx)))) summarizes all past data (actions and observations). The marginal, obtained by mean_cov(result.posteriors[:x][2]), is the result of two colliding messages: the forward message that summarizes the past, and the backward message that summarizes the desired future. Therefore, the marginal is biased by the desired future and your current state estimate will be biased as well.
Hope this clears things up. For more details you can also consult the original paper: https://www.frontiersin.org/journals/robotics-and-ai/articles/10.3389/frobt.2019.00020/full

I suppose this can be moved into discussion ;)


Fix show and hide feature with dependsOn

This work is very dirty. I close the PR and open it again with something better done.


FIXED - Discover broken again

Discover credit cards are broken again.
I'm working on a fix now...

Discover credit cards broke for me sometime on May 10-11, 2017. I saw this confirmed for other software as well. It turns out that Discover has changed the account numbers (ACCTID) used by Ofx.
One fix would probably be to run the setup again. Alternatively, you can do what I did and fix the "number" field for your account in ~/ofxclient.ini:

Log in to your account on Discover.com, click the "Recent Activity" button.
In the grayish box in the middle of the screen, click the "Download" link near the top left.
Select the button for "Other Financial Management Software" and click Download.
The resulting file will be an ASCII text file with the .bin extension; download it.
Open the file and look for the <ACCTID> tag, and grab the number after that tag.

Up to May 10 or 11, the "number" (ACCTID) that Discover was using for my account was my full credit card number. Now, it has changed to something like "Discovr06XaaXaaaaXbbbb" where "a" are numbers that don't seem to make any sense to me, and "bbbb" are the last four digits of my card number.

I can confirm that Discover card has changed the way they do account numbers now. I called Discover and the person talking to me told me that they are now using different account numbers than what would appear on the card. Section 8.5.1 in the OFX Spec talks about the reasoning behind doing this.

@jantman Do you know how one would make an OFX request to get a list of ACCTID's for a given user?

@denvaar I really don't know much about the OFX spec at all... I know that the PocketSense scripts converted to OFX 2.0 for Discover, but 102 still works fine for me. I thought that the difference, in practical terms, was just well-formed XML (i.e. closing tags).
I assume that the request to get ACCTIDs would be the same as 1.x, except for the message formatting... but I don't really know.

@denvaar to get the list of accounts, take a look at the cli.py
It has an example using the Institution.authenticate() and Institution.accounts() methods. Those are how this CLI get and present your accounts in your bank to you when you add a bank.

I missed the "in 2.0" part.  I've never used 2.0 myself.  This library uses the ofxparse module; perhaps there is some discussion over on that project related to the 2.0 format that might shed light.


Incorrect gapList.base field in GAP submessage

According to the RTPS specs section <IP_ADDRESS>.5, a recipient of a GAP message interprets the message such that:

All sequence numbers in the range gapStart <= sequence_number <= gapList.base -1
All the sequence numbers that appear explicitly listed in the gapList.

Given a GAP list of sequence numbers 8, 9, 10, 15, 16, 19, 20, 23, 27, 28 and the description above, the gap message should have the following values: gapStart==8, gapList.base==11 gapList.set[15, 16, 19, 20, 23, 27, 28]
Instead, the GAP message sent by the StatefulWriter has the following values: gapStart==8, gapList.base==8 gapList.set[9, 10, 15, 16, 19, 20, 23, 27, 28] causing the gap seqnum 8 to be missed by the receiver.
How to reproduce the issue:

Create a RTPS participant A
Create a RTPS participant B
Participant B publishes topic B_topic
Participant A subscribes to B_topic
Verify that data is received by participant A on B_topic
Shutdown cleanly participant B
Participant A removes subscription for B_topic
Start another instance of participant B which publishes B_topic
Participant A registers to B_topic
Verify that data is received by participant A on B_topic
Repeat steps 6-10 several times (typically 3 times is enough).
Observes that the new instance of participant B DOES NOT receives the data for A_topic.

The reasons is that when the first instance of participant B shutsdown cleanly, some messages are removed from the RTPS Writer history in some of the internal fastrtps percistent topics. These gaps then segment the message sequence number causing the next participant to receive a GAP message causing it to skip sequence numbers. Because the GAP message is improperly configured, it causes the reader side to continuously request a missing message.

We have occasionally seen issues similar to the symptoms you describe here where shutting down and restarting a participant resulted in a loss of data flow until restarting all participants.  Some of our issues were caused by #155 however we still have to restart all participants occasionally and haven't had time to really dig into the cause.
Does this issue affect participant discovery or just topic matching afterwards? We don't usually even see participant discovery (using onRTPSParticipantDiscovery callback) when we are having issues.
How can I confirm communications issues are caused by this GAP list issue when it is happening? Can you identify it from Wireshark traffic?

This impacts all reliable topics and as far as I know, all built-in topics are setup as reliable.


Support customization of RemoteIpValve's protocol header attribute

PR for issue https://github.com/cloudfoundry/uaa-release/issues/11
Let me know if you'd prefer a different property name.

 I was trying to get it updated quickly before you moved on I was hardly thinking. :)
Should be good now.


Bot returning error "Operation returned an invalid status code 'BadRequest'" in MS Teams

Describe the bug

I created a bot in BF Composer. It relies mostly on a series of adaptive Hero Cards. In Emulator and in Azure Web Chat the bot works fine but once I uploaded it to MS Teams (using App Studio) it returned error: Operation returned an invalid status code 'BadRequest'
Initial hero card loads fine and the problem occurs once user chooses an option from the initial hero card (it should be followed by another hero card).
In Azure portal in Teams Channel I'm getting the following error:
March 17, 2022, 9:04 AM GMT+1
Invalid image URI

but I don't see how it relates and how it's problem only on Teams.
I'm using also App Insights but haven't seen anything useful there.
Help would be greatly appreciated.
Version

2.1.2
Browser

[ ] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[x] Edge

OS

[ ] macOS
[x] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Created a bot in BF Composer consisting of multiple Hero Cards
Upload the Bot to MS Teams using App Studio
The error occurs

Expected behavior

After user chooses an option on initial hero card, another one should pop up, like in a menu.
Screenshots

Additional context

Hi,
I tried using the manifest but I'm getting similar results. Similar, because the first time I loaded the bot to Teams and chose an option from initial adaptive card it responded with:
Oops, looks like I'm stuck. Can you try to ask me in a different way?
But with a second try it returned the good old
Operation returned an invalid status code 'BadRequest'
I don't think the images (icons) are a problem because they're pulled from the same location as images (icons) for the initial card which displays fine.
In logs (Apps Insights) it's clear that the bot recognizes correct intent. In this case the user wanted to get into Access Request section of the bot and clicked proper option on the adaptive card. Here's a bit from the logs: (Newest from the top)

ActionId
Microsoft.BeginDialog[AccessRequest]

DialogId
BeginDialog[AccessRequest]

Expression
((turn.recognized.intent == 'AccessRequestRedirect') && ((turn.dialogEvent.name == 'recognizedIntent') && True))

If you have any suggestions or need any more data from me let me know.
I'll be happy to provide.

The next thing I'd suggest is debugging locally with ngrok. This will allow you to run the bot in your local environment and see where in the code errors occur. This may help us understand what's breaking and if there is an exception with a more detailed error message that might help debug the issue.

I used the ngrok but unfortunately while Teams are still returning
BadRequest
ngrok is saying:
200 OK
screens attached

Ngrok is just telling you the inbound request was received successfully, it doesn't necessarily know what happened in the code handling the request.
Is this a C# bot? Have you tried running your code in Visual Studio, rather than Composer? Your Composer project folder should have a csproj or sln file which you can open in Visual Studio and then run the bot in the debugger, allowing you to see error messages and where they occur. Note that the port you will need to forward with Ngrok might be different.

Hi @anishprasad01
I tried debugging it with VS today but there's some kind of issue. The bot doesn't start the conversation because it's encountering an error and starts looping in it. The error is still in the part that comes from a template. It appears that the bot fails to add a member to the conversation? here are the logs:
`IT_Bot Information: 0 : 'conversationUpdate' ==> beginDialog      ==> IT_Bot
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> activityReceived ==> OnConversationUpdateActivity[]
IT_Bot Information: 0 : Executing Dialog: IT_Bot Rule[0]: OnConversationUpdateActivity: ((turn.activity.type == 'conversationUpdate') && ((turn.dialogEvent.name == 'activityReceived') && True))
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> ActionScope[ForEachElement(=turn.Activity.membersAdded)]
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> ForEachElement(=turn.Activity.membersAdded)
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> ActionScope[IfCondition(=string(dialog.foreach.value.id) != st...4dYt8L2B7c3pgpBoUtxsnkYsgdWwdlPWXUBBERDSIkg=]
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> IfCondition(=string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)|IfCondition(=exists(user.greeted)|SendActivity(${S...)
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> EndDialog        ==> IfCondition(=string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)|IfCondition(=exists(user.greeted)|SendActivity(${S...)
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> ResumeDialog     ==> ActionScope[IfCondition(=string(dialog.foreach.value.id) != st...4dYt8L2B7c3pgpBoUtxsnkYsgdWwdlPWXUBBERDSIkg=]
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> EndDialog        ==> ActionScope[IfCondition(=string(dialog.foreach.value.id) != st...4dYt8L2B7c3pgpBoUtxsnkYsgdWwdlPWXUBBERDSIkg=]
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> ActionScope[IfCondition(=string(dialog.foreach.value.id) != st...4dYt8L2B7c3pgpBoUtxsnkYsgdWwdlPWXUBBERDSIkg=]
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> IfCondition(=string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)|IfCondition(=exists(user.greeted)|SendActivity(${S...)
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> EndDialog        ==> IfCondition(=string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)|IfCondition(=exists(user.greeted)|SendActivity(${S...)
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> TrueIfCondition(=string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)|IfCondition(=exists(user.greeted)|SendActivity(${S...)
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> IfCondition(=exists(user.greeted)|SendActivity(${SendActivity_GreetingReturni...))
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> EndDialog        ==> IfCondition(=exists(user.greeted)|SendActivity(${SendActivity_GreetingReturni...))
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> FalseIfCondition(=exists(user.greeted)|SendActivity(${SendActivity_GreetingReturni...))
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> beginDialog      ==> SendActivity(${SendActivity_GreetingNewUser...)
'IT_Bot.exe' (CoreCLR: clrhost): Loaded 'C:\repo\Chatbotv2\IT_Bot-17.03\IT_Bot\bin\Debug\netcoreapp3.1\Microsoft.IdentityModel.Clients.ActiveDirectory.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> error            ==> ForEachElement(=turn.Activity.membersAdded)
IT_Bot Information: 0 : 2: 'conversationUpdate' ==> error            ==> IT_Bot
'IT_Bot.exe' (CoreCLR: clrhost): Loaded 'C:\Program
Files\dotnet\shared\Microsoft.NETCore.App\3.1.23\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'IT_Bot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.23\System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
IT_Bot Information: 0 : 3: 'conversationUpdate' ==> error            ==> OnError(error)
IT_Bot Information: 0 : Executing Dialog: IT_Bot Rule[4]: OnError: ((turn.dialogEvent.name == 'error') && True)
IT_Bot Information: 0 : 3: 'conversationUpdate' ==> beginDialog      ==> ActionScope[TraceActivity(=IT_Bot.OnError),TelemetryTrackEve...eFJ4qilp/FqaYlRxuVaF0I4PvSq0fm10wQVysyselZk=]
IT_Bot Information: 0 : 3: 'conversationUpdate' ==> beginDialog      ==> TraceActivity(=IT_Bot.OnError)
IT_Bot Information: 0 : 3: 'conversationUpdate' ==> error            ==> TraceActivity(=IT_Bot.OnError) `

Could you scrub your project of any secrets or other personal information and share a small reproducible example with me? You can use my work email on my profile. It's hard for me to see what's going on from these logs, so I'd like to try and run the bot myself.

Yes, thank you @anishprasad01 I just sent you an email.

@krassussofficial,
I took a look at your bot, and both your root and skill bots are complaining about missing LUIS and QnA keys and regions. I would like to confirm that this is only because you removed them before sharing the bot with me, and that your bot has the keys and regions filled in the root and skill.

Hi @anishprasad01
Yes, I removed it prior to sharing, I have no problems publishing the bot to Azure. Both QnA and LUIS resources are connected without issues.
Let me know if you have any further questions.
Best regards!

@anishprasad01
Part of the issue was the appsettings.json file which was completely different from "Advanced Settings" in Composer, the only issue I have now is that the bot doesn't connect to QnA KB (401 Unauthorized) despite having proper keys and endpoints in the appsettings.json...

So you can now connect to the bot in Teams, but any requests that use QnA fail?

@anishprasad01
Exactly, there's no connection to QnA in my local bot. Is the local bot, running in VS, using the KB's downloaded just like Composer (located in ..../knowledge-base/source/) or is it actually connecting to the one in Azure?

@anishprasad01
Weird thing happened today:
From the very morning I can't access my LUIS resource: I'm getting a 401 (unauthorized) error and during "conversation" using adaptive cards when I check the LuisV3 Trace that's what I'm getting:

and when asking a direct question:

in appsettings.json I have specified
"luis": {
"authoringEndpoint": "https://xxxxxxx-authoring.cognitiveservices.azure.com/",
"authoringRegion": "westus",
"defaultLanguage": "en-us",
"endpoint": "https://xxxxxx-luis.cognitiveservices.azure.com/",
"environment": "composer",
"name": "xxxx-luis",
"authoringKey": "",
"endpointKey": "authoring key here"
},
And I'm getting 401
When I add endpoint key (as 'authoringKey') - still 401
When switch places between keys - 403 (forbidden)
any Ideas?

Let me try to create a new QnA and LUIS resource and connect them to the copy of your bot and see if I can get it working.

@krassussofficial,
So here's what I did:

Deployed new QnA and LUIS resources
Created two new Azure Bot resources
Added the keys to Composer
Changed the allowed callers AppIds in the Advanced view
Enabled Teams in the Azure Bot settings

The result:
(Ignore the "Sorry, I did not understand". I entered some gibberish to establish connection to the bot which it didn't understand)

The second hero card seems to be rendering fine. No errors popped up in Teams or in the bot. I'm thinking that the problem is probably a mismatch in the keys or some other configuration item.

Hi @anishprasad01,
I have finally properly configured the bot solution in VS. Now I can debug the Teams channel using VS. The error happens (as before) when a user chooses one of the options on the card you sent in screenshot above. Could you see what happens when you choose "Access Request" for example? I get the BadRequest Below I'm attaching logs from VS debugger:
==========================================================
IT_Bot Information: 0 : 5: 'message' ==> activityReceived ==> IT-Init
IT_Bot Information: 0 : 4: 'message' ==> recognizeUtterance ==> CrossTrainedRecognizerSet
IT_Bot Information: 0 : 5: 'message' ==> recognizedIntent ==> OnIntent(AccessRequestRedirect)[]
IT_Bot Information: 0 : Executing Dialog: IT-Init Rule[1]: OnIntent: ((turn.recognized.intent == 'AccessRequestRedirect') && ((turn.dialogEvent.name == 'recognizedIntent') && True))
IT_Bot Information: 0 : 5: 'message' ==> beginDialog      ==> ActionScope[BeginDialog[AccessRequest]]
IT_Bot Information: 0 : 5: 'message' ==> beginDialog      ==> BeginDialog[AccessRequest]
IT_Bot Information: 0 : 'message' ==> beginDialog      ==> AccessRequest
IT_Bot Information: 0 : 1: 'message' ==> beginDialog      ==> OnBeginDialog(beginDialog)
IT_Bot Information: 0 : Executing Dialog: AccessRequest Rule[0]: OnBeginDialog: ((turn.dialogEvent.name == 'beginDialog') && True)
IT_Bot Information: 0 : 1: 'message' ==> beginDialog      ==> ActionScope[SendActivity(${SendActivity_XCXUVv()})]
IT_Bot Information: 0 : 1: 'message' ==> beginDialog      ==> SendActivity(${SendActivity_XCXUVv()})
IT_Bot Information: 0 : 5: 'message' ==> error            ==> SendActivity(${SendActivity_XCXUVv()})
IT_Bot Information: 0 : 1: 'message' ==> error            ==> AccessRequest
'IT_Bot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.23\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'IT_Bot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.23\System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
IT_Bot Information: 0 : 5: 'message' ==> error            ==> IT-Init
IT_Bot Information: 0 : 5: 'message' ==> error            ==> greeting_teams
Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.CoreBotAdapter: Error: [OnTurnError] unhandled error : Operation returned an invalid status code 'BadRequest'
Microsoft.Bot.Schema.ErrorResponseException: Operation returned an invalid status code 'BadRequest'
at Microsoft.Bot.Connector.Conversations.ReplyToActivityWithHttpMessagesAsync(String conversationId, String activityId, Activity activity, Dictionary2 customHeaders, CancellationToken cancellationToken)    at Microsoft.Bot.Connector.ConversationsExtensions.ReplyToActivityAsync(IConversations operations, String conversationId, String activityId, Activity activity, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.CloudAdapterBase.SendActivitiesAsync(ITurnContext turnContext, Activity[] activities, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.TurnContext.<>c__DisplayClass31_0.<<SendActivitiesAsync>g__SendActivitiesThroughAdapter|1>d.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at Microsoft.Bot.Builder.SetSpeakMiddleware.<>c__DisplayClass3_0.<<OnTurnAsync>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at Microsoft.Bot.Builder.TurnContext.SendActivityAsync(IActivity activity, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.SendActivity.BeginDialogAsync(DialogContext dc, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogContext.BeginDialogAsync(String dialogId, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScope.BeginActionAsync(DialogContext dc, Int32 offset, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScope.BeginDialogAsync(DialogContext dc, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogContext.BeginDialogAsync(String dialogId, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialog.ContinueActionsAsync(DialogContext dc, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialog.BeginDialogAsync(DialogContext dc, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogContext.BeginDialogAsync(String dialogId, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.BeginDialog.BeginDialogAsync(DialogContext dc, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogContext.BeginDialogAsync(String dialogId, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScope.BeginActionAsync(DialogContext dc, Int32 offset, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScope.BeginDialogAsync(DialogContext dc, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogContext.BeginDialogAsync(String dialogId, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialog.ContinueActionsAsync(DialogContext dc, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialog.ContinueDialogAsync(DialogContext dc, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogContext.ContinueDialogAsync(CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialog.ContinueActionsAsync(DialogContext dc, Object options, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialog.ContinueDialogAsync(DialogContext dc, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogContext.ContinueDialogAsync(CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogExtensions.InnerRunAsync(ITurnContext turnContext, String dialogId, DialogContext dialogContext, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogExtensions.InternalRunAsync(ITurnContext turnContext, String dialogId, DialogContext dialogContext, DialogStateManagerConfiguration stateConfiguration, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogExtensions.InternalRunAsync(ITurnContext turnContext, String dialogId, DialogContext dialogContext, DialogStateManagerConfiguration stateConfiguration, CancellationToken cancellationToken)    at Microsoft.Bot.Builder.Dialogs.DialogExtensions.RunAsync(Dialog dialog, ITurnContext turnContext, IStatePropertyAccessor1 accessor, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialogBot.OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.SetSpeakMiddleware.OnTurnAsync(ITurnContext turnContext, NextDelegate next, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.ShowTypingMiddleware.OnTurnAsync(ITurnContext turnContext, NextDelegate next, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.MiddlewareSet.ReceiveActivityWithStatusAsync(ITurnContext turnContext, BotCallbackHandler callback, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.BotAdapter.RunPipelineAsync(ITurnContext turnContext, BotCallbackHandler callback, CancellationToken cancellationToken)
'IT_Bot.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.23\Microsoft.Win32.Registry.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

As I recall, when I clicked it, I got one more hero card. When I clicked something on that second card, it got confused, since my LUIS and QnA resources do not have your content and aren't trained with your intents.

Hi, @anishprasad01
I've been testing and it's clear that the bot has a problem with sending the adaptive cards. I added a response right before sending the card in the logic of the bot and the response displayed fine. Even from above logs:
IT_Bot Information: 0 : 1: 'message' ==> beginDialog ==> SendActivity(${SendActivity_XCXUVv()})
IT_Bot Information: 0 : 5: 'message' ==> error ==> SendActivity(${SendActivity_XCXUVv()})
SendActivity_XCXUVv() regards the hero card.
I honestly don't see how that is a configuration issue.

I have found the issue and resolved it:
When specifying parameters for the Adaptive Card (Options) one cannot leave parameter # IconUrl() empty.......
I'm closing this issue.

Interesting. Thanks for following up with your resolution!

Hi,
I am facing the exact same issue. Can someone specify what was the exact issue in general.
Thanks


Could not find 'php-cs-fixer'. The program may not be installed. windows 10

Description
I can run php and php-cs-fixer in my cmd
which php
/c/xampp/php/php
which php-cs-fixer
/c/Users/Me/AppData/Roaming/Composer/vendor/bin/php-cs-fixer
Here is my stacktrace
Error: Could not find 'php-cs-fixer'. The program may not be installed.
    at PHPCSFixer.module.exports.Beautifier.commandNotFoundError (file:///C:/Users/Me/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:196:14)
    at file:///C:/Users/Me/.atom/packages/atom-beautify/src/beautifiers/php-cs-fixer.coffee:55:28
    at tryCatcher (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:504:31)
    at Promise._settlePromise (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:561:18)
    at Promise._settlePromise0 (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:606:10)
    at Promise._settlePromises (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:685:18)
    at Promise._fulfill (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:630:18)
    at PromiseArray._resolve (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise_array.js:125:19)
    at PromiseArray._promiseFulfilled (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise_array.js:143:14)
    at Promise._settlePromise (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:566:26)
    at Promise._settlePromise0 (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:606:10)
    at Promise._settlePromises (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:685:18)
    at Async._drainQueue (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:138:16)
    at Async._drainQueues (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:148:10)
    at Async.drainQueues (C:\Users\Me\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:17:14)

Please follow the issue template provided. More specifically, adding a link to the required debug.md Gist which includes debugging information that answers our most commonly asked questions: https://github.com/Glavin001/atom-beautify/blob/master/ISSUE_TEMPLATE.md#how-to-create-debugmd-gist
Thank you.

well the command Atom Beautify: Help Debug Editor is not copying the results

the command Atom Beautify: Help Debug Editor is not copying the results

This is a big issue. Is there any errors shown in the Developer Console of Atom?

could be the same issue I was having #1054
check to make sure your PATH system variable is all caps. Mine was set to Path probably by a windows update.

Any news on this?

I had the same problem. Any solution?
I has the php-cs-fixer package installed.

See https://github.com/FriendsOfPHP/PHP-CS-Fixer for program installation instructions.
Your program is properly installed if running 'which php-cs-fixer' in your Terminal returns an absolute path to the executable. If this does not work then you have not installed the program correctly and so Atom Beautify will not find the program. Atom Beautify requires that the program be found in your PATH environment variable.
Note that this is not an Atom Beautify issue if beautification does not work and the above command also does not work: this is expected behaviour, since you have not properly installed your program. Please properly setup the program and search through existing Atom Beautify issues before creating a new issue. See https://github.com/Glavin001/atom-beautify/search?q=php-cs-fixer&type=Issues for related Issues and https://github.com/Glavin001/atom-beautify/tree/master/docs for documentation. If you are still unable to resolve this issue on your own then please create a new issue and ask for help.

Error: Could not find 'php-cs-fixer'. The program may not be installed.
    at PHPCSFixer.module.exports.Beautifier.commandNotFoundError (/Users/Gustavo/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:204:14)
    at /Users/Gustavo/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:304:22
    at tryCatcher (/Users/Gustavo/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/Gustavo/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:510:31)
    at Promise._settlePromise (/Users/Gustavo/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:567:18)
    at Promise._settlePromise0 (/Users/Gustavo/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:612:10)
    at Promise._settlePromises (/Users/Gustavo/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:687:18)
    at Async._drainQueue (/Users/Gustavo/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:16)
    at Async._drainQueues (/Users/Gustavo/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:148:10)
    at Async.drainQueues (/Users/Gustavo/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
    at process._tickCallback (internal/process/next_tick.js:103:7)

Solved it by now using Sublime Text. Easy fix. :\

What was the fix  ?

Command Atom Beautify: Help Debug Editor has been improved.  We can help with a provided debug.md Gist generated from Atom Beautify: Help Debug Editor.

I'm closing this as a duplicate of the many existing Issues: https://github.com/Glavin001/atom-beautify/search?q=Could+not+find+'php-cs-fixer'.+The+program+may+not+be+installed.&state=closed&type=Issues&utf8=✓

I really want to focus on improving the installation experience for users. I have created a new Issue, #1687, to target this problem. Please provide your feedback! Thanks in advance.


Extension issue

Issue Type: Bug
Extension Name: vsliveshare
Extension Version: 1.0.5090
OS Version: Windows_NT x64 10.0.19042
VS Code version: 1.62.0

:warning: We have written the needed data into your clipboard. Please paste! :warning:

Closing out as we do not have any actionable information in this bug.


clean up debugging information

We need to clean up the debugging information that are scattered across the code..
Examples:

https://github.com/HoloClean/holoclean/blame/dev/repair/featurize/featurize.py#L20
https://github.com/HoloClean/holoclean/blame/dev/repair/learn/learn.py#L174

This causes some crashes with smaller datasets.

sorry my bad, I did not notice this is committed to dev


add exception handler for disruptorQueue

Coverage remained the same at 17.983% when pulling 99c11b5ce90b08b3181e9e9350fac44adbb3db55 on ascrutae:fix/disruptor-exception-handle into 8472f5c7438d77e70a0539cb4d00d73d6827718c on OpenSkywalking:master.


3.4.3 always forces replacement for member group

Since version 3.4.3, all terraform plan indicate that member resources will be recreated.
-/+ resource "harbor_project_member_group" "members" {
      ~ id         = "/projects/5/members/11" -> (known after apply)
      + member_id  = (known after apply)
      ~ project_id = "5" -> "/projects/5" # forces replacement
        # (4 unchanged attributes hidden)
    }

id attribute is replaced by project_id
Please add a breaking change alert in the release info

Sorry, this is my mistake. This issue is related to #173 .
This is caused by following, I should use checkProjectid(strconv.Itoa(jsonData.ProjectID)) instead of strconv.Itoa(jsonData.ProjectID) to add string of /projects/.
https://github.com/BESTSELLER/terraform-provider-harbor/blob/37583c4eaa0092d20d0f46f3e5c0ba55ce94acf5/provider/resource_project_member_group.go#L110
I'll create PR.

@wrighbr
After above PR is merged, please release 3.4.4 because this is breaking change I don't intend.


Option for white font

If you have the time.
It'd be great to have an option for selecting between white and black font like windows time and wifi icons and so on.
Thanks

If you have the time. It'd be great to have an option for selecting between white and black font like windows time and wifi icons and so on. Thanks

Weird! The widget is supposed to follow the system theme so the font should always have the same color of the taskbar elements.
Is it possible to give more infos such us the name of theme or the related configurations on your machine? I want to understand why the widget didn't follow the system.
Thank you.

After changing the theme from personalization colors, the widget adjusted itself. I think it may have been a stray bug. so i think it's fine and no need to have the option. Thx

@byakuyaxgara Thank you for your comment, I think this may be a bug in the framework (WinUI 3), but still I will take a look for any available workaround/solution.
Please note that your case is valid, the widget should respect personalized theme and colors, no excuses :)


fix: Update related objects with unique_together

Description
Resolves the issue described in #360: Support updating related objects with unique_together on the foreign key where the data identifies a single object in the database.
Types of Changes

[x] Bugfix
[x] Enhancement/optimization

Issues Fixed or Closed by This PR

#360

Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Codecov Report
Patch coverage: 66.66% and no project coverage change.

Comparison is base (4cde249) 87.99% compared to head (9f01759) 87.99%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #362   +/-   ##
=======================================
  Coverage   87.99%   87.99%
=======================================
  Files          33       33
  Lines        2940     2941    +1
=======================================
+ Hits         2587     2588    +1
  Misses        353      353

Files Changed
Coverage Δ

strawberry_django/mutations/resolvers.py
87.05% <66.66%> (+0.05%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


keyd-application-mapper arch not working gnome mutter 47.2

cmd output
laptop:~$ ls -alth /var/run/keyd.socket
srw-rw---- 1 root keyd 0 Dec 24 03:12 /var/run/keyd.socket
laptop:~$ groups user
wheel input lp keyd users
laptop:~$ export KEYD_DEBUG=1
laptop:~$ keyd-application-mapper
Gnome detected
ERROR: Failed to connect to "/var/run/keyd.socket", make sure the daemon is running and you have permission to access the socket.
	Matched kitty|*
ERROR: Failed to connect to "/var/run/keyd.socket", make sure the daemon is running and you have permission to access the socket.

Running keyd-application-mapper from the commandline outputs
Gnome detected
When I switch app focus it prints
	Matched kitty|* ERROR: Failed to connect to "/var/run/keyd.socket", make sure the daemon is running and you have permission to access the socket.
When I switch back to kitty it then prints
	Matched kitty|* ERROR: Failed to connect to "/var/run/keyd.socket", make sure the daemon is running and you have permission to access the socket.
~/.config/keyd/app.conf
[kitty]

capslock = esc

keyd 2.5.0-1
OS: Arch Linux x86_64
Host: HP Spectre x360 2-in-1 Laptop 16-f1xxx
Kernel: 6.6.65-1-lts
Uptime: 4 days, 17 hours, 15 mins
Packages: 1513 (pacman), 20 (flatpak)
Shell: bash 5.2.37
Resolution: 3072x1920
DE: GNOME 47.2
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: kitty
CPU: 12th Gen Intel i7-12700H (20) @ 400MHz
GPU: Intel Alder Lake-P GT2 [Iris Xe Graphics]
Memory: 2392MiB / 15688MiB

I've added values 47 and 47.2 to the 45 version gnome extension's metadata file (https://github.com/rvaiya/keyd/pull/873) and linked /usr/share/gnome-shell/extensions/keyd to /usr/share/keyd/gnome-extension-45.
I have added my user to the keyd group as the manpage for keyd-application-mapper states to do. I suspect it's related to socket permissions based on the output.

Not sure what happened but you can tally 1 for user error and I will close this because it works.


Stop filtering via UPRNs

For your perusal :)

Ben F. confirms this is working on preprod

changes understood