Failed setup enphase

Describe the bug
After update to core
Home Assistant 2023.9.1
Supervisor 2023.08.3
Operating System 10.5
Frontend 20230908.0 - latest
The enphase is not recognized any more
Envoy

[ ] Metered with CTs installed

[x] Metered without CTs

[ ] Standard

FW version: D7.xxx

Amount of micro inverters connected: 19

Additional context
Relevant snippet of Home Assistant error log.

2023-09-10 07:48:16.257 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Token expired on: 2023-09-09 14:23:34
2023-09-10 07:48:16.258 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Found Expired token - Retrieving new token
2023-09-10 07:48:16.258 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetching envoy token
2023-09-10 07:48:16.261 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Local auth secret: xxxxxxxxxxxxxx
2023-09-10 07:48:16.261 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Doing authorize at entrez, with codeChallenge: xxxxxxxxxxxxxxxxx
2023-09-10 07:48:16.842 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Checking JWT on envoy with params {'client_id': 'envoy-ui-1', 'code': 'xxxxxxxxxxx', 'code_verifier': 'xxxxxxxxxxxxxxxxxxx', 'grant_type': 'authorization_code', 'redirect_uri': 'https://192.168.1.xx/auth/callback'}
2023-09-10 07:48:21.162 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Envoy Token
2023-09-10 07:48:21.163 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Token expires at: 2023-09-10 19:48:17
2023-09-10 07:48:21.163 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Token expires at: 2023-09-10 19:48:17
2023-09-10 07:48:21.163 INFO (MainThread) [custom_components.enphase_envoy.envoy_reader] TOKEN TYPE: installer
2023-09-10 07:48:21.163 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP POST Attempt: https://192.168.1.xx/auth/check_jwt
2023-09-10 07:48:21.163 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP POST Data: None
2023-09-10 07:48:21.422 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP POST https://192.168.1.xx/auth/check_jwt: <Response [200 OK]>: Valid token.
2023-09-10 07:48:21.423 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP POST Cookie: <Cookies[<Cookie sessionId=xx for 192.168.1.xx />]>
2023-09-10 07:48:21.425 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] We got a session cookie (sessionId), empty the auth header
2023-09-10 07:48:21.425 INFO (MainThread) [custom_components.enphase_envoy.envoy_reader] Updating endpoints ['endpoint_production_json_results']
2023-09-10 07:48:21.425 INFO (MainThread) [custom_components.enphase_envoy.envoy_reader] UPDATING ENDPOINT endpoint_production_json_results: https://{}/production.json?details=1
2023-09-10 07:48:21.425 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP GET Attempt #1: https://192.168.1.xx/production.json?details=1: Header:{} Cookies:<Cookies[<Cookie sessionId=xx for 192.168.1.xx />]>
2023-09-10 07:48:26.240 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetched from https://192.168.1.xx/production.json?details=1: <Response [200 OK]>: {"production":[{"type":"inverters","activeCount":19,"readingTime":1694324919,"wNow":151,"whLifetime":265542},{"type":"eim","activeCount":0,"measurementType":"production","readingTime":1694324920,"wNow":0.173,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.439,"rmsVoltage":249.252,"reactPwr":0.0,"apprntPwr":2.886,"pwrFactor":0.61,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0,"lines":[{"wNow":0.0,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.0,"rmsVoltage":236.237,"reactPwr":0.0,"apprntPwr":-0.0,"pwrFactor":0.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"wNow":0.113,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.186,"rmsVoltage":6.064,"reactPwr":0.0,"apprntPwr":1.125,"pwrFactor":0.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"wNow":0.06,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.253,"rmsVoltage":6.951,"reactPwr":-0.0,"apprntPwr":1.761,"pwrFactor":1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0}]}],"consumption":[{"type":"eim","activeCount":0,"measurementType":"total-consumption","readingTime":1694324920,"wNow":-1.502,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.121,"rmsVoltage":252.574,"reactPwr":-0.0,"apprntPwr":0.992,"pwrFactor":0.44,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0,"lines":[{"wNow":0.0,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.0,"rmsVoltage":236.236,"reactPwr":-0.0,"apprntPwr":-0.0,"pwrFactor":1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"wNow":-0.55,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.061,"rmsVoltage":9.485,"reactPwr":0.0,"apprntPwr":0.575,"pwrFactor":-0.96,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"wNow":-0.952,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.061,"rmsVoltage":6.854,"reactPwr":-0.0,"apprntPwr":0.416,"pwrFactor":-1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0}]},{"type":"eim","activeCount":0,"measurementType":"net-consumption","readingTime":1694324920,"wNow":-1.676,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.318,"rmsVoltage":252.574,"reactPwr":-0.0,"apprntPwr":-2.506,"pwrFactor":-1.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0,"lines":[{"wNow":0.0,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.0,"rmsVoltage":236.236,"reactPwr":-0.0,"apprntPwr":0.0,"pwrFactor":0.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0},{"wNow":-0.664,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.125,"rmsVoltage":9.485,"reactPwr":0.0,"apprntPwr":-1.185,"pwrFactor":-1.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0},{"wNow":-1.012,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.193,"rmsVoltage":6.854,"reactPwr":-0.0,"apprntPwr":-1.321,"pwrFactor":-1.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}]}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}
2023-09-10 07:48:26.242 INFO (MainThread) [custom_components.enphase_envoy.envoy_reader] - FETCHING ENDPOINT endpoint_production_json_results TOOK 4.8166 seconds
2023-09-10 07:48:26.243 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_production_json_results.storage[0]
2023-09-10 07:48:26.243 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_production_json_results.storage[0] did not return anything!
2023-09-10 07:48:26.243 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_ensemble_json_results[0].devices
2023-09-10 07:48:26.243 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_ensemble_json_results[0].devices did not return anything!
2023-09-10 07:48:26.243 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_home_json_results.enpower.grid_status
2023-09-10 07:48:26.243 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_home_json_results.enpower.grid_status did not return anything!
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_inventory_results.[?(@.type=='PCU')].devices[?(@.dev_type==1)]
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_inventory_results.[?(@.type=='PCU')].devices[?(@.dev_type==1)] did not return anything!
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_devstatus.pcu[?(@.devType==1)]
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_devstatus.pcu[?(@.devType==1)] did not return anything!
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_production_power.powerForcedOff
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_production_power.powerForcedOff did not return anything!
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_inventory_results.[?(@.type=='NSRB')].devices[?(@.dev_type==12)]
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_inventory_results.[?(@.type=='NSRB')].devices[?(@.dev_type==12)] did not return anything!
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_devstatus.pcu[?(@.devType==12)]
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_devstatus.pcu[?(@.devType==12)] did not return anything!
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_devstatus.nsrb
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_devstatus.nsrb did not return anything!
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_inventory_results.[?(@.type=='NSRB')].devices[?(@.dev_type==12)]
2023-09-10 07:48:26.244 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] the configured path endpoint_inventory_results.[?(@.type=='NSRB')].devices[?(@.dev_type==12)] did not return anything!
2023-09-10 07:48:26.245 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] EnvoyData.get(relay_info) -> {}
2023-09-10 07:48:26.245 INFO (MainThread) [custom_components.enphase_envoy.envoy_reader] Updating endpoints {'endpoint_home_json_results', 'endpoint_production_power', 'endpoint_devstatus', 'endpoint_info_results', 'endpoint_pdm_energy', 'endpoint_inventory_results', 'endpoint_production_json_results', 'endpoint_ensemble_json_results'}
2023-09-10 07:48:26.245 INFO (MainThread) [custom_components.enphase_envoy.envoy_reader] UPDATING ENDPOINT endpoint_home_json_results: https://{}/home.json
2023-09-10 07:48:26.245 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP GET Attempt #1: https://192.168.1.xx/home.json: Header:{} Cookies:<Cookies[<Cookie sessionId=xxx for 192.168.1.xx />]>
2023-09-10 07:48:41.909 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] TransportError: peer closed connection without sending complete message body (incomplete chunked read)
2023-09-10 07:48:41.911 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP GET Attempt #2: https://192.168.1.xx/home.json: Header:{} Cookies:<Cookies[<Cookie sessionId=xx for 192.168.1.xx />]>
2023-09-10 07:48:53.870 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] TransportError: peer closed connection without sending complete message body (incomplete chunked read)
2023-09-10 07:48:53.870 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP GET Attempt #3: https://192.168.1.xx/home.json: Header:{} Cookies:<Cookies[<Cookie sessionId=xxxxx for 192.168.1.xx />]>
2023-09-10 07:49:06.404 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] TransportError: peer closed connection without sending complete message body (incomplete chunked read)
2023-09-10 07:49:06.405 DEBUG (MainThread) [custom_components.enphase_envoy] Finished fetching envoy Envoy xxxxx data in 50.148 seconds (success: False)

Solved.... Think but loggin in the enphase manually (using generated token) yesterday late. This morning values are being reported again..

I have the same problem. The enphase is not recognized any more after the latest update. Manual login is not helping. login with a token from https://entrez.enphaseenergy.com/ is working.

@tommyloon The integration did not change and I am not aware of any changes in the latest HA that could cause this. Have you tried to power off/on your Envoy?

For me it is working fine with latest HA version, so that is not the issue. Otherwise, remove the integration from your HA setup and add it again via HACS.

It's working again. Unfortunately i don't know what helpt but I did multiple integration deletes, installs, different integration installs, a core update and reboots of the envoy. Keep up the good work


ReadAsync/SendAsync app crash

Hello,
I have many crash reports in AppCenter that are related to the GetAsync() and SendAsync() methods.

ModernHttpClient
ByteArrayListStream.ReadAsync (System.Byte[] buffer, System.Int32 offset, System.Int32 count, System.Threading.CancellationToken cancellationToken)
ModernHttpClient
ProgressStreamContent+ProgressStream.ReadAsync (System.Byte[] buffer, System.Int32 offset, System.Int32 count, System.Threading.CancellationToken cancellationToken)
System.IO
Stream.CopyToAsyncInternal (System.IO.Stream destination, System.Int32 bufferSize, System.Threading.CancellationToken cancellationToken)
System.Net.Http
StreamToStreamCopy+<>c.b__1_0 (System.Threading.Tasks.Task completed, System.Object innerSource)
System.Threading.Tasks
ContinuationTaskFromTask.InnerInvoke ()
System.Threading.Tasks
Task.Execute ()
System.Net.Http
HttpContent.LoadIntoBufferAsyncCore (System.Threading.Tasks.Task serializeToStreamTask, System.IO.MemoryStream tempBuffer)
System.Net.Http
HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts)

I have the relevant code lines inside a try/catch, but still it causes a crash (sometimes, when the connection times out i think):
try
{
    // ...
    var response = await WebApiClient.GetAsync(url);
    var responseJson = await response.Content.ReadAsStringAsync();
    // ...
}
catch (Exception ex)
{
    // ... handle it
}

Where WebApiClient is a global HttpClient instance:
public static HttpClient WebApiClient = new HttpClient(new NativeMessageHandler(false, new TLSConfig()))
        {
            Timeout = TimeSpan.FromSeconds(45),
            BaseAddress = new Uri(Misc.Constants.ApiUrlsBase.BaseUrl),
        });

Why would it make the app crash even tho i am using try/catch? Like I said, the error is related to timeouts:

I hope that someone may help me figure this out, thank you.

Hello @stesvis,
I had a similar problem with handling cancelation token parameter.
In summary is: If you are using /passing the cancellationToken as parameter don't set it's as default, if the cancellation token is equals to default, you must define, ommit or pass a null value as parameter. something like this:
public async Task<MyModel> GetMyModelAsync(CancellationToken ct = default){
var cts = new CancellationTokenSource();
if(EqualityComparer<CancellationToken>.Default == ct)
    ct = cts .Token;

return await    _client.sendAsync("https://somwhere.com/myModel", ct);
}

The max timeout you can set is 30 seconds (by platform specific limitations). Can you provide a reproduction demo?

After further testing i was able to simulate poor internet connection and reproduce this exception.
I think it's just related to weak internet.

I think the implementation of #72 can help with  this.


Integrate bzr vcs changes from #65.

I don't know much about bazaar, but this looks pretty reasonable to me.

:shipit: seems fine, thanks!


Added external link to tx donation visualizer

Quick fix for the donation visualizer. Externally hosted.

Hey @jezsmith720 is this still the right link? The one you submitted with bounties.network was different? Worth double-checking before I merge. Also, I can't seem to get the sound working on Mozilla, is there something I need to change/check to hear the beautiful sounds of magic internet money?

Hi mate, this URL is just a gh-page linked to the repository, https://github.com/jezsmith720/web3-tx-visualizer where you can find the code .  The original URL was https://bitwiseuk.xyz/web3-tx-visualizer/ , both the same so sup to you. In regards to Mozilla, make sure allow autoplay isn't being blocked (in the URL bar).


Putting the env validation in the config directory

The current env validation is under packages/auth directory which is not that much intuitive. It is better if it was under packages/config directory or other more intuitive directory.

Tracking this in #397.
I don't want a config package for env variables. The optimal solution is to keep the packages pure and only have envs in the apps


Voice Activity Detection sounds are missing in Docker

Looks like Voice Activity Detection sounds are missing in Docker.
Would be nice to include them in container too.

Is this a decision that was made on purpose/will not be reverse? If that is the case, I can just mount a volume with those sounds, but I think having the awake and done sound inside the container is simpler.


plan-and-execute example => TypeError: can only concatenate list (not "tuple") to list

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangGraph/LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangGraph/LangChain rather than my code.
[X] I am sure this is better as an issue rather than a GitHub discussion, since this is a LangGraph bug and not a design question.

Example Code
Simply running the [Plan-and-Execute](https://langchain-ai.github.io/langgraph/tutorials/plan-and-execute/plan-and-execute) code

Error Message and Stack Trace (if applicable)
{
	"name": "TypeError",
	"message": "can only concatenate list (not \"tuple\") to list",
	"stack": "---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[47], line 3
      1 config = {\"recursion_limit\": 50}
      2 inputs = {\"input\": \"what is the hometown of the 2024 Australia open winner?\"}
----> 3 async for event in app.astream(inputs, config=config):
      4     for k, v in event.items():
      5         if k != \"__end__\":

File /usr/local/lib/python3.11/site-packages/langgraph/pregel/__init__.py:1446, in Pregel.astream(self, input, config, stream_mode, output_keys, input_keys, interrupt_before, interrupt_after, debug)
   1441     print_step_writes(
   1442         step, pending_writes, self.stream_channels_list
   1443     )
   1445 # apply writes to channels
-> 1446 _apply_writes(
   1447     checkpoint,
   1448     channels,
   1449     pending_writes,
   1450     (
   1451         self.checkpointer.get_next_version
   1452         if self.checkpointer
   1453         else _increment
   1454     ),
   1455 )
   1457 # yield current values
   1458 if \"values\" in stream_modes:

File /usr/local/lib/python3.11/site-packages/langgraph/pregel/__init__.py:1758, in _apply_writes(checkpoint, channels, pending_writes, get_next_version)
   1756 if chan in channels:
   1757     try:
-> 1758         updated = channels[chan].update(vals)
   1759     except InvalidUpdateError as e:
   1760         raise InvalidUpdateError(
   1761             f\"Invalid update for channel {chan} with values {vals}\"
   1762         ) from e

File /usr/local/lib/python3.11/site-packages/langgraph/channels/binop.py:96, in BinaryOperatorAggregate.update(self, values)
     94     values = values[1:]
     95 for value in values:
---> 96     self.value = self.operator(self.value, value)
     97 return True

TypeError: can only concatenate list (not \"tuple\") to list"
}

Description
I'm running the code in a Jupyter notebook in a VS Code devcontainer on my macbook.
System Info
System Information

OS:  Linux
OS Version:  #1 SMP PREEMPT Wed Dec  6 17:08:31 UTC 2023
Python Version:  3.11.9 (main, Jul  2 2024, 21:48:22) [GCC 10.2.1 20210110]

Package Information

langchain_core: 0.2.12
langchain: 0.2.7
langchain_community: 0.2.7
langsmith: 0.1.84
langchain_google_vertexai: 1.0.6
langchain_groq: 0.1.6
langchain_openai: 0.1.14
langchain_text_splitters: 0.2.2
langchain_weaviate: 0.0.2
langchainhub: 0.1.20
langgraph: 0.1.6

Packages not installed (Not Necessarily a Problem)
The following packages were not found:

langserve

The tutorial omitted a pair of square brackets [] in the past_steps line.
The corrected version is as follows:
Fixed version:
    return {
        # "past_steps": (task, agent_response["messages"][-1].content),
        "past_steps": [(task, agent_response["messages"][-1].content)],
    }


Question: OAuth2 Endpoints for ASP.NET Core Authentication

I'm looking for an example how to connect an ASP.NET Core Web App to Casdoor (All-In-One docker image) for OAuth2 authentication.
I have this code in "startup.cs":
        services.AddAuthentication(options =>
        {
            options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
        })
        .AddCookie(options =>
        {
            options.LoginPath = "/signin";
            options.LogoutPath = "/signout";
        })
        .AddOAuth("CasdoorLocal", options =>
        {
            options.AuthorizationEndpoint = "http://localhost:8000/login/oauth/authorize/";
            options.TokenEndpoint = "http://localhost:8000/login/oauth/access_token/";
            options.UserInformationEndpoint = "http://localhost:8000/login/oauth/userinfo/";
            options.ClientId = "11111111111111111111";
            options.ClientSecret = "11111111111111111111111111111111111111111111111111111111111111111111";
            options.CallbackPath = "/signin-casdoor";
            options.ClaimsIssuer = "Casdoor";
            options.Scope.Add("email");
            options.Scope.Add("openid");
            options.Scope.Add("profile");
        })

I get a login and Casdoor redirects the browser to the callback address. But than I get a "500" status code in ASP.NET Core web app.
I'm not sure this depends on the endpoints. But I'm pretty much sure that the endpoints are not configured correctly.
No documentation about that in the internet.
Any ideas?
Thank you!

Hi, I think there may be a mistake in the following api address:

TokenEndpoint  should be http://localhost:8000/api/login/oauth/access_token
UserInformationEndpoint should be http://localhost:8000/api/userinfo
ClaimsIssuer maybe  iss, but I'm not sure if this field is the one I'm thinking of.

You can make the above changes, if you still get the error, please keep replying, I will follow up.

THIS WORKS!! Thank you!


Data 2 & 3 image not loading

Home Page data images not showimg

No description provided.

I want to work on this pls assign me

sure, but make sure that these images doesn't affect the design 👍

done 👍


Support search functionality on merit list tasks

Background
The proposal is to include a lookahead-style search box to find a specific candidate within the merit list.
User Story
As an Admin, I would like to be able to search for a candidate in the merit list so that I can check their score/adjust their outcome.
Feature(s) Description

[ ] Include a lookahead-style search box to find a specific candidate within the merit list
[ ] Admins must be able to search by candidate name, reference, NINo, or email

Acceptance Criteria
It's done when Admins can search for candidates on the merit list.
Definition of Done

[ ] User stories/acceptance criteria met
[ ] Internal reviews passed (feedback actioned)
[ ] User testing passed
[ ] Relevant technical documentation updated
[ ] User guidance updated
[ ] Deployed and merged without errors

User Testing Steps
Specify for users what is being tested (but not how to test it.)

Hey team! Please add your planning poker estimate with Zenhub @HalcyonJAC @tomlovesgithub @warrensearle


Is there a minLength for Strings?

I would like to ensure that a name field has more than a single character. I checked the documentation but could only find maxLength. Is there a minLength for Strings? I just tested minLength but it does not seem to work.

You are right, minLength is not implemented yet. It should be quite straightforward if you want to submit a PR ?


Moving python client to its own repo

As mentioned on the Aurora slack channel a few days ago, I'm currently ill equipped in terms of bandwidth and knowledge to maintain the Aurora python client.
Coupled with the fact that Python 2 will no longer be seeing security updates, I feel it's the right time to move the python client to its own repository. Hopefully, this opens up the opportunity for someone else to take over maintenance on their own schedule and bring it to Python 3.
I will do my best to simultaneously contribute new features and or changes necessary to allow the aurora python client to maintain compatibility with the later versions of the scheduler.

Done in #10


Figure out what is in datastore in IPFS repo, and if is state we want to share across nodes.

@zachferland commented on Wed Feb 27 2019
There is store called datastore in ipfs repo that is a key value stores. Looks like it stores more state specific to the node and state related to pubsub. Determine if we want this to be store in s3 as well, elsewhere or on the given node.

The datastore keeps some pubsub and dht data. It keeps lists of peers and CIDs they have for lookup, it also keeps IPNS records. This data doesn't matter much in our context right now.
Last remaining part that is unclear, is the datastore also keeps state for the node to manage the pin set,  have see more how this works to see if it should be shared between nodes.
At the very least, there is no data that has to be node instance specific, so could just share for now, optimize after.

Follow up, datastore as mentioned keeps data to manage pin set. Pin set, basically all the refs to objs/cids to not garbage collect, the pinset is stored as part of the actual dag now (vs just list in the past), so the data keeps a point to the node root that keeps links and represents pin set. There is definitely concurrency issues if shared between multiple node instances, for one keeping a shared view of the pin set, but then also pinning while gc is also running. Its not a visible issue at the moment as gc is not even implemented in the js ipfs node at the moment.

So summary, in the short/medium term is doesn't matter much what we do with the data inside datastore. Will be confirmed with actual implementation after. May have to be revisited much further in the future.

Follow up, datastore as mentioned keeps data to manage pin set.

As far as I know pinning is not implemented in js-ipfs yet. All objects are pinned by default.

yeah exactly! your comment is the good summary, basically was saying no garbage collection which gc would use that data in the datastore to decide what to not keep if it existed, so yup, since no gc implemented, everything is pinned by default.


Update to container images

these updates fix a couple of cve tickets we have

/retest

/retest

/retest


change the op model to servers provide ids and define ordering

The game works. There's a bit more latency but I don't find it too bad. It still needs more resiliency but now I want to make sure we have the network event model correct before hardening it too much with retries, etc. So you can now have players submitting events at the same time, and each game will just display in the order the server decides.

lgtm


Changing k8s -> K8s on homepage

Mirroring the style guide, as Kubernetes is a proper noun.

/lgtm
/approve


[Maintenance] Decoupling backend from internal sso

Relevant template
refarch-backend
Problem description (optional)
Currently the refarch-backend is coupled to the internal sso.
In example in the RequestResponseLoggingFilter the custom attribute user_name is used.
Desired solution
Decouple the refarch-backend from custom attributes and configurations and only use default OpenID and oAuth2 functionality.
Considered alternatives (optional)
No response
Additional context (optional)
No response
No duplicate

[X] I confirm that this issue is not a duplicate

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Is coupled with: https://github.com/it-at-m/refarch-templates/issues/258.


Falcon hanging on OS X Catalina (10.15)

Hello all !
I just discovered Falcon and was testing it locally on my Mac but Falcon is hanging and stops processing requests after few seconds.
Context
I created a config.ru file with this content (from examples/hello/config.ru directory):
run lambda { |env| Async.logger.info(self) {env['HTTP_USER_AGENT']}; [200, {}, ["Hello World"]] }

Then I'm starting Falcon with these options:
falcon serve -b http://localhost:9292 --count 1
Everything runs well at that point but when I'm testing request throughput with siege or ab Falcon just hangs and stops processing requests.
Used Siege command: siege -c 1 http://<IP_ADDRESS>:9292
Used AB command: ab -c 1 -n 10000 http://<IP_ADDRESS>:9292/
The strange thing is that if I wait like 30 seconds - 1 minutes, Falcon will start to process requests again (without restarting it).
I checked netstat -n | grep TIME_WAIT | wc -l, before running any benchmark tool it was giving my 1 and after running a benchmark tool for few seconds it was 20041.
It seems that connections are not "closed" (not sure if it's that :/), is there a solution for that ?
Thanks for the great work you are doing on this project + async-* projects, they are AWESOME :).
Cheers

Just tested with wrk tool and it seems to work well with it: wrk -t12 -c200 -d30s http://<IP_ADDRESS>:9292/
So, maybe it's just a bug in siege and ab tools :/

So, it's probably a bug which is odd because I use macos for development and never had this issue.
That being said, the macOS network stack, not to put too finer point on it, pretty wonky.
I've seen quite a bit of strage behaviour when making lots of sockets - unexplained slowdowns when using sockets, etc. wrk makes 8 connections and then reuses those connections for the duration of the benchmark, while ab makes one connection per request (HTTP/1.0 non persistent connections).
So, honestly, my gut reaction is, this is just another manifestation of macOS being buggy when dealing with lots of sockets.
If you have a moment, try running the async-io c10k spec several times in a row, then wait like 5 minutes and run it again. Every subsequent run should get less connections /second, but if you leave it a while it seems like eventually get gets back to normal.
Maybe the sockets do need to time out in the kernel and they have some kind of O(N) algorithm per socket?

The default ephemeral port range on macOS/OSX is 49152-65535, which is only 16,383 ports:
$ sysctl -a | grep portrange
net.inet.ip.portrange.lowfirst: 1023
net.inet.ip.portrange.lowlast: 600
net.inet.ip.portrange.first: 49152
net.inet.ip.portrange.last: 65535
net.inet.ip.portrange.hifirst: 49152
net.inet.ip.portrange.hilast: 65535

To increase the range, reduce the value of first and hifirst:
sudo sysctl -w net.inet.ip.portrange.first=32768
sudo sysctl -w net.inet.ip.portrange.hifirst=32768

References

https://serverfault.com/questions/145907/does-mac-os-x-throttle-the-rate-of-socket-creation
https://stackoverflow.com/questions/7938869/ab-is-erroring-out-with-apr-socket-recv-connection-refused-61
https://stackoverflow.com/a/30357879/537554
https://serverfault.com/a/145937/91715

@tleish thanks for your summary, I believe that addresses the original issue. I do a lot of development on MacOS and have not seen this issue in practice, however as far as benchmarking goes, I've definitely run into issues e.g. lack of file descriptors, etc.

@saluzafa if you want to test with ab the more recent versions have a -k option to use persistent connections. Maybe you can try that and let me know if that solves your problem.


Can I help maintain this crate?

I would love to use libarchive in one of my projects, but there are some usability issues with the current state of this crate. I would love to help fix those and get the results on crates.io.
It looks like @albel727 has already improved a lot, so I would start by merging those changes.
If you accept, I could I become co-owner on crates.io and co-maintainer here?

We were intending to do the same and ended not getting responses; we ended up creating a small lib which might be of use for you: https://docs.rs/compress-tools

Thanks, that looks nice. It's too high level for my requirements though.
Also, I'd really hope to get the libarchive crate on crates.io up to date under the original name.


[tuify] API change the return type of select_from_list()

Note - this is breaking change for existing dependents of this crate. We should have a migration strategy in place for them. Either preserve the existing API and add a new one, instead of this breaking change, or just submit a PR w/ the use of the new API to their repo (eg: ockam).
File: state.rs
https://github.com/r3bl-org/r3bl-open-core/blob/main/tuify/src/state.rs#L23-L49

Change selected_items type to be SelectModeResult. Please see below.
select_from_list function should return a SelectModeResult and not Option<Vec<String>>.
Write tests.

pub struct State {
    /// Does not include the header row.
    pub max_display_height: ChUnit,
    pub max_display_width: ChUnit,
    /// This is not adjusted for
    /// [scroll_offset_row_index](State::scroll_offset_row_index).
    pub raw_caret_row_index: ChUnit,
    pub scroll_offset_row_index: ChUnit,
    pub items: Vec<String>,
    pub selected_items: SelectModeResult,
    pub header: String,
    pub selection_mode: SelectionMode,
}

#[derive(Debug, PartialEq, Eq, Hash, Clone)]
enum SelectModeResult {
    Single(String),
    Multiple(Vec<String>),
    None,
}

impl Default for SelectModeResult {
    fn default() -> Self {
        SelectModeResult::Single("".to_string())
    }
}

Also add support to detect Ctrl+C. The behavior of pressing Ctrl+C is the same as pressing Esc.

https://github.com/r3bl-org/r3bl-open-core/blob/main/tuify/src/keypress.rs#L29
https://github.com/r3bl-org/r3bl-open-core/blob/main/tuify/src/keypress.rs#L50
https://github.com/r3bl-org/r3bl-open-core/blob/main/tuify/src/keypress.rs#L50
Need to use crossterm to detect Ctrl+C: https://github.com/crossterm-rs/crossterm/issues/655

@Harshil-Jani I removed both of us from this issue for the time being (since we weren't working on this issue immediately) because I wanted to post it to Rust user forum to invite contributors to work on some issues. But my account is still on hold with them and I wasn't able to post them 😀. Trying to get my account "unblocked".

@NadiaIdris Should we also add "Ctrl_C_Pressed" as a variant for the SelectModeResult enum?
enum SelectModeResult {
    Single(String),
    Multiple(Vec<String>),
    None,
    Ctrl_C_Pressed,
}

Also this would require adding support for trapping ctrl+c in the main event loop as well.

@nazmulidris What's the difference between None and Ctrl_C_Pressed? Currently if I am selecting something from single select component and press Esc it displays a text "user selected nothing".

You are right. There is no need for a Ctrl+C variant. Then all that needs to be added to main event loop is ctrl + c detection which should behave the same way as pressing esc.

Cool, can I give it a shot?

Just a quick question: Why is the default value an empty string instead of None?

Cool, can I give it a shot?

Great! I have assigned you to the issue. Let us know if you need any help on Discord https://discord.com/invite/rkBsNK83.

Just a quick question: Why is the default value an empty string instead of None?

@zoo868e You are correct. The default should be None 👍🏼


Database not necessary

The UI does not need to have a database so it would be better to delete it and refactor the code so that the logic around users do not use it

I thought about this, but there's still the standard Django requirements and Django's user model which are all db dependent.  I'd love to make it independent of a database, but I'm afraid I don't know how to drop all of these.

  Currently, user sessions are stored in the database (it's the default and it's easy) but I hear we can move that to Redis -- not something I've done before though.
There's a whole bunch of other stuff that Django assumes is there by default too, sites framework contenttypes etc.  I know I'm not personally using any of these features directly, but I don't know if there are other dependencies (such as Django itself) that expect that stuff to be around.
 Just to expand on what you said:

it's not a good idea to use redis instead of a db, just invest time in getting rid of any server-side storage completely. E.g. we can use encrypted signed cookies instead of a db.
sites, contenttypes etc. are not needed and not so many other things depend on the db. In practice, you just can't use models and anything related to them

Just as a reference, you might find this useful: https://github.com/ministryofjustice/money-to-prisoners-common/tree/master/mtp_common/auth


Use OpenDNS for public IP lookup

An outage of ifconfig.me caused the script to fail.
I recommend to switch to a service with presumably higher availability standards, like OpenDNS.
Additionally explicit pinning to IPv4 address (who knows when ifconfig.me will enable IPv6 support)

lgtm
nice improvement. thanks!


introduce initialMmapSize

InitialMmapSize is the initial mmap size of the database in bytes.
Read transaction is guaranteed not to block write transaction
if the mmap size required by the database is smaller than
the initial mmap.

/cc @ngaut Probably you are also interested in this one?

@xiang90 were you able to test this out on etcd?

@benbjohnson We will test it before early next week. Sorry for the delay.

@benbjohnson Yes. We tested it in both etcd and a test case. It works well. See #472 for more information. @gyuho is taking over this.


Pagination issue with onPageChange

Pagination code here:
https://github.com/uber-web/baseui/blob/master/src/pagination/pagination.js#L79
Why put onPageChange and onNextClick trigger here both, if user set both, it will trigger twice.
Should we only set onPageChange only?

Heya! Thanks for bringing this up.
This is intended behavior, since onPageChange is supposed to signal when the page is changing, and onNextClick etc is supposed to act as the onClick listener for the button itself. So there are two distinct events happening, the currentPage is changing and the button is being clicked on.
There's a different bug here though, we should be spreading ...args when calling onNextClick...haha.

Thanks Anh!


Consider renaming

Having a GitHub. prefix makes it look like it's an official GitHub project, which it's not.
The fact that the c# project name, nuget package id and github repository names are all different is quite bizzare aswell.
My vote goes for ActionsToolkitSharp.

Yeah, I was back and forth a lot on the naming. The GitHub. prefix isn't reserved, so I went with that. What about GitHubActions. instead?

GitHubActions. still sounds too generic, I feel like having a more unique name for the project would be both less confusing and better for searchability.

Yeah, I'm good with that. I'll make the name change soon. Thanks for the suggestion.


Annotations do not work on typealias.

I tried to do something like:
// sourcery: Interactor
public typealias DeleteCardInteractor = ApolloMutationInteractor<
    DeleteCardInteractorInput,
    BasicMutationResult
>

The {{ type.annotations }} will give the following info for annotations
Typealias: aliasName = DeleteCardInteractor, typeName = ApolloMutationInteractor<
    DeleteCardInteractorInput,
    BasicMutationResult
>, parentName = nil, name = DeleteCardInteractor

However, If I try using something like:
// sourcery: Interactor
extension DeleteCardInteractor {}

It will bring
{
    Interactor = 1;
}

@amadeu01 typealias isn't a proper type, it doesn't extend Annotated and doesn't have corresponding annotation dictionary


Allow for retrying of GetLogs in test, in case k8s pods were evicted

This may fix intermittent failures of TestGetLogs

@msteffen this is ready for review. Two open questions:

Should we apply a backoff for the call to GetLogs when stats is enabled? Presently I do, but if I'm reading the code right, it shouldn't be necessary (but maybe it's a good idea anyways, for some other reason?)
Should we apply a backoff to get the logs for a jobs/datums? I'm pretty sure the answer is no, but wanted to double check.

Given your intuition, adding a backoff for jobs/datums makes sense. My understanding of the code (which may be wrong) is that jobs/datums weren't prone to failure due to pod eviction since it wasn't pulling logs from the pods, but that may be wrong.


Update docs

This PR addresses #336 (from pysal/submodule_template#23)

@weikang9009 @knaaptime
What's going on here? Any ideas?
The program 'nosetests' is currently not installed.
To run 'nosetests' please ask your administrator to install the package 'python-nose'.

Looks great! I think you can safely remove doc/ directory since the docs website is no longer hosted with readthedocs.

@weikang9009 , so I can completely remove the doc/ directory from both the remote and my local copy?

Looks great! I think you can safely remove doc/ directory since the docs website is no longer hosted with readthedocs.

@weikang9009 , so I can completely remove the doc/ directory from both the remote and my local copy?

That's correct. Since you are hosting with github page, all you need is the docsrc/ and doc/

i think you need docs (and docsrc) but not doc

docsrc/ and doc/

Do you mean docsrc/ and docs/

yes. just corrected it.

@weikang9009 @knaaptime
What's going on here? Any ideas?
The program 'nosetests' is currently not installed.
To run 'nosetests' please ask your administrator to install the package 'python-nose'.

Also getting
The program 'twine' is currently not installed.
To run 'twine' please ask your administrator to install the package 'twine'

in the basic tarball builds. Seems like I may have screwed something up, can't find how anything (substantive) has changed. Maybe it's just a temporary Travis issue?

that looks like a different travis config to me? on line 383 its doing pip install -e . --no-deps --force-reinstall
insteead of using conda to install from the requirements_* files

oh wait, nvm looks like that line comes shortly after.
i dunno...

Yeah, seems like something is going on in Travis ATM... Will revisit this later.

It's strange that only spaghetti is failing right now though, but not any other submodules.

- sphinx_bootstrap_theme[version='>=0.7.0'] seems to be causing the issue.
301 Solving environment: failed
302
303 PackagesNotFoundError: The following packages are not available from current channels:
304
305  - sphinx_bootstrap_theme[version='>=0.7.0']
306
307 Current channels:
308
309  - https://conda.anaconda.org/conda-forge/linux-64
310  - https://conda.anaconda.org/conda-forge/noarch
311  - https://repo.anaconda.com/pkgs/main/linux-64
312  - https://repo.anaconda.com/pkgs/main/noarch
313  - https://repo.anaconda.com/pkgs/r/linux-64
314  - https://repo.anaconda.com/pkgs/r/noarch
315
316 To search for alternate channels that may provide the conda package you're
317 looking for, navigate to
318
319    https://anaconda.org
320
321 and use the search bar at the top of the page.
322
323
324 Could not find conda environment: TEST

ah, thats my bad. the newest sphinx boostrap theme isnt on conda yet. you can install it from pip in the travis build so you can keep the environment.yml untouched for when its actually conda released

Pull Request Test Coverage Report for Build 1972

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 95.843%

Totals

Change from base Build 1949:
-0.2%

Covered Lines:
11940

Relevant Lines:
12312

💛  - Coveralls

Pull Request Test Coverage Report for Build 1972

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 95.843%

Totals

Change from base Build 1949:
-0.2%

Covered Lines:
11940

Relevant Lines:
12312

💛  - Coveralls

I forgot to actually rebuild the docs... Getting a build error.
# Sphinx version: 1.8.5
# Python version: 3.6.7 (CPython)
# Docutils version: 0.15.2 release
# Jinja2 version: 2.10.3
# Last messages:
#   reading sources... [ 72%] generated/spaghetti.Network.savenetwork
#
#   reading sources... [ 75%] generated/spaghetti.Network.simulate_observations
#
#   reading sources... [ 78%] generated/spaghetti.Network.snapobservations
#
#   reading sources... [ 81%] generated/spaghetti.Network.split_arcs
#
#   reading sources... [ 84%] generated/spaghetti.PointPattern
#
# Loaded extensions:
#   sphinx.ext.mathjax (1.8.5) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/mathjax.py
#   alabaster (0.7.12) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/alabaster/__init__.py
#   sphinx.ext.autodoc (1.8.5) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py
#   sphinx.ext.autosummary (1.8.5) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/autosummary/__init__.py
#   sphinx.ext.viewcode (1.8.5) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/viewcode.py
#   sphinxcontrib.bibtex (unknown version) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinxcontrib/bibtex/__init__.py
#   sphinx.ext.doctest (1.8.5) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/doctest.py
#   sphinx.ext.intersphinx (1.8.5) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/intersphinx.py
#   numpydoc (0.8.0) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/numpydoc/__init__.py
#   matplotlib.sphinxext.plot_directive (3.1.2) from /Users/user/miniconda3/envs/env/lib/python3.6/site-packages/matplotlib/sphinxext/plot_directive.py
Traceback (most recent call last):
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/cmd/build.py", line 304, in build_main
    app.build(args.force_all, filenames)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/application.py", line 341, in build
    self.builder.build_update()
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 347, in build_update
    len(to_build))
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 360, in build
    updated_docnames = set(self.read())
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 468, in read
    self._read_serial(docnames)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 490, in _read_serial
    self.read_doc(docname)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 534, in read_doc
    doctree = read_doc(self.app, self.env, self.env.doc2path(docname))
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/io.py", line 318, in read_doc
    pub.publish()
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/core.py", line 217, in publish
    self.settings)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/readers/__init__.py", line 71, in read
    self.parse()
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/readers/__init__.py", line 77, in parse
    self.parser.parse(self.input, document)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/parsers.py", line 88, in parse
    self.statemachine.run(inputstring, document, inliner=self.inliner)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 171, in run
    input_source=document['source'])
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2771, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection
    node=section_node, match_titles=True)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
    node=node, match_titles=match_titles)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2346, in explicit_markup
    self.explicit_list(blank_finish)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2376, in explicit_list
    match_titles=self.state_machine.match_titles)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 319, in nested_list_parse
    node=node, match_titles=match_titles)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2649, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2356, in explicit_construct
    return method(self, expmatch)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2099, in directive
    directive_class, match, type_name, option_presets)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2148, in run_directive
    result = directive_instance.run()
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/autodoc/directive.py", line 121, in run
    documenter_options = process_documenter_options(doccls, self.config, self.options)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/autodoc/directive.py", line 73, in process_documenter_options
    return Options(assemble_option_dict(options.items(), documenter.option_spec))
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/docutils/utils/__init__.py", line 329, in assemble_option_dict
    options[name] = convertor(value)
  File "/Users/user/miniconda3/envs/env/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 82, in members_option
    return [x.strip() for x in arg.split(',')]
AttributeError: 'bool' object has no attribute 'split'

Try removing conda install requirements_docs.txt (https://github.com/pysal/spaghetti/blob/master/.travis.yml#L54) from the travis file. We do not need the docs packages for travis testing

Try removing conda install requirements_docs.txt from the travis file. We do not need the docs packages for travis testing.

This does not seem to be the issue as the current (spaghetti) build is passing in Travis. The error above happens when attempting make html locally.

I see. Maybe try updating your local sphinx? You are using a pretty old version.
Conda install the docs dependencies for the travis testing seems to be redundant - and could slow down the testing process

I see. Maybe try updating your local sphinx? You are using a pretty old version.

Perfect solution!


Issue with the hlint checker

Hello.
When using the hlint checker, sometimes the quickfix window does not show up (and sometimes it does).
When running with neomake_verbose = 3, here is what I see:
"src/Escape.hs" 460L, 21114C written
Neomake: Starting: hlint […]/src/Escape.hs
Press ENTER or type command to continue

And typing :messages shows me the following:
"src/Escape.hs" 460L, 21114C written
Neomake: Starting: hlint […]/src/Escape.hs
Neomake: hlint stdout: […]/src/Escape.hs:336:13: Suggestion: Redundant bracket
Neomake: hlint stdout: Found:
Neomake: hlint stdout:   (traceShow lastTrueStatement) $
Neomake: hlint stdout:     statementEscapes lastTrueStatement || lastFalseStatementEscapes
Neomake: hlint stdout: Why not:
Neomake: hlint stdout:   traceShow lastTrueStatement $
Neomake: hlint stdout:     statementEscapes lastTrueStatement || lastFalseStatementEscapes
Neomake: hlint stdout:
Neomake: hlint stdout: 1 hint
Neomake: hlint stdout:
Neomake: hlint stdout done.
Neomake: hlint processing 10 lines of output
Neomake: hlint complete with exit code 1
Neomake: File-level errors cleaned in buffer 16

It seems related to issue #286.
Thanks to fix this issue.

Oh great, this was fixed :+1: :beers:


[BitSail][Connector] Migrate rocketmq Sink connector to V1 interface

Is your feature request related to a problem? Please describe
RMQ Source was completed, we need to migrate sink to V1 interface as well.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

already done

please assign to me, thx!

@garyli1019 @lichang-bd
I submitted a PR for this issue, please help me review the code,thx!

I hava finished my pr, please help me review the code,thx!   @garyli1019 @lichang-bd @liuxiaocs7


Add oAuth support

Github's API offers authentication via OAuth, but Hubroid only uses authentication by username and password.
I would prefer OAuth over the basic HTTP authentication used by Hubroid. Providing a third party App with my Github credential and storing the credentials on my mobile is a security issue.

Agreed. I definitely want to get around to adding OAuth support also.
Sent via Hubroid

Alright, I'm actively working on this. Hopefully I get something working tomorrow.

Awesome! I should find some time to test run it once you have something running.
Sent via Hubroid

@phw As you can see, I've made a commit that adds in OAuth authentication. It works well aside from private activity feeds, which only accept http basic auth. I'm talking with @kevinsawicki about this.

Marking this as in need of an API. Once the new Events API is released and the egit-github library is updated to support it, Hubroid will be able to move over to OAuth 100%.

The egit-github library now supports the Event API and things are in place for Hubroid to move to OAuth, will get this out the door soon. :)

Closed by a27ce16339eac0ae0fb1affec02b99f389da8a83.
I'll have to see about cleaning up the login interface now.


virtcontainers: fix sandbox startup sequence

Wait the event of agent open the virt serial port frontend before
send request to agent.
Fixes #1020
Signed-off-by: NingBo<EMAIL_ADDRESS>

/test

I'd like to have a single point to wait for the agent to be up, which is the agent's check() request ATM. I'm not sure the waiting in the PR makes sense because we don't just send any request through the serial port right after launching qemu. Instead of waiting, we would use the time to do other things at the runtime and also possibly launch the proxy daemon. So the patch will be adding unneeded delays for no obvious gains IMHO.
So at best if you do want to wait for the event, I think it should be done in agent.go startSandbox() after launching the proxy and before sending check() request.

I'd like to have a single point to wait for the agent to be up, which is the agent's check() request ATM. I'm not sure the waiting in the PR makes sense because we don't just send any request through the serial port right after launching qemu. Instead of waiting, we would use the time to do other things at the runtime and also possibly launch the proxy daemon. So the patch will be adding unneeded delays for no obvious gains IMHO.
So at best if you do want to wait for the event, I think it should be done in agent.go startSandbox() after launching the proxy and before sending check() request. That should also fix #1020.

I think you are right, waiting event in waitSandbox maybe not suitable, i will update commit later.

The patch is not completely wrong, but seems incomplete to me. Problem is, I don't know if we can consider the agent ready because the serial port is opened. And also what about the vsock use case?

@sboeuf the function name waitAgent and waiting event in waitSandbox maybe not suitable, i just want to wait the serial port has appeared already, otherwise frontend will not receive any data send to backend(send request via UNIX socket kata-proxy listened ).
My initial thought was that the serial port must has appeared when Guest OS start agent service, as @bergwolf said, this really does lead to long time than before.

@sboeuf @bergwolf I have updated the commit, please help review.

@BetaXOi Please could you rebase?

@caoruidong @bergwolf Rebased on master.

@BetaXOi ping, any updates? Thx!

Hi @BetaXOi - please let us know if you will be revisting and fixing this PR, or it may have to be closed or 'put up for adoption' :-)
As a minimum it now needs a rebase as the master branch code has moved on...


Update elastic4s-client-esjava to 7.12.2

Updates com.sksamuel.elastic4s:elastic4s-client-esjava from 7.12.0 to 7.12.2.
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 = "com.sksamuel.elastic4s", artifactId = "elastic4s-client-esjava" } ]

labels: library-update, semver-patch

Superseded by #661.


Documentation lacks information on states and attributes

It's come up a number of times on the forums, and in Discord, but the documentation while detailed on how to set up a component, says nothing about what the possible states, and attributes, are.
It would be good to get some standards agreed and set for documenting what the possible states and attributes for each component are, so that people understand how they can interact with it.

The generic media_player page (which is difficult to find from the main home-assistant.io page) could just include the standard attributes and states, and platform specific states and attributes could live in their respective component pages, along with a link to the generic page.


List won´t render with preceding text

Version: 6.7.4
If a list is being preceded by a paragraph, then the list won´t render normally. If there is at least one empty new line between them, the list will render.
This will render normally:
[Markdown](http://daringfireball.net/projects/markdown/) lets you write content in a really natural way.

  * You can have lists, like this one
  * Make things **bold** or *italic*
  * Embed snippets of `code`
  * Create [links](/)
  * ...

But this won´t render the list:
[Markdown](http://daringfireball.net/projects/markdown/) lets you write content in a really natural way.
  * You can have lists, like this one
  * Make things **bold** or *italic*
  * Embed snippets of `code`
  * Create [links](/)
  * ...

Hey there - you need a newline between to denote that the first line is a separate paragraph per the markdown spec: https://daringfireball.net/projects/markdown/syntax#p

Sorry for kicking a dead issue, but I just bumped into this as well. I know what the spec says, but neither commonmark nor GFM require an empty line. Since all the cool kids wanna do what Github does, I'm starting to see this out in the wild more, sometimes from systems I don't control.
Since you've already forked simple-markdown, maybe this could be an optional render flag or something? That would prevent the need to preprocess.


Improve tablet layout

Combine article and feed list

https://github.com/jocmp/capyreader/discussions/499#discussioncomment-11491675

Combined list feeds are done as of 2024.12.1088-dev.


DCD-889: Add version tagging and ASG tag permissions

This adds commit & timestamp tagging to the Jira QS, and grants the nodes the ability to manipulate the ASG tags to persist run-time metadata.

Not that I can see. Tagging is inconsistent in AWS; not all resources support tagging, and the format is different in some places. Only the ASG supports propagating tags.

Once the services PR is on master we can update the submodule and call it from any of the quickstarts. I'll also add a pre-commit hook.


Functions whose arguments is less than arity should be partially applied

When a function of arity n is applied with arguments of length m < n, a new function should be returned with partially applied arguments and a reduced arity. This will allow for a sort of currying in the language.
Thus
let a = fn (a, b, c) {}
let b = a(1, 2)

will make b a function of arity 1 and already partially applied with values 1, 2.

Fixed in commit e086a32858fab60d3f5454214ed70b0f40cdaebc


Feat(CUST-CPC-1188): Users can register on the website using a sign up page

JIRA: link to jira ticket
Context:
What is the ticket about and why are we doing this change.
Does this PR change the .vscode folder in petclinic-frontend?:
It doesn't do any changes to the vscode folder
Reviewers need to check for any changes to the
.vscode folder and add a comment about it to their review comments.
Changes

Added sign up page and relevant css
Created V2 functions in the api gateway for createUser
Created V2 functions in the api gateway for verifyUser
Added EmailSendingFailedException
Added 3 tests in new class v2/AuthControllerUnitTest
Added 3 tests in new class v2/domainclientlayer/AuthServiceClientControllerIntegrationTest
Added 1 test in new class businesslayer/AuthServiceUserServiceTests
Changed from using the old emailing service to the new one to send verification email
Removed a cart post api request that was added in the UserServiceImpl in auth service as the person implementing added it and pulled without testing and it never functioned, so it was breaking sign up. I have contacted and will be fixing this problem in a future pull request.
Added Models in the backend to communicate with the new emailing service  (DirectEmailModelRequestDTO and EmailModelResponseDTO) as well as added the domain client for it
Added Models needed in the front end to send the user and customer details to the backend (RegisterModel and OwnerRequestModel)
Changed the redirection of the verification link to the new front end after the token is verified
Changed the relevant links on the website to go to the sign up page
Made the page reload on logout so it deletes user info and you can't just press back and be logged in again
temporarily reduced jacoco testing minimum to 85 in auth service

Before and After UI (Required for UI-impacting PRs)
Before there was no sign up page, now:

It also has instant validation, if you modify a field like write something and remove it, it will tell you a field is required, and as you write your password it will tell you what is required. Max limit of character for everything but email: 60, max for email: 320, Phone needs to be an uninterrupted 10 numbers, email is checking for the email format and password is checking for "Password must contain at least 8 characters, including an uppercase letter, a lowercase letter, a number, and a special character."

Loading:

Here is a successful email being sent:
On the user's end:

On the emailing end:

Dev notes
IF YOU ARE USING AN ANTIVIRUS
The antivirus might be blocking your access to the mailing API, if the email is not being sent after submitting the form, please make sure to either grant access to the api in your antivirus (The SMTP server) or disable it while you are trying to sign up.
The auth-service minimum jacoco testing has been temporarily lowered to 85, I am waiting for another PR to be able to do the remaining tests

The logging you added to the emailing-service should be removed so it does not print out in the logs confidential data

Thank you, it has been fixed!

Great work! Just wondering why not use the shared axios instance and the new endpoint in the request in signup.tsx. Everything else looks good to me.

You're right, I didn't use the axios instance! But I noticed that a lot of pages are also not using it. We should do a bug fix where we change all of them to the axios instance.

Great work! Just wondering why not use the shared axios instance and the new endpoint in the request in signup.tsx. Everything else looks good to me.

You're right, I didn't use the axios instance! But I noticed that a lot of pages are also not using it. We should do a bug fix where we change all of them to the axios instance.

Please go ahead and enter this issue into Jira.


style=endnotes and tagging error

Consider the following document:
\DocumentMetadata{
  testphase={phase-III} ,
  pdfversion=2.0,
  pdfstandard=ua-2,
  lang=en,
}

\documentclass{book}

\usepackage{postnotes}

\postnotesetup{style=endnotes}
% \postnotesetup{
%   format =
%     {
%       % \footnotesize
%       \setlength { \rightskip } { 0pt   }
%       \setlength { \leftskip  } { 0pt   }
%       \setlength { \parindent } { 1.8em }
%     } ,
% }

\usepackage{lipsum}
\usepackage{hyperref}
\hypersetup{hidelinks}

\title{Title}

\begin{document}

\chapter{Chapter 1}

\lipsum[1]\postnote[label=en:mark:1]{\label{en:text:1}\lipsum[2]}

\postnoteref{en:text:1}\par
\postnoteref{en:mark:1}

\lipsum[3]\postnote{\lipsum[4]}

\lipsum[3]\postnote{\lipsum[4]}

\chapter{Chapter 2}

\lipsum[5]\postnote[label=en:mark:3]{\label{en:text:3}\lipsum[6]}

\postnoteref{en:text:3}\par
\postnoteref{en:mark:3}

\lipsum[7]\postnote{\lipsum[8]}

\lipsum[7]\postnote{\lipsum[8]}

\chapter{Chapter 3}

\lipsum[1]\postnote{\lipsum[2]}

\lipsum[3]\postnote{\lipsum[4]}

\lipsum[5]\postnote{\lipsum[6]}

\printpostnotes

\end{document}

Compiling with pdflatex, this document errors with:
[7]

./document.tex:61: Package tagpdf Error: required tag missing - mcid 117

Type <return> to continue.
 ...

l.61 \printpostnotes

Bisecting the code shows the  trigger to this mc mismatch is the call to \footnotesize in the format option of the endnotes style. Indeed, uncommenting:
\postnotesetup{
  format =
    {
      % \footnotesize
      \setlength { \rightskip } { 0pt   }
      \setlength { \leftskip  } { 0pt   }
      \setlength { \parindent } { 1.8em }
    } ,
}

Brings the document back to working condition.
The format option value is called right after the postnotes/printlist/begin tagging plug:
https://github.com/gusbrs/postnotes/blob/394fdf1cff4e07c942f11d7e04e09eebf596f38f/postnotes.dtx#L1581-L1582
which currently essentially disables para/tagging.
I played with some order alternatives a little, but I don't really understand why the call to \footnotesize has any bearing on things, so I'm not sure on how to proceed. If anyone has any thoughts on this, it'd be most welcome.

Further investigation shows that changing \footnotesize to \small brings the document back to working:
\postnotesetup{
  format =
    {
      % \footnotesize
      \small
      q\setlength { \rightskip } { 0pt   }
      \setlength { \leftskip  } { 0pt   }
      \setlength { \parindent } { 1.8em }
    } ,
}

Also if, instead of doing anything in format (comment the block again), if we simply make the first note of chapter 1 longer:
\lipsum[1]\postnote[label=en:mark:1]{\label{en:text:1}\lipsum[2-3]}

the error goes away.
Which leads me to conclude this is not related to the content of format but rather some page crossing condition reached by (un)luck in the first document. This may indicate I'm not handling the mcs like I should. (but there's also the possibility of an upstream problem?)

Further test of interest: no error with lualatex.

Tracking the code path.
The error is one of mc-tag-missing, issued by \__tag_check_mc_tag:N. Presumably the call from tagpdf-mc-code-generic.sty.
So I tried to follow the mcs. I included calls to \iow_term:e { OI!~\__tag_get_mc_abs_cnt: } in the postnotes/printmark/begin plug and to \iow_term:e { OI!!~\__tag_get_mc_abs_cnt: } in the postnotes/printtext/begin plug. As far as \tag_mc_begin:n postnotes issues, these come in immediate sequence. And I get in the log:
OI! 114
[... other stuff "not OI"]
OI!! 119

In other words, whoever is creating \tag_mc_begin:n with id 117, it is not postnotes.
Considering the postnotes/printmark/end closes the mc and the struct postnotes/printmark/begin has opened, I'm not sure what postnotes could do differently.
In other words, I'm still at a loss.

The page boundary condition seems to be that the note number 7 (the first \postnote on chapter 3) has only one line remaining to be typeset on page 8.
If we have the first note of chapter 3 be:
\lipsum[1]\postnote{\lipsum[2] aaa}

we still get only one dangling line on page 8, and the error still occurs. However, if we do:
\lipsum[1]\postnote{\lipsum[2] aaa aaa}

we get a second line, and the error is gone.

More testing.
First, the following document:
\DocumentMetadata{
  testphase={phase-III} ,
  pdfversion=2.0,
  pdfstandard=ua-2,
  lang=en,
  debug={log=v,tagpdf},
}

\documentclass{book}

\usepackage{lipsum}
\usepackage{hyperref}
\hypersetup{hidelinks}
\usepackage{indentfirst}

\title{Title}

\begin{document}

% This generates the same situation but, alas, not mc error...
\chapter*{Notes}

\begingroup
\footnotesize
\setlength{\rightskip}{0pt}
\setlength{\leftskip}{0pt}
\setlength{\parindent}{1.8em}

\lipsum[2]\par
\lipsum[4]\par
\lipsum[4]\par
\lipsum[6]\par
\lipsum[8]\par
\lipsum[8]\par
\lipsum[2]\par
\lipsum[4]\par
\lipsum[6]

\endgroup

\end{document}

generates the same paragraphs, with the same page break. Since this document runs without problems, there must be some interaction.
On the other hand, simply disabling hyperref in the problematic document also brings it to working condition. Indeed, enabling debug={log=all,tagpdf}, we get the following log snippet:
The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{Link}{Link}}
>  {{endnotelabel}{Lbl}}
>  {{endnote}{FENote}}
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

tagpdf DEBUG Info: MC begin inserted with options: tag=Link [on line 63]

Package tagpdf Info: Parent-Child 'Link' --> 'MC'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Link/pdf2' --> 'MC' on line 63

tagpdf DEBUG Info: MC end inserted [on line 63]

Package tagpdf Info: closing structure 116 tagged /Link

tagpdf DEBUG Info: Struct end inserted [on line 63]

The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{endnotelabel}{Lbl}}
>  {{endnote}{FENote}}
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

Package tagpdf Info:  has been removed from the mc stack

The sequence \g__tag_mc_stack_seq is empty
> .

tagpdf DEBUG Info: MC begin inserted with options: tag=\l__tag_tmpa_tl , [on
(tagpdf DEBUG)     line 63]

./document.tex:63: Package tagpdf Error: required tag missing - mcid 117

Type <return> to continue.
 ...

l.63 \printpostnotes

LaTeX does not know anything more about this error, sorry.

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

Package tagpdf Warning: tag  is not known

I'm not sure I can read this well. But, as far as I do, after Link is closed, one too many mcs get removed from the stack. For some reason, at this point, in this case...

More info. Since this is happening because of some condition triggered by the note content of note 7, I added an inspection point for \seq_show:N \g__tag_mc_stack_seq at the end of the tagsupport/postnotes/printtext/end. And I think I found the empty tag.
The sequence \g__tag_mc_stack_seq is empty
> .
<recently read> }

l.63 \printpostnotes

Package tagpdf Info: closing structure 109 tagged /endnote

tagpdf DEBUG Info: Struct end inserted [on line 63]

The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

Package tagpdf Info: Parent-Child 'Sect' --> 'FENote'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Sect/pdf2' --> 'endnote/user' on line 63

tagpdf DEBUG Info: Struct 114 begin inserted with options:
(tagpdf DEBUG)     tag=endnote,attribute-class=EndnoteType,label={postnote.\l_p
ostnotes_print_note_id_tl
(tagpdf DEBUG)     },ref={postnotemark.\l_postnotes_print_note_id_tl },
(tagpdf DEBUG)     [on line 63]

The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{endnote}{FENote}}
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

Package tagpdf Info: Parent-Child 'FENote' --> 'Lbl'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'FENote/pdf2' --> 'endnotelabel/user' on
(tagpdf)             line 63

tagpdf DEBUG Info: Struct 115 begin inserted with options: tag=endnotelabel
(tagpdf DEBUG)     [on line 63]

The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{endnotelabel}{Lbl}}
>  {{endnote}{FENote}}
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

tagpdf DEBUG Info: MC begin inserted with options: tag=Lbl [on line 63]

Package tagpdf Info: Parent-Child 'Lbl' --> 'MC'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Lbl/pdf2' --> 'MC' on line 63

The sequence \g__tag_mc_main_marks_seq contains the items (without outer
braces):
>  {b+}
>  {113}
>  {113}
>  {text}.

tagpdf DEBUG Info: MC begin inserted with options: artifact [on line 63]

tagpdf DEBUG Info: Tagging suspended
(tagpdf DEBUG)     level: 0 ==> 1, label: headfoot [on line 63]

tagpdf DEBUG Info: Tagging resumed
(tagpdf DEBUG)     level: 1 ==> 0, label: headfoot [on line 63]

tagpdf DEBUG Info: MC end inserted [on line 63]

tagpdf DEBUG Info: MC begin inserted with options: artifact [on line 63]

tagpdf DEBUG Info: Tagging suspended
(tagpdf DEBUG)     level: 0 ==> 1, label: headfoot [on line 63]

tagpdf DEBUG Info: Tagging resumed
(tagpdf DEBUG)     level: 1 ==> 0, label: headfoot [on line 63]

tagpdf DEBUG Info: MC end inserted [on line 63]

[7]

Package tagpdf Info:  has been pushed to the mc stack

The sequence \g__tag_mc_stack_seq contains the items (without outer braces):
>  {}.

tagpdf DEBUG Info: MC end inserted [on line 63]

Package tagpdf Info: Parent-Child 'Lbl' --> 'Link'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Lbl/pdf2' --> 'Link/pdf2' on line 63

tagpdf DEBUG Info: Struct 116 begin inserted with options: tag=Link
(tagpdf DEBUG)     [on line 63]

The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{Link}{Link}}
>  {{endnotelabel}{Lbl}}
>  {{endnote}{FENote}}
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

tagpdf DEBUG Info: MC begin inserted with options: tag=Link [on line 63]

Package tagpdf Info: Parent-Child 'Link' --> 'MC'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Link/pdf2' --> 'MC' on line 63

tagpdf DEBUG Info: MC end inserted [on line 63]

Package tagpdf Info: closing structure 116 tagged /Link

tagpdf DEBUG Info: Struct end inserted [on line 63]

The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{endnotelabel}{Lbl}}
>  {{endnote}{FENote}}
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

Package tagpdf Info:  has been removed from the mc stack

The sequence \g__tag_mc_stack_seq is empty
> .

tagpdf DEBUG Info: MC begin inserted with options: tag=\l__tag_tmpa_tl , [on
(tagpdf DEBUG)     line 63]

./document.tex:63: Package tagpdf Error: required tag missing - mcid 117

Type <return> to continue.
 ...

l.63 \printpostnotes

LaTeX does not know anything more about this error, sorry.

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

It occurs immediately after the page is shipped out, a selection:
[7]

Package tagpdf Info:  has been pushed to the mc stack

The sequence \g__tag_mc_stack_seq contains the items (without outer braces):
>  {}.

That's the only place in the document where an empty value ends up in the mc stack. And it seems to be the one.
I still don't know why the document leads to this result. But, at this point, the accumulated information suggests that this mc is really not in postnotes control...

A little more, in line with the previous comment. I examine the logs compiling with lualatex (with debug={log=vv,tagpdf},) which, as previously reported, succeeds. At the shipout of page 7 we find:
tagpdf DEBUG Info: Struct 115 begin inserted with options: tag=endnotelabel
(tagpdf DEBUG)     [on line 63]

The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{endnotelabel}{Lbl}}
>  {{endnote}{FENote}}
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

Package tagpdf Info: Parent-Child 'Lbl' --> 'MC'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Lbl/pdf2' --> 'MC' on line 63

Package tagpdf Info: Lbl has been pushed to the mc stack

tagpdf DEBUG Info: Tagging suspended
(tagpdf DEBUG)     level: 0 ==> 1, label: headfoot [on line 63]

tagpdf DEBUG Info: Tagging resumed
(tagpdf DEBUG)     level: 1 ==> 0, label: headfoot [on line 63]

Package tagpdf Info: Lbl has been removed from the mc stack

Package tagpdf Info: Parent-Child 'Lbl' --> 'MC'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Lbl/pdf2' --> 'MC' on line 63

Package tagpdf Info: Lbl has been pushed to the mc stack

tagpdf DEBUG Info: Tagging suspended
(tagpdf DEBUG)     level: 0 ==> 1, label: headfoot [on line 63]

tagpdf DEBUG Info: Tagging resumed
(tagpdf DEBUG)     level: 1 ==> 0, label: headfoot [on line 63]

Package tagpdf Info: Lbl has been removed from the mc stack

Package tagpdf Info: Parent-Child 'Lbl' --> 'MC'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Lbl/pdf2' --> 'MC' on line 63

tagpdf: INFO TAG-NOT-TAGGED: this has not been tagged, using artifact
tagpdf: INFO TAG-NOT-TAGGED: this has not been tagged, using artifact
tagpdf: INFO TAG-NOT-TAGGED: this has not been tagged, using artifact
tagpdf: INFO TAG-NOT-TAGGED: this has not been tagged, using artifact
tagpdf: INFO TAG-NOT-TAGGED: this has not been tagged, using artifact
tagpdf: INFO TAG-NOT-TAGGED: this has not been tagged, using artifact
tagpdf: INFO TAG-NOT-TAGGED: this has not been tagged, using artifact
tagpdf: INFO TAG-NOT-TAGGED: this has not been tagged, using artifact [7]

Package tagpdf Info: Lbl has been pushed to the mc stack

Package tagpdf Info: Parent-Child 'Lbl' --> 'Link'.
(tagpdf)             Relation is 1 (='0..n')
(tagpdf)             Rolemapped from 'Lbl/pdf2' --> 'Link/pdf2' on line 63

tagpdf DEBUG Info: Struct 116 begin inserted with options: tag=Link
(tagpdf DEBUG)     [on line 63]

The sequence \g__tag_struct_tag_stack_seq contains the items (without outer
braces):
>  {{Link}{Link}}
>  {{endnotelabel}{Lbl}}
>  {{endnote}{FENote}}
>  {{Sect}{Sect}}
>  {{Document}{Document}}
>  {{Root}{StructTreeRoot}}.

With debug={log=vvv,tagpdf}, it is even clearer, but there's too much in between the opening of the enotelabel struct and the restoring of the mc after the shipout to grasp the sequence of events. But after the shipout, we find:
tagpdf: INFO SHIPOUT-INSERT-LAST-EMC: MCOPEN 0 [7]

Package tagpdf Info: Lbl has been pushed to the mc stack

The sequence \g__tag_mc_stack_seq contains the items (without outer braces):
>  {Lbl}.

As far as I understand, what is going on is the following: when shipping out page 7, the struct with tag endnotelabel (role Lbl) for note 8 is opened the mc explicitly tagged tag=Lbl is then opened too. At this point, the OR decides to cut the page. And somehow, for reasons I have no idea, when restoring the mc after the shipout, the mc itself is not lost, but its tag is. Well, that's my best shot at interpreting this issue so far.

Ha! A M(non)WE without postnotes:
\DocumentMetadata{
  testphase={phase-III} ,
  pdfversion=2.0,
  pdfstandard=ua-2,
  lang=en,
  debug={log=all,tagpdf},
}

\documentclass{book}

\usepackage{lipsum}
\usepackage{hyperref}
\usepackage{indentfirst}

\ExplSyntaxOn
\newcommand{\makemark}[1]{
  \tag_struct_begin:n { tag=Lbl }
  \tag_mc_begin:n { tag=Lbl }
  \makebox[0em][r]{\hyperlink{myanchor}{\textsuperscript{#1}}}
  \tag_mc_end:
  \tag_struct_end:
}
\newcommand{\makelipsum}[1]{
  \tag_tool:n { para/tagging=true }
  \lipsum[#1]
  \tag_tool:n { para/tagging=false }
}
\ExplSyntaxOff

\title{Title}

\begin{document}

% This generates the same situation but, alas, not mc error...
\chapter*{Notes}
\MakeLinkTarget*{myanchor}

\begingroup
\tagtool{para/tagging=false}
\footnotesize
\setlength{\rightskip}{0pt}
\setlength{\leftskip}{0pt}
\setlength{\parindent}{1.8em}

\makemark{1}\makelipsum{2}\par
\makemark{2}\makelipsum{4}\par
\makemark{3}\makelipsum{4}\par
\makemark{4}\makelipsum{6}\par
\makemark{5}\makelipsum{8}\par
\makemark{6}\makelipsum{8}\par
\makemark{7}\makelipsum{2}\par
\makemark{8}\makelipsum{4}\par
\makemark{9}\makelipsum{6}

\endgroup

\end{document}

With pdflatex, that document errors with:
Package tagpdf Info:  has been removed from the mc stack

The sequence \g__tag_mc_stack_seq is empty
> .

tagpdf DEBUG Info: MC begin inserted with options: tag=\l__tag_tmpa_tl , [on
(tagpdf DEBUG)     line 52]

./document3.tex:52: Package tagpdf Error: required tag missing - mcid 26

Type <return> to continue.
 ...

l.52 \makemark{8}
                 \makelipsum{4}\par

LaTeX does not know anything more about this error, sorry.

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

Package tagpdf Warning: tag  is not known

The problem is this here
\tag_mc_begin:n { tag=Lbl }
  \makebox[0em][r]{\hyperlink{myanchor}{\textsuperscript{#1}}}
 \tag_mc_end:

You are issuing the mc-begin command in vmode. I'm not sure yet, if tagpdf could/should catch this case, but generally it is not a good idea to put whatsits there (a hyperref anchor would e.g. probably end on the wrong page. So either put the mc-commands inside the box, or add a \leavevmode before the \tag_mc_begin:n.

@u-fischer Thank you very much for taking a look at this.
As usual, spot on.  :wink:
I followed your suggestion and added \mode_leave_vertical: before starting the note in case of no list environment. Given the handling of the different cases, it seemed the best option. As far as I can tell, it's all looking good now. Thank you!


Move PR Pipeline Setup Job to windows-latest agent pool

We were hitting this warning in the PR builds in the Setup job:

##[warning]A brownout will take place on December, 15 3:00 PM - 4:30 PM UTC to raise awareness of the upcoming windows-2016 environment removal. For more details, see https://github.com/actions/virtual-environments/issues/4312

We need to move this Job to 'windows-latest'.

/azp run


question: what would be required to point uaa at custom database?

is there some discrete set of spring-security(-oauth) repository interfaces that could be implemented to point uaa at an entirely different database?
is there any precedence for this strategy?
we are considering options for using uaa in conjunction with our own database where we would have additional entities and relationships around the "user" entity, things like roles (collections of privileges) and various other "business" level relationships.
one option would be to stick with one of uaa's supported databases (e.g. postgres, mysql, ldap) and maintain a "cross-reference" between the two databases (the business-centric one and the uaa one).
another option we are considering is attempting to merge uaa entities/attributes into our business-centric one and repoint uaa to that one via required repository implementations.
interested in any guidance or experience around this.
best,
tony.

@tony-kerz We don't have plans to support custom external database configuration for UAA.
If you want to to use a custom user store with UAA, it should be front-ended by a SAML 2.0 Identity Provider.


RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

Hi,
I'm sorry, can't help here with out details like:

Which model, what are the input and the outputs
What are the target layers, and the targets.

If you can share this please re-open.


adding notebook tests

Partially addresses an existing issue #283 (which shouldn't be resolved automatically upon merging this PR).
For now with tutorial_i, as smoke screen conditioning needs to be added to other notebooks to speed them up. I can keep going with the other notebooks, but for now, it seemed sensible to touch base and agree on the method.
Sam was fantastic at teaching me to include smoke tests, helping me convert my Python script to a shell script, and commenting on an earlier version of my workflow file. Thanks @SamWitty! After our conversation, the following transpired:

The notebook dependencies are non-trivial and I assume need to be separated from the build requirements (which should not include things like seaborn or matplotlib ). I added a separate notebook requirements.txt in docs/source, and referred to it and to requirements.txt  in  test_notebooks.yml. The workflow also needed to use ts-graphviz/setup-graphviz@v1 for the notebooks to be able to produce our precious model graphs.

@rfl-urbaniak , now that you've merged in #318 would you like @eb8680 to review this PR or are you planning on adding more notebooks first?

I've added backdoor.ipynb and will keep adding notebooks tomorrow. Will ask for review and change status when done.

Includes notebook tests for backdoor, cevae, dr_learner, mediation, sdid, slc and tutorial.
Two excluded notebooks are deepscm and sciplex. I took a first stab at creating mock datasets by subsetting, but:

The Morpho-MNIST link is ambiguous, as the repo contains multiple versions of the datasets. Crucially, in each of those, train-morpho.csv fails to contain a variable named intensity, used to construct raw_intensity in the code.

The data used in sciplex when processed, crashes my kernel, and so I cannot generate the .h5 dataset which I would subset to produce a mock dataset.

If no revisions are suggested, this PR can be merged, and we can deal with these two remaining notebooks later.

@SamWitty  So the notebooks pass the automated tests on a GitHub runner. They pass locally on my laptop. They fail locally on my desktop. cevae.ipynb fails with the first cell, which succeeds as soon as I comment out import pytorch_lightning as pl. So I investigate the error and there seem to be compatibility issues.
torchaudio 0.13.1+cpu has requirement torch==1.13.1, but you have torch 2.1.0.
torchvision 0.14.1 has requirement torch==1.13.1, but you have torch 2.1.0.
The problem is, as soon as I downgrade torch to meet this requirement, pyro ppl compains about requiring torch > 2.0.
Are these problems similar to the ones you're running into?
How would you like me to proceed?

@rfl-urbaniak , does this conflict persist with a fresh start from a clean virtual environment?
If so, I'd recommend removing the CEVAE notebook and submitting this PR for review without it. We can add back more notebooks in subsequent PRs.

After changing the status, I re-run the notebooks locally outside of the CI=1 context to recover the original figures and pushed. Should be ready for review.

Great. @eb8680 , I was fairly involved in setting this up, so I think it makes sense for you to review and merge (if it passes your review). I'll remove myself from the reviewers on GH.


ImportError: dynamic module does not define init function (initlibcudnn)

When I try to do import libcudnn I get the following error:
ImportError: dynamic module does not define init function (initlibcudnn)

I'm running Ubuntu 14.10 and using cudnn-6.5-linux-x64-v2-rc2.

I can't really tell what's going on unless you post the full traceback. import libcudnn works fine for me on Ubuntu 14.10 with cudnn v2 rc2, so there must be something else going on.
Make sure you're using the a version of cudnn-python-wrappers that is compatible with cudnn v2.

It seems to be a problem with my cuda setup. It works fine now (but I switched to 14.04).
That's the entry point by the way, one level up is just stdin (where I pasted the import libcudnn).


How to combine data from T265 and D435i for localization in the same coordinates

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ T265 and D435i }

Firmware Version
(2.41.0)

Operating System & Version
{Linux (Ubuntu 14/16/17)

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson /

SDK Version
{ legacy / 2.. }

Language
{python }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
<Describe your issue / question / feature request / etc..>
I am trying to make it so that in the event of an error and a reboot of the system, the system was found in the same coordinates as it was, and the vector axes were not zeroed. I read a lot of things, but I didn't understand how to do it at all, maybe someone solved a similar problem and could share the lines of code for this solution?

@vnadein Could you please check if https://docs.opencv.org/3.4/d4/d94/tutorial_camera_calibration.html helps?

@vnadein Could you please check if https://docs.opencv.org/3.4/d4/d94/tutorial_camera_calibration.html helps?

I thought maybe your library has a solution to this problem, like competitors, this action is carried out using a simple function, if a previously saved card is loaded into the camera.
Since relocalization is present, but how it works and what makes it completely unclear, the pyrealsense library is very poorly described

@vnadein  Sorry we don't have such example based on python. We have one example based on ROS https://github.com/IntelRealSense/realsense-ros/tree/occupancy-mapping and please check if it helps.  Thanks!

@vnadein Any other questions about this ticket? Looking forward to your update. Thanks!

@vnadein Sorry we will close the issue at this point as we don't hear from you for weeks. Please feel free to create another new ticket if you still have questions or issues. Thank!


Error when i try to enable new theme from marketplace

Problem
I get this error after pressing enable:
Not Found
The requested URL /tmp/admin/system/package/themes was not found on this server.
Technical Details

Pagekit version: 1.0.12
Webserver: apache
Database: mysql
PHP Version: PHP 5.6.30

index.php is missing from the url

Does this happen with all themes you try to install?

You mean on /tmp/admin/system/package/themes? This should be a path, not an URL.

Yes, well i tried dolce, minimal and avanti.

I can not confirm this on my installation.
maybe a duplicate of https://github.com/pagekit/pagekit/issues/670 ?
@MalteScharenberg : Did you find a solution for this?

I have the rewrite module installed. As stated in #670, where one posted: "Solved rewrite_module issue"

You mean you have the apache mod_reqrite installed? Can you access any page of your homepage without the index.php in the url?

Yes i ahave mod_rewrite installed.
I can access www.website.com and it shows the index.php without it standing there.
But i cannot access index.php/om (a page created through pagekit)  without index.php being in front.
If it helps i can give access to the pagekit webpanel, to a dev or someone like that?

Could be helpful.


Add ready to use api to retrieve ticks by symbol

Coverage increased (+2.9%) to 85.149% when pulling 51d98eb8f7b32f5310fcdb336b4854ed12c9a7e7 on qingweibinary:qingwei/add_more_custom_api into 9e0465b55565ee54e620342f851df4939d80fdd2 on binary-com:master.

Coverage increased (+2.9%) to 85.099% when pulling 337a65f4627d891f763da954c7911c3c03989f40 on qingweibinary:qingwei/add_more_custom_api into 9e0465b55565ee54e620342f851df4939d80fdd2 on binary-com:master.


Look into better default values for Solr & PrometheusExporter Probes

These probes have had default values that were chosen very early on in the project's life.
We should go back and choose values that make more sense, especially given that we can test these with #507

This can also relate to #504


Use Babel as our transpiler for reactify

I've experimented with using babel to transform our jsx and it couldn't be easier.
Including 'babelify' and using it as the argument to transform instead of envify works.
I really think we should push for this as a transformer for all of our source files to allow use of es6.
Thoughts?

Example in commit e665ac4f9f9309f4c6a319af438f8fe88abc59ea

@terakilobyte You can add multiple transform to browserify. No need to overwrite Envify as they serve different functions.

@BerkeleyTrue right, I hadn't meant to remove envify permanently, I actually just cut out what was in b.transform and added babelify. I need to stop super tired coding.

This is on hold at the moment. Using gulp-babel in combination with gulp-watch entries into infinite loop. Will need to investigate further, but for now we are sticking with current implementation to get the project moving along.

This issue is moot if we move to IO.js


[BUG] Main is failing yarn run build checks

Describe the bug
fetching is failing when prerendering the new page on vercel builds
To Reproduce
Steps to reproduce the behavior:

Fork repo
Commit arbitrary change and push

Expected behavior
A completed optimized production build
(Vercel build log)
a [ResponseError]: The server returned invalid JSON
    at l (/vercel/path0/frontend/.next/server/app/(navfooter)/credits/page.js:1:15006)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async d (/vercel/path0/frontend/.next/server/app/(navfooter)/credits/page.js:1:15140)
    at async m (/vercel/path0/frontend/.next/server/app/(navfooter)/new/page.js:1:36039) {
  status: 503,
  json: { code: 'invalid_json', detail: 'The server returned invalid JSON' },
  code: 'invalid_json'
}
a [ResponseError]: The server returned invalid JSON
    at l (/vercel/path0/frontend/.next/server/app/(navfooter)/credits/page.js:1:15006)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async d (/vercel/path0/frontend/.next/server/app/(navfooter)/credits/page.js:1:15140)
    at async m (/vercel/path0/frontend/.next/server/app/(navfooter)/new/page.js:1:36039) {
  status: 503,
  json: { code: 'invalid_json', detail: 'The server returned invalid JSON' },
  code: 'invalid_json'
}
Error occurred prerendering page "/new". Read more: https://nextjs.org/docs/messages/prerender-error
ResponseError: The server returned invalid JSON
    at l (/vercel/path0/frontend/.next/server/app/(navfooter)/credits/page.js:1:15006)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async d (/vercel/path0/frontend/.next/server/app/(navfooter)/credits/page.js:1:15140)
    at async m (/vercel/path0/frontend/.next/server/app/(navfooter)/new/page.js:1:36039)

 ✓ Generating static pages (12/12)
> Export encountered errors on following paths:
	/(navfooter)/new/page: /new

This seems to have been a temporary issue - closing