docker-compose returning 502's from services

Hi there,
I originally posted this on docker-kong but haven't received a response.
I have the following set-up:
cassandra:
  image: cassandra:2.2.5

kong:
  image: mashape/kong
  links:
    - cassandra
  security_opt:
    - seccomp:unconfined
  ports:
    - "8000:8000"
    - "8443:8443"
    - "8001:8001"
    - "7946:7946"
    - "7946:7946/udp"

core-api:
  build: ./applications/core/api
  ports:
    - "8080:8080"
  links:
    - core-datastore
    - core-cache
    - elasticsearch
  environment:
    - DB_NAME=bandzest
    - VIRTUAL_HOST=core.bandzest.dev
  restart: always

Then when I run curl -i -XGET http://bandzest.dev:8000 --header 'Host: core.bandzest.dev' -d 'request_path=api/v1/artists'
I get...
HTTP/1.1 502 Bad Gateway
Date: Thu, 31 Mar 2016 00:20:13 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: kong/0.7.0

An invalid response was received from the upstream server
Whereas if I go straight to the API, I get a proper response.

I've read that Kong binds to <IP_ADDRESS> but docker-machine's something like <IP_ADDRESS>, how do I change these? I changed the bind ip value in /etc/kong/kong.yml from <IP_ADDRESS> to my docker-machine ip, but that didn't make a difference.
Any pointers? Thanks in advance.

@EwanValentine where you able to figure this out?

Yeah, it was something Docker related in the end!

@EwanValentine Could you explain more about your solution? I got same error.

@EwanValentine Did it have to do with correctly linking from Kong to your core-api container?  That was my problem.  I wasn't connecting to the correct port and it was throwing that 502.

@EwanValentine @JakeGlascock how did you get the kong container to connect to the correct port for your api container?
For example, the code from kong's docs shows something like the following for running the kong docker container:
docker run -d --name kong               --link kong-database:kong-database               -e "KONG_DATABASE=postgres"               -e "KONG_PG_HOST=kong-database"               -p 8000:8000                -p 8443:8443                -p 8001:8001                -p 7946:7946                -p 7946:7946/udp               kong
So, assuming I have another docker container called "api" running on the same host, I should be able to something like the following:
docker run -d --name kong               --link kong-database:kong-database               --link api:api               -e "KONG_DATABASE=postgres"               -e "KONG_PG_HOST=kong-database"               -p 8000:8000                -p 8443:8443                -p 8001:8001                -p 7946:7946                -p 7946:7946/udp                kong
However, upon making requests to the kong proxy with something like the following:
curl -i -X GET   --url http://localhost:8000/   --header 'Host: myhost.com',
I continue to see 502s with An invalid response was received from the upstream server.
Any help would be appreciated.


DNM [skip ci] update: fix nfs update for jewel

We can't stop a service which doesn't exist since prior to luminous we
don't run ceph-nfs.
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

Closing this due to inactivity, feel free to re-open, thanks!


Fix windows azdata install

azdata MSI installation on Windows requires admin privileges.
Temporarily disabling tests that broke because of this change - will go back right after release and fix these all up.
Also updating the logging a bit to provide additional useful information (such as installation logs)

Pull Request Test Coverage Report for Build 266041164

2 of 6 (33.33%)  changed or added relevant lines in 2 files are covered.
52 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.1%) to 38.078%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/azdata/src/azdata.ts
1
5
20.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/azdata/src/common/logger.ts
1
85.71%

extensions/azdata/src/azdata.ts
51
15.0%

Totals

Change from base Build 265885210:
-0.1%

Covered Lines:
19095

Relevant Lines:
45827

💛  - Coveralls


Implement array length operator

The "hash" or "pound" symbol is used to get the length of an array, or an array literal.
func main(): int {
    array := [0, 1, 2, 3];
    x: int = #[0, 1, 2, 3, 4];
    y: int = #array;
}

This is half done, I've implemented array length for literals, but not yet for a reference to an array like #array.

Implemented as


chore(test): improve e2e tests, unit tests

Part of #812

Add e2e test for yarn workspace + typescript composite
Setup monorepo tests on Windows with Travis + node 12
Improve unit tests
Add instruction for monorepo e2e tests
Improve codes in config-set.ts
Set husky to the latest  version

Pull Request Test Coverage Report for Build 4017

4 of 4 (100.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+1.6%) to 91.72%

Files with Coverage Reduction
New Missed Lines
%

src/config/config-set.ts
2
96.57%

Totals

Change from base Build 4016:
1.6%

Covered Lines:
1087

Relevant Lines:
1132

💛  - Coveralls


fix(ui): explicit expanded width and height for expanded server indicator

was leaning too much on the aspect-ratio property, which is not widely supported - i knew this and did it anyway, sorry

Not bad as a workaround, but still prefers to do the automatic sizing (depends on the image size itself).

I'll be addressing as I rewrite the server card and it's CSS.


PnP PowerShell version to Add multiple folders in libraries using a csv file

Add PnP PowerShell version for sample:
https://pnp.github.io/script-samples/spo-add-multiple-folders-in-libraries-using-csv-file/README.html?tabs=cli-m365-ps%2Ccli-m365-ps2

Can you please assign this to me?


Bug: Blockcypher API is unreliable and should not be used

Describe the bug
As described in https://twitter.com/c_otto83/status/1376195011470065664 the Blockcypher API canot be trusted, as it the response (sometimes) does not indicate if further transactions exist for the address. Despite a mail (sent 28 March 2021) and a reminder (17 April 2021) the bug still exists, and I haven't received any response from Blockcypher.
To Reproduce
https://api.blockcypher.com/v1/btc/main/addrs/165dtfwNvyMUbLGdqf87w8DfZX7i542Fyr should include a has_more field.

Sent another reminder today.


Added entries, foreach,  values and keys to NodeListOf

Added entries, foreach,  values and keys to NodeListOf

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Thanks for your PR. these files are not manually edited, they are auto-generatd from a script in . You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TSJS-lib-generator.
Changes should be done in src/lib instead.
As for this change specifically, it should be done in https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.iterable.d.ts

@mhegazy I'm confused, should I add it to NodeListOf or NodeList ? Also should I use IterableIterator instead of ArrayLike

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@cedvdb, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot

Sorry but I think that the "request changes" are wrongfully blocking this. The return values for entries and values are swapped. https://developer.mozilla.org/en-US/docs/Web/API/NodeList/entries

thanks!

The methods forEach of NodeList is node defined.
https://www.w3.org/TR/dom/#interface-nodelist
Therefore where comes this requirement from ? It works for V8 but not for all browsers.


⚠ API - Lens has degraded performance

In 7189c64, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 502
Response time: 323 ms

Resolved: API - Lens performance has improved in c0fbd07 after 4 minutes.


Validating min/max numbers

I'm trying to validate input number from GET parameter with this rule - integer|min:1|max:100. The value itself is a string '200' since it's coming from $_GET. In this case all rules pass, but I was hoping max:100 would fail. Do you have a suggestion how to force min/max rules to treat value as a number?

validation/src/Rules/Traits/SizeTrait.php->getValueSize($value)
protected function getValueSize($value)
{
    if (is_numeric($value) || is_float($value)) {
        return (float) $value;
    }
    ...
}

i think its counter intuitive but the solution lies in using the numeric validator
numeric|min:100|max:200
if you use the integer validator, the min/max rules are almost ignored.

Hi guys for me seems is not working i have numeric / interger with min max and seems is ignoring


SECURITY.md and CONTRIBUTING.md are outdated

they are still pointing to JIRA. Fortunately I don't have any security issues :wink:

@smoench good point! I guess we'll update it with GPG+emails of the security folks in our team.


Correct docblock based method parameters

This fixes #281 - again. This time for docblock based parameters.
I have refactored tests class, so data provider sub functions use main data provider function as a prefix. I have also added tests for docblock based type hints and allowed testing for multiple type hints on one parameter.

@fabpot I hope, that this time I covered most cases.

Thank you @TiS.


Import numba crashes after import s3fs

Reporting a bug

[x] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

If numba is imported after import of s3fs:
import s3fs
import numba

it crashes python with an error:
Assertion failed: (PassInf && "Expected all immutable passes to be initialized"), function addImmutablePass, file /opt/concourse/worker/volumes/live/636f0d85-60d4-452d-50e9-ca6ab5111e2d/volume/llvmdev_1560805383854/work/lib/IR/LegacyPassManager.cpp, line 849.
Abort trap: 6

Import in the other way round works fine:
import numba
import s3fs

Versions:
Python 3.7.1 (default, Oct 23 2018, 14:07:42)
OSX: 10.14.6 (18G103)
numba: 0.46
llvmlite: 0.30.0
s3fs: 0.3.4

It looks like s3fs is importing pyarrow under the hood:
import sys
print('pyarrow' in sys.modules)
import s3fs
print('pyarrow' in sys.modules)

and thus this issue is related to: https://github.com/numba/numba/issues/4256

xref: https://github.com/numba/numba/issues/4256#issuecomment-546860012

Thanks for the report. Suspect that this has the same root cause as #4256

Closing this issue as it seems to be resolved as the root cause issue at #4256 has been resolved. If this is not the case please re-open with a comment about any item that appears to be unresolved. Many thanks.


Removed Assertions from shape_detector.py and added exceptions

Some of the assertion errors were confusing, thus, explanations have been added. Solves #611

Looks good @DebadityaPal. Could you add a couple of unit tests for the new exceptions as well? Ideally, we want 100% codecov/patch at all times.

Yes, I should have added the unit tests, it escaped my notice. I'll do it right away.

@DebadityaPal you might want to check how to properly test exceptions using pytest. Here's an example from our tests

@AbhinavTuli would it be helpful if I modified all the tests in the file to use the pytest format?

Just merged it. Thanks for yet another great PR @DebadityaPal !


Right-click tray when tray is already open

Steps to reproduce:

Start with two expressions defined with style circles
Right-click on the first style circle to open that tray
Right-click on the second style circle

The tray corresponding to the first style circle stays open. If the two expressions are different types, then the tray acquires the appearance of the second but with the model of the first.

https://github.com/DesModder/DesModder/issues/813 has a good video showcasing this.


Classification results get accuracy:%nan

I use the TSN to classify my own videos,I modified the code and it turn out to work when I test with a list of two videos.However,when I use it to RUN 156 videos,there are some errors:
/home/zangxh/temporal-segment-networks/pyActionRecog/utils/metrics.py:60: RuntimeWarning: invalid value encountered in divide   return np.mean(cls_hit/cls_cnt) Final accuracy nan%
how can I fix this?
Thank you for your help.

Do you have any class id that has no instance in you dataset?

I am sure that every class has instance.
'def mean_class_accuracy(scores, labels):
pred = np.argmax(scores, axis=1)
cf = confusion_matrix(labels, pred).astype(float)
cls_cnt = cf.sum(axis=1)
cls_hit = np.diag(cf)
return np.mean(cls_hit/cls_cnt)'
I found that there are a lot of zeros values in cls_cnt,so that cls_hit/cls_cnt turns out be of no significance.
I am confused ,why there are a lot of zeros?

What I said is that your class labels should be contiguous from 0 to N.
Also, to test on custom datasets, always make sure that there is a registered parser in benchmark_db.py.
See
https://github.com/yjxiong/temporal-segment-networks/blob/master/pyActionRecog/benchmark_db.py#L42
and
https://github.com/yjxiong/temporal-segment-networks/blob/master/pyActionRecog/__init__.py#L5
on how to register it. File lists are only used in training.
The canonical way of working on custom datasets is to write a parser and use it to generate the file lists for training.

See a complete guide on custom datasets here
https://github.com/yjxiong/temporal-segment-networks/wiki/Working-on-custom-datasets.

@mangdian
Have you solved the problem? If so, I will close this issues.


Not working in my Swift project

Can't figure it out, I copy the Swift example code pretty much verbatim but when I try to show the color picker in a button action I just get a grey background, no color picker.  Any ideas?

Without seeing your project it's here to know what it could be. Did you copy the image and nib resources? Did you load the view controller from the nib?

I had the same issue as Framnk. Resources (colormap.png & xib) must be copied to your project.

I also had this problem and sabiland's comment helped me. Thanks! Maybe this should be in the documentation


Travis should only build API or Dashboard image when respective code has changed

From @Tomcli:

... we can leverage the script we have wrote for kfp-tekton. This way we don't need to build the image if the api/ui code hasn't changed

https://github.com/kubeflow/kfp-tekton/blob/master/.travis.yml#L73-L95

Originally posted by @Tomcli in https://github.com/machine-learning-exchange/mlx/issues/27#issuecomment-843456414

This is a good idea @Tomcli -- let me know if you want to add this? Otherwise I will create a PR for it.

I can put up something simple to start with. What we have in kfp-tekton is to check whether any source file in our dockerfiles has changed, if so run the docker build. You can update the script later on if you want to check for diff in a specific dockerfile.

#45


Added message format checker

This work adds support for a Format Checker, which accepts a message represented by a C-String and checks whether it fits the expected format of an NMEA message.
This work also comes with a handful of unit tests which should provide full coverage.
It's also well-documented.
@RonAmihai One thing I'd like to get your attention on is the way the tests are written.
I've left a todo note where a factory may be needed, but I couldn't decide on my own.

I've added missing coverage, which also caused to modify some checks to be even "smarter".

Feedback about the code itself (without tests):

EVALID code should be returned instead of explicit 0
https://github.com/takpit/proto-nmea/blob/d057163d9dfe2b12bcd23e42c52458a456142940/src/format/FormatChecker.c#L59

Unnecessary 'else-if' (first 'if' includes 'return' statement & 'else' doesn't improves readability anyways)
https://github.com/takpit/proto-nmea/blob/d057163d9dfe2b12bcd23e42c52458a456142940/src/format/FormatChecker.c#L87

Consider to name out parameters with 'out' prefix to improve readability
https://github.com/takpit/proto-nmea/blob/d057163d9dfe2b12bcd23e42c52458a456142940/src/format/FormatChecker.c#L93

Use contants (defines) for offsets & length instead of explicit values
https://github.com/takpit/proto-nmea/blob/d057163d9dfe2b12bcd23e42c52458a456142940/src/format/FormatChecker.c#L37
https://github.com/takpit/proto-nmea/blob/d057163d9dfe2b12bcd23e42c52458a456142940/src/format/FormatChecker.c#L155
https://github.com/takpit/proto-nmea/blob/d057163d9dfe2b12bcd23e42c52458a456142940/src/format/FormatChecker.c#L107

Use conteants (defines) for shifting values. They can be understood eventually but it is desirable to specify their vocation explicitly for readability
https://github.com/takpit/proto-nmea/blob/d057163d9dfe2b12bcd23e42c52458a456142940/src/utility/GlobalUtils.c#L39

As for the test - only two things to mention:

Consider using constants (defines) also for string-append indexers.
Factories would be nice addition whenever you mentioned.

Other than that - the tests are written good overall.


Update grpc-netty to 1.54.0

About this PR
📦 Updates io.grpc:grpc-netty from 1.53.0 to 1.54.0
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
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!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.grpc", artifactId = "grpc-netty" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.grpc", artifactId = "grpc-netty" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Codecov Report

Merging #2502 (8bd923d) into main (d8f0ff7) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2502      +/-   ##
==========================================
- Coverage   78.43%   78.41%   -0.02%
==========================================
  Files         441      441
  Lines       15467    15467
  Branches     2445     2445
==========================================
- Hits        12131    12128       -3
- Misses       3336     3339       +3

see 4 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


WebSocketServerTool connection close

Open host with default URL (HTTP or HTTPS). Use WebSocketTool or WebSocketSharpTool to establish a WebSocket connection, and send a message. After about 15 minutes, the connection closes. It looks like WCF is not handling ping/pong (heartbeats) appropriately.
See session captured using Fiddler.

Have noted that this issue does not occur with recent updates of Windows 10 / .NET SDK.


Door/window switch implementation and example (TZ-348)

Is your feature request related to a problem?
Yes. Altering example code does not make door switches working - basically network connection builds up but door open/close is not recognized. Adding dim lights is good but probably more devs wanna integrate doors/windows than fancy lights.
Describe the solution you'd like.
Examples / door lock controller
Examples / door switch end device
Describe alternatives you've considered.
TI CC1352P/CC2562P
Additional context.
No response

@Sandor-Hadas,
We have provided examples for temperature sensors and thermostats, which are similar to your request for a door and switch device. You can refer to them to implement your device. If you encounter any obstacles, feel free to ask for assistance.

We have provided a console based all device types app: https://github.com/espressif/esp-zigbee-sdk/tree/main/examples/esp_zigbee_all_device_types_app, you can test any supported device types with it.
Closing the issue, feel free to reopen if any further questions.


Translations update from Mattermost Weblate

Translations update from Mattermost Weblate for mattermost-languages-shipped/mattermost-desktop.
Current translation status:

Hello @weblate,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/desktop/21421
https://circleci.com/gh/mattermost/desktop/21420
https://circleci.com/gh/mattermost/desktop/21419

/release-note-none


Dark cursor is hard to see on dark background & text color

I'm using Visual Studio Code 0.10.2 on Mac OS X 10.11.1 El Capitan. On my external monitor, the viewing angle sometimes makes it impossible to see the dark cursor on top of the dark Visual Studio Code background color.
Could we figure out some way to make the cursor more visible in VS Code?
Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
http://trevorsullivan.net
http://twitter.com/pcgeek86

There are other themes available in the command palette which feature different background colors: cmd+shift+p -> type "theme" > enter

@pcgeek86 I can also only recommend a different theme. There are a lot of theme extensions already in the gallery.

in all the dark themes is difficult to see the cursor, and the other themes make you blind  :)
can we change the cursor to anything else other than black?
how about the default Visual Studio Theme? (Blue/White)

Perhaps I'm misunderstanding, but isn't this an OS X cursor issue? (is it this one?)

Aha!

Sublime inverts the color of the text cursor, which is easier to see. Maybe there should be a setting associated with themes to do this?

@bpasero Do you know if electron supports to invert the color of the mouse cursor ?

@alexandrudima not to my knowledge and in fact Atom is assigning a custom cursor when I last checked using CSS. What I dont like about that approach is that it seems impossible to put the correct size of the cursor depending on running in High DPI or not (retina).

@bpasero @alexandrudima Surely this doesn't reproduce on regular web pages with dark backgrounds on Chrome? Never heard of this being a problem as a web developer.

@Tyriar I totally see it in Chrome too when using Cloud9 with a dark editor.

I would like to support this feature request. Especially on a laptop the cursor is hard to spot when the weather conditions are slightly brighter than 'cloudy-with-rain'.

+1. This is a real problem.

+1 biggest usability problem for me

I increased the size of my cursor and it is helping for now.

Here is the fix in Atom: https://github.com/lee-dohm/white-cursor

:+1: this is highly annoying

I got the fix and I forgot to add the solution here :)
Open Control panel
Open Appearance and Personalization
Open Personalization
Finally – click Change mouse pointers. That will open this window:
mouse color scheme
Select the Scheme called – Windows Black (system scheme)

@scastaldi that seems like a windows-specific fix, I'm on osx. I think something like the above mentioned fix for atom might be a better way to go

@mbroadst I didn't have the cursor problem on my mac, but you can try:
Choose Apple menu > System Preferences, then click Accessibility.
Click Display then drag the Cursor Size slider to the right to make it larger
You can also change the Display contrast to see if that helps, it seems MacOS removed the ability to change the mouse pointers, unless you install a another application like Mousecape

@scastaldi Thanks, it helped.
I am using VS Code from my Mac on Remote Desktop running Windows Server 2012.
There you can go to Control Panel and search for Mouse. You find Mouse Properties dialog and you can use the Pointer tab to change your mouse pointer to Windows Black.
BTW, when I am using VS Code directly on my Mac, the mouse pointer is somehow visible. But on MS Windows, it is (or was) much worse.

For all of us +1's, someone posted this request for vote on UserVoice.

For those who are remoting into a machine, check if your remoting client has a setting like "show remote cursor pointer". That helped a lot for me (remoting from Windows into Mac using NoMachine).

This problem is so frustrating I hacked the source to fix it. See https://github.com/JonathanMEdwards/vscode
But I don't know how to package up a proper installation. I can run the dev version with the command: $HOME/Projects/vscode/.build/electron/Electron.app/Contents/MacOS/Electron /$HOME/Projects/vscode
Also note extension management seems to be disabled in this build - perhaps that is intentional in the dev build?

@JonathanMEdwards :+1: thanks!

Thank you @JonathanMEdwards !

Was this fix put out in a release? Noticing this issue mainly on my mac screen, where as on an external monitor it's less of an issue. I tried switching between a couple default dark themes even, and the dark cursor is present.

It's out in the insider's release.
On Sat, May 7, 2016 at 12:37 PM, Aaron McLeod<EMAIL_ADDRESS>wrote:

Was this fix put out in a release? Noticing this issue mainly on my mac
screen, where as on an external monitor it's less of an issue. I tried
switching between a couple default dark themes even, and the dark cursor is
present.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/vscode/issues/754#issuecomment-217649506


ipld: GetLeaves should return fetched shares even on error

We use GetLeaves to retrieve shares of any row or column. Currently, it returns either all the shares in the success case or nothing. However, there are intermediate cases where some of the shares are retrieved but not given to the caller because some are not found. To increase the success rate of reconstruction, we have to change this to (1) request as many shares as possible at the same time and (2) return fetched ones.

Another way of doing so might be removing GetLeaves and making the logic part of ipld.Retriever implemented in https://github.com/celestiaorg/celestia-node/pull/623. This way downloading multiple rows and blocks(e.g. syncing) might be much more efficient in resource usage, as each data retrieval could reuse the same set of workers.

@Wondertan was this closed by #623 ?

ehm, it will be closed by #682, there are related via GH


Compile fails after following installation instructions

Hi, and thanks for this project.  I followed the installation instructions in the README file, including adding the xcodeproj file into my Xcode workspace.  Everything seems to have built as it was supposed to.  Ran protoc to compile my proto file, and added the output swift file into my project.  But now the compile fails on the "import ProtocolBuffers" line in that output file.   Using Xcode 6.3.2, compiling for iOS 8.  Included a screen shot showing the Xcode issue.
Do you have any ideas about what's missing?
Thanks
Don

Did you add ./src/ProtocolBuffers/ProtocolBuffers.xcodeproj in your project? You need to let Xcode know where the ProtocolBuffers is. However, I use Cocoapods to install this to my project, and it works fine for me. You can fine it here: https://cocoapods.org Following is you Podfile:
use_frameworks!
pod 'ProtocolBuffers-Swift`

After you creating the Podfile in the root of your project, simply run pod install. Now, you can use the module. Remember, you should open "XXX.xcworkspace" instead of "XXX. xcodeproj" after run pod install.

Hello Alexey,
Yes, I had added ./src/ProtocolBuffers/ProtocolBuffers.xcodeproj to my workspace, made no difference.  But adding the pod reference to my podfile worked!
Thanks
Don
--
Don Clark
<EMAIL_ADDRESS>Mobile -<PHONE_NUMBER>
Office -<PHONE_NUMBER>
Fax -<PHONE_NUMBER>
From: jamesweb1 <notifications<EMAIL_ADDRESS>Reply-To: alexeyxo/protobuf-swift <reply<EMAIL_ADDRESS>Date: Sunday, June 7, 2015 at 10:58 PM
To: alexeyxo/protobuf-swift <protobuf-swift<EMAIL_ADDRESS>Cc: Don Clark <don_clark<EMAIL_ADDRESS>Subject: [GRAYMAIL] Re: [protobuf-swift] Compile fails after following installation instructions (#68)
Did you add ./src/ProtocolBuffers/ProtocolBuffers.xcodeproj in your project? You need to let Xcode know where the ProtocolBuffers is. However, I use Cocoapods to install this to my project, and it works fine for me. You can fine it here: https://cocoapods.org Following is you Podfile:
use_frameworks!
pod 'ProtocolBuffers-Swift`
After you creating the Podfile in the root of your project, simply run pod install. Now, you can use the module. Remember, you should open "XXX.xcworkspace" instead of "XXX. xcodeproj" after run pod install.
—
Reply to this email directly or view it on GitHubhttps://github.com/alexeyxo/protobuf-swift/issues/68#issuecomment-109845048.

I think, You don't added  "Linked Frameworks and Libraries" in project settings.

I think you are right!  But the pod solution is probably better in the long run anyway.
Thanks again
--
Don Clark
From: Alexey Khokhlov <notifications<EMAIL_ADDRESS>Reply-To: alexeyxo/protobuf-swift <reply<EMAIL_ADDRESS>Date: Thursday, June 11, 2015 at 11:07 AM
To: alexeyxo/protobuf-swift <protobuf-swift<EMAIL_ADDRESS>Cc: Don Clark <don_clark<EMAIL_ADDRESS>Subject: [GRAYMAIL] Re: [protobuf-swift] Compile fails after following installation instructions (#68)
I think, You don't added "Linked Frameworks and Libraries" in project settings.
—
Reply to this email directly or view it on GitHubhttps://github.com/alexeyxo/protobuf-swift/issues/68#issuecomment-111167428.


"DEBUG_BUILD" declared error，repeat globals.d.ts.  with @sentry/types @sentry/react .

Environment
What version are you running? Etc.
node: v14.18.3
@sentry/vite-plugin": "^0.7.2"
@sentry/react": "^7.48.0"
@sentry/tracing": "^7.48.0"
Steps to Reproduce

What
you
did.

Expected Result
What you thought would happen.
Actual Result
error log
$ tsc && vite build
node_modules/@sentry/bundler-plugin-core/node_modules/@sentry/types/types/globals.d.ts:2:11 - error TS2451: Cannot redeclare block-scoped variable 'DEBUG_BUILD'.
2     const DEBUG_BUILD: boolean;
~~~~~~~~~~~~~~~
node_modules/@sentry/types/types/globals.d.ts:2:11
2     const DEBUG_BUILD: boolean;
~~~~~~~~~~~~~~~
'DEBUG_BUILD' was also declared here.
node_modules/@sentry/types/types/globals.d.ts:2:11 - error TS2451: Cannot redeclare block-scoped variable 'DEBUG_BUILD'.
2     const DEBUG_BUILD: boolean;
~~~~~~~~~~~~~~~
node_modules/@sentry/bundler-plugin-core/node_modules/@sentry/types/types/globals.d.ts:2:11
2     const DEBUG_BUILD: boolean;
~~~~~~~~~~~~~~~
'DEBUG_BUILD' was also declared here.
Found 2 errors in 2 files.
Errors  Files
1  node_modules/@sentry/bundler-plugin-core/node_modules/@sentry/types/types/globals.d.ts:2
1  node_modules/@sentry/types/types/globals.d.ts:2
error Command failed with exit code 2.
=============================================
is that a error? Looking forward to your help.

Hi, please align all your sentry dependencies to the same version.

I upgrade @sentry/react to "7.50.0"，it's worked ，thx


No 'Access-Control-Allow-Origin' header is present on the requested resource.

Describe the problem
I am selfhosting netbird on docker together with traefik and authentik.. When i visit netbird.domain.com i get the following error

i cannot click on logout because it does nothing... i found the following errors in the console of the browser

Access to fetch at 'https://authentik.domain.com/application/o/netbird/.well-known/openid-configuration' from origin 'https://netbird.domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
2731-e746de7d02695f25.js:1

GET https://authentik.domain.com/application/o/netbird/.well-known/openid-configuration net::ERR_FAILED 200 (OK)

My setup

OS: Ubuntu server 22.04.3 LTS x86_64
Docker version 25.0.3, build 4debf41
Traefik as the reverse proxy
Authentik as the idps

docker-compose.yml
version: "3.8"
services:
  dashboard:
    image: netbirdio/dashboard:latest
    container_name: netbird-dashboard
    environment:
      NETBIRD_MGMT_API_ENDPOINT: https://netbird.DOMAIN.COM:33073
      NETBIRD_MGMT_GRPC_API_ENDPOINT: https://netbird.DOMAIN.COM:33073
      AUTH_AUDIENCE: MY_CLIENT_ID_HERE
      AUTH_CLIENT_ID: netbird-client
#      AUTH_CLIENT_SECRET:
      AUTH_AUTHORITY: https://authentik.DOMAIN.COM/application/o/netbird/
      USE_AUTH0: false
      AUTH_SUPPORTED_SCOPES: openid profile email offline_access api
#      AUTH_REDIRECT_URI:
#      AUTH_SILENT_REDIRECT_URI:
      NETBIRD_TOKEN_SOURCE: accessToken
#      NGINX_SSL_PORT: 443
#      LETSENCRYPT_DOMAIN:
#      LETSENCRYPT_EMAIL:
    volumes:
      - ./netbird_container/netbird-letsencrypt:/etc/letsencrypt/
    ports:
      - 9180:80
#      - 9181:443
    restart: unless-stopped
#    labels:
#      - traefik.enable=true
#      - traefik.http.routers.netbird.rule=Host(`netbird.DOMAIN.COM`)
#      - traefik.http.routers.netbird.entrypoints=https
#      - traefik.http.services.netbird.loadbalancer.server.url=http://<IP_ADDRESS>:9180
##      - traefik.http.services.netbird-dashboard.loadbalancer.server.port=80
#      - traefik.http.routers.netbird.middlewares=cors
#      - traefik.http.middlewares.cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT
#      - traefik.http.middlewares.cors.headers.accesscontrolallowheaders=*
#      - traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=*
#      - traefik.http.middlewares.cors.headers.accesscontrolmaxage=100
#      - traefik.http.middlewares.cors.headers.addvaryheader=true

  signal:
    image: netbirdio/signal:latest
    container_name: netbird-signal
    volumes:
      - ./netbird_container/netbird-signal:/var/lib/netbird
    ports:
      - 10000:80
    # port and command for Let's Encrypt validation
#      - 443:443
    command: ["--letsencrypt-domain", "", "--log-file", "console"]
    restart: unless-stopped
#    labels:
#    - traefik.enable=true
#    - traefik.http.routers.netbird-signal.rule=Host(`netbird.DOMAIN.COM`) && PathPrefix(`/signalexchange.SignalExchange/`)
#    - traefik.http.services.netbird-signal.loadbalancer.server.port=80
#    - traefik.http.services.netbird-signal.loadbalancer.server.scheme=h2c

  management:
    image: netbirdio/management:latest
    container_name: netbird-management
    depends_on:
      - dashboard
    volumes:
      - ./netbird_container/netbird-mgmt:/var/lib/netbird
      - ./netbird_container/netbird-letsencrypt:/etc/letsencrypt:ro
      - ./management.json:/etc/netbird/management.json
    ports:
      - 33073:443 # API port
      # command for Let's Encrypt validation without dashboard container
#    command: ["--letsencrypt-domain", "", "--log-file", "console"]
    command: [
      "--port", "443",
      "--log-file", "console",
      "--disable-anonymous-metrics=false",
      "--single-account-mode-domain=netbird.DOMAIN.COM",
      "--dns-domain=netbird.selfhosted"
      ]
    restart: unless-stopped
#    labels:
#    - traefik.enable=true
#    - traefik.http.routers.netbird-api.rule=Host(`netbird.DOMAIN.COM`) && PathPrefix(`/api`)
#    - traefik.http.routers.netbird-api.service=netbird-api
#    - traefik.http.services.netbird-api.loadbalancer.server.port=443
#    - traefik.http.routers.netbird-management.rule=Host(`netbird.DOMAIN.COM`) && PathPrefix(`/management.ManagementService/`)
#    - traefik.http.routers.netbird-management.service=netbird-management
#    - traefik.http.services.netbird-management.loadbalancer.server.port=443
#    - traefik.http.services.netbird-management.loadbalancer.server.scheme=h2c

  coturn:
    image: coturn/coturn:latest
    container_name: netbird-coturn
    command:
      - -c /etc/turnserver.conf
    domainname: netbird.DOMAIN.COM
    volumes:
      - ./turnserver.conf:/etc/turnserver.conf:ro
#      - ./privkey.pem:/etc/coturn/private/privkey.pem:ro
#      - ./cert.pem:/etc/coturn/certs/cert.pem:ro
    network_mode: host
    restart: unless-stopped

setup.env
# Dashboard domain. e.g. app.mydomain.com
NETBIRD_DOMAIN="netbird.DOMAIN.COM"

# OIDC configuration
NETBIRD_MGMT_IDP="authentik"
NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT="https://YOUR_AUTHENTIK_HOST_AND_PORT/application/o/netbird/.well-known/openid-configuration"
NETBIRD_AUTH_AUDIENCE="PROVIDER_CLIENT_ID_HERE"
NETBIRD_AUTH_DEVICE_AUTH_AUDIENCE="PROVIDER_CLIENT_ID_HERE"
NETBIRD_IDP_MGMT_CLIENT_ID="PROVIDER_CLIENT_ID_HERE"
NETBIRD_IDP_MGMT_EXTRA_USERNAME="netbird"
NETBIRD_IDP_MGMT_EXTRA_PASSWORD="SERVICE_ACCOUNT_PASSWORD"

# e.g. netbird-client
NETBIRD_AUTH_CLIENT_ID="netbird-client"

# Indicates whether to use Auth0 or not: true or false
NETBIRD_USE_AUTH0="false"
NETBIRD_AUTH_DEVICE_AUTH_PROVIDER="none"

# Enables Interactive SSO Login feature (Oauth 2.0 Device Authorization Flow)
NETBIRD_AUTH_DEVICE_AUTH_CLIENT_ID="PROVIDER_CLIENT_ID_HERE"
NETBIRD_AUTH_SUPPORTED_SCOPES="openid profile email offline_access api"

# If disabled (false) Let's Encrypt will create an account while generating a new certificate.
NETBIRD_DISABLE_LETSENCRYPT="true"
<EMAIL_ADDRESS>
fileConfig.yml (Traefik)
http:
  routers:
    # netbird router
    netbird:
      entryPoints:
        - https
      rule: 'Host(`netbird.domain.com`)'
      service: netbird

  services:
     # netbird service
    netbird:
      loadBalancer:
        servers:
          - url: http://<IP_ADDRESS>:9180

Context
I have disabled SSL inside netbird since my bought domain already provides the SSL (this is with https on netbird.domain.com)

I have followed all steps for authentik at: https://docs.netbird.io/selfhosted/identity-providers#authentik

I am using cloudflare and have enabled gRPC

Remove the commas from the redirect URLs in authentik

@jvanbruegge Thanks removing commas from the redirect URLs in authentik worked for me.
Now there is a new problem

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://netbird.domain.com:33073/api/users. (Reason: CORS request did not succeed). Status code: (null)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://netbird.domain.com:33073/api/groups. (Reason: CORS request did not succeed). Status code: (null)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://netbird.domain.com:33073/api/peers. (Reason: CORS request did not succeed). Status code: (null)
Loading infinity

i am confused on what i have to add for the traefik config at fileConfig.yaml
This is my current config:
fileConfig.yaml
http:
  routers:
##======================ROUTERS======================##
    netbird:
      entryPoints:
        - https
      rule: 'Host(`netbird.DOMAIN.COM`)'
      service: netbird

    netbird-signal:
      rule: 'Host(`netbird.DOMAIN.COM`) && PathPrefix(`/signalexchange.SignalExchange/`)'
      service: netbird-signal

    netbird-api:
      rule: 'Host(`netbird.DOMAIN.COM`) && PathPrefix(`/api`)'
      service: netbird-api

    netbird-management:
      rule: 'Host(`netbird.DOMAIN.COM`) && PathPrefix(`/management.ManagementService/`)'
      service: netbird-management
      middlewares:
        - netbird-management-middleware

    netbird-management:
      rule: 'Host(`netbird.DOMAIN.COM`) && PathPrefix(`/management.ManagementService/`)'
      service: netbird-management

##======================SERVICES======================##
  services:
    netbird:
      loadBalancer:
        servers:
          - url: http://<IP_ADDRESS>:9180

    netbird-signal:
      loadBalancer:
        servers:
          - url: "http://<IP_ADDRESS>:10000"

    netbird-api:
      loadBalancer:
        servers:
          - url: "http://<IP_ADDRESS>:33073"

    netbird-management:
      loadBalancer:
        servers:
          - url: "http://<IP_ADDRESS>:33073"
          - scheme: h2c

now it works suddenly... i can make a setup key now but... i cannot connect with the netbird client to my setup key I cleared my cloudflare cache and i removed the 33073 port from NETBIRD_MGMT_GRPC_API_ENDPOINT: netbird.domain. com and from NETBIRD_MGMT_API_ENDPOINT: netbird.domain .com

i tried running the docker run command with setup key and domain but it returns a error called

2024-02-18T21:47:35Z INFO client/internal/config.go:217: new Management URL provided, updated to https:// netbird.domain. com (old value https:// netbird.domain. com:443)

2024-02-18T21:47:35Z ERRO client/internal/login.go:105: failed while getting Management Service public key: rpc error: code = Unknown desc = unexpected HTTP status code received from server: 500 (Internal Server Error); transport: received unexpected content-type "text/plain; charset=utf-8"

2024-02-18T21:47:35Z WARN client/cmd/root.go:195: retrying Login to the Management service in 556.795073ms due to error rpc error: code = Unknown desc = unexpected HTTP status code received from server: 500 (Internal Server Error); transport: received unexpected content-type "text/plain; charset=utf-8"

I'm having a similar issue after updating to :latest in the docker-compose that is generated from the configure.sh.

I also use Authentik self hosted
The system was working fine before this latest update
I have a slightly different symptom.  I am directed to authentik to authenticate, then when redirected back to Netbird, it just shows the little loading animation forever.  I the browser console log I see:

TypeError: NetworkError when attempting to fetch resource. [layout-510c7c5d53efb927.js:1:47753](https://netbird.fixitdelrio.com/_next/static/chunks/app/(dashboard)/layout-510c7c5d53efb927.js)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://netbird.fixitdelrio.com:33073/api/users. (Reason: CORS request did not succeed). Status code: (null).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://netbird.fixitdelrio.com:33073/api/users. (Reason: CORS request did not succeed). Status code: (null).

TypeError: NetworkError when attempting to fetch resource. [layout-510c7c5d53efb927.js:1:47753](https://netbird.fixitdelrio.com/_next/static/chunks/app/(dashboard)/layout-510c7c5d53efb927.js)
Uncaught (in promise) undefined
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://netbird.fixitdelrio.com:33073/api/users. (Reason: CORS request did not succeed). Status code: (null).

In the compose logs for the management console I see
2024-08-06T21:56:17Z INFO [context: SYSTEM] management/server/telemetry/app_metrics.go:177: enabled application metrics and exposing on http://<IP_ADDRESS>:8081
Error: failed creating Store: /var/lib/netbird/: jsonfile is not supported. Please refer to the documentation for migrating to SQLite: https://docs.netbird.io/selfhosted/sqlite-store#migrating-from-json-store-to-sq-lite-store
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:495: loading OIDC configuration from the provided IDP configuration endpoint https://auth.routemehome.org/application/o/netbird/.well-known/openid-configuration
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:500: loaded OIDC configuration from the provided IDP configuration endpoint: https://auth.routemehome.org/application/o/netbird/.well-known/openid-configuration
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:502: overriding HttpConfig.AuthIssuer with a new value https://auth.routemehome.org/application/o/netbird/, previously configured value: https://auth.routemehome.org/application/o/netbird/
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:506: overriding HttpConfig.AuthKeysLocation (JWT certs) with a new value https://auth.routemehome.org/application/o/netbird/jwks/, previously configured value: https://auth.routemehome.org/application/o/netbird/jwks/
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:511: overriding DeviceAuthorizationFlow.TokenEndpoint with a new value: https://auth.routemehome.org/application/o/token/, previously configured value: https://auth.routemehome.org/application/o/token/
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:514: overriding DeviceAuthorizationFlow.DeviceAuthEndpoint with a new value: https://auth.routemehome.org/application/o/device/, previously configured value: https://auth.routemehome.org/application/o/device/
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:522: overriding DeviceAuthorizationFlow.ProviderConfig.Domain with a new value: auth.routemehome.org, previously configured value: auth.routemehome.org
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:532: overriding PKCEAuthorizationFlow.TokenEndpoint with a new value: https://auth.routemehome.org/application/o/token/, previously configured value: https://auth.routemehome.org/application/o/token/
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/cmd/management.go:535: overriding PKCEAuthorizationFlow.AuthorizationEndpoint with a new value: https://auth.routemehome.org/application/o/authorize/, previously configured value: https://auth.routemehome.org/application/o/authorize/
2024-08-06T21:57:18Z INFO [context: SYSTEM] management/server/telemetry/app_metrics.go:177: enabled application metrics and exposing on http://<IP_ADDRESS>:8081
Error: failed creating Store: /var/lib/netbird/: jsonfile is not supported. Please refer to the documentation for migrating to SQLite: https://docs.netbird.io/selfhosted/sqlite-store#migrating-from-json-store-to-sq-lite-store

I've done the switch to sqlite previously, so not sure why I'm getting the JSON file error...but maybe that's the issue. i' tried to go through the switch instructions again, but the system said, that a sqlite db file is already in use....so unsure on that front.
Just not sure why I can't access my netbird management pages and dashboard, but it's a hiderance to my productivity for sure.

@bmcgonag Hi,
currently my netbird is fully working ill provide you my full setup so you can replicate that and see if this magically fixes your problem and honestly I've started from scratch since then i was sure all configuration was correctly generated so here is my full tutorial:

If you use Cloudflare:
Make sure to enable: gRPC Allow gRPC connections to your origin server. (In the network category)

The following command will create a folder called netbird then it will cd into netbird/infrastructure_files
REPO="https://github.com/netbirdio/netbird/"; LATEST_TAG=$(basename $(curl -fs -o/dev/null -w %{redirect_url} ${REPO}releases/latest)); echo $LATEST_TAG; git clone --depth 1 --branch $LATEST_TAG $REPO && cd netbird/infrastructure_files

Configure netbird
Configure netbird using Authentik

Go to: Admin interface > Applications > Providers
Click on: Create
Select: OAuth2/OpenID Provider then click Next
Insert the following settings:

Name: Netbird

Authentication Flow: default-authentication-flow (Welcome to authentik!)

Authorization Flow: default-provider-authorization-explicit-consent (Authorize Application)

Protocol Settings:

Client type: Public

Make sure to save the Client ID because you need to add it later in setup.env

Redirect URIs/Origins (RegEx): (Each URI should be entered on a new line)
https://netbird.DOMAIN.COM
https://netbird.DOMAIN.COM.*
http://localhost:53000

Advanced protocol settings:

Access code validity: minutes=10
Subject mode: Based on the User's ID

Go to: Admin interface > Applications > Applications
Click on: Create
Insert the following settings:

Name: Netbird
Slug: netbird
Provider: Netbird

Go to: Admin interface > Directory > Users
Click on: Create Service account
Insert the following settings then click on Create:

Username: netbird
Create group: disable
Expiring: disable

Make sure to save the username and password because you need to add it later in setup.env

Go to: Admin interface > Directory > Groups
Click on: authentik Admins
Click on: Users
Click on: Add existing user
Click on: + (Plus icon)
Select Netbird and click Add

Verify if the endpoint returns a JSON response by calling it from your browser.
https://YOUR_AUTHENTIK_HOST_AND_PORT/application/o/netbird/.well-known/openid-configuration

nano setup.env

Add the following config to setup.env
# Dashboard domain. e.g. app.mydomain.com
NETBIRD_DOMAIN="netbird.DOMAIN.COM"

# OIDC configuration
NETBIRD_MGMT_IDP="authentik"
NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT="https://YOUR_AUTHENTIK_HOST_AND_PORT/application/o/netbird/.well-known/openid-configuration"
NETBIRD_AUTH_AUDIENCE="PROVIDER_CLIENT_ID_HERE"
NETBIRD_AUTH_DEVICE_AUTH_AUDIENCE="PROVIDER_CLIENT_ID_HERE"
NETBIRD_IDP_MGMT_CLIENT_ID="PROVIDER_CLIENT_ID_HERE"
NETBIRD_IDP_MGMT_EXTRA_USERNAME="netbird"
NETBIRD_IDP_MGMT_EXTRA_PASSWORD="SERVICE_ACCOUNT_PASSWORD"

# e.g. netbird-client
NETBIRD_AUTH_CLIENT_ID="PROVIDER_CLIENT_ID_HERE"

# Indicates whether to use Auth0 or not: true or false
NETBIRD_USE_AUTH0="false"
NETBIRD_AUTH_DEVICE_AUTH_PROVIDER="none"

# Enables Interactive SSO Login feature (Oauth 2.0 Device Authorization Flow)
NETBIRD_AUTH_DEVICE_AUTH_CLIENT_ID="PROVIDER_CLIENT_ID_HERE"
NETBIRD_AUTH_SUPPORTED_SCOPES="openid profile email offline_access api"

# If disabled (false) Let's Encrypt will create an account while generating a new certificate.
NETBIRD_DISABLE_LETSENCRYPT="true"
<EMAIL_ADDRESS>
NETBIRD_MGMT_API_PORT=443
NETBIRD_SIGNAL_PORT=443

Configure for traefik
nano fileConfig.yml

http:
  routers:

##########################################################
###======================ROUTERS======================###
  ### NetBird - router ###
    netbird:
      entryPoints:
        - https
        - http
      rule: "Host(`netbird.DOMAIN.COM`)"
      service: netbird

  # NetBird API - router
    netbird-api:
      rule: "Host(`netbird.DOMAIN.COM`) && PathPrefix(`/api`)"
      service: netbird-api

  # NetBird Management - router
    netbird-management:
      rule: "Host(`netbird.DOMAIN.COM`) && PathPrefix(`/management.ManagementService/`)"
      service: netbird-management

  # NetBird Signal - Router
    netbird-signal:
      rule: "Host(`netbird.DOMAIN.COM`) && PathPrefix(`/signalexchange.SignalExchange/`)"
      service: netbird-signal

##########################################################
###======================SERVICES======================###
  services:

  ### NetBird - service ###
    netbird:
      loadBalancer:
        servers:
          - url: http://192.168.1.x:9180

  # NetBird API - service
    netbird-api:
      loadBalancer:
        servers:
          - url: http://192.168.1.x:9184

  # NetBird Management - service
    netbird-management:
      loadBalancer:
        servers:
          - url: h2c://192.168.1.x:9184

  # NetBird Signal - service
    netbird-signal:
      loadBalancer:
        servers:
          - url: h2c://192.168.1.x:9182

./configure.sh

cd artifacts && docker compose up -d

The following docker-compose.yml file is just a example for using it with a existing reverse proxy you could replace it existing docker-compose.yml with this one in the artifacts folder but make sure you change the DOMAIN. COM to your domain and the PROVIDER_CLIENT_ID_HERE

services:
  dashboard:
    image: netbirdio/dashboard:latest
    container_name: netbird-dashboard
    restart: unless-stopped
    ports:
      - 9180:80
#      - 443:443
    environment:
      # Endpoints
      NETBIRD_MGMT_API_ENDPOINT: https://netbird.DOMAIN.COM:443
      NETBIRD_MGMT_GRPC_API_ENDPOINT: https://netbird.DOMAIN.COM:443
      # OIDC
      AUTH_AUDIENCE: PROVIDER_CLIENT_ID_HERE
      AUTH_CLIENT_ID: PROVIDER_CLIENT_ID_HERE
      AUTH_CLIENT_SECRET:
      AUTH_AUTHORITY: https://authentik.DOMAIN.COM/application/o/netbird/
      USE_AUTH0: false
      AUTH_SUPPORTED_SCOPES: openid profile email offline_access api
      AUTH_REDIRECT_URI:
      AUTH_SILENT_REDIRECT_URI:
      NETBIRD_TOKEN_SOURCE: accessToken
      # SSL
      NGINX_SSL_PORT: 443
      # Letsencrypt
#      - LETSENCRYPT_DOMAIN=
#      - LETSENCRYPT_EMAIL=
#    volumes:
#      - ./netbird_container/netbird-letsencrypt:/etc/letsencrypt/
    logging:
      driver: "json-file"
      options:
        max-size: "500m"
        max-file: "2"
    networks:
      - proxy

  signal:
    image: netbirdio/signal:latest
    container_name: netbird-signal
    restart: unless-stopped
    volumes:
      - ./netbird_container/netbird-signal:/var/lib/netbird
    ports:
      - 9182:80
  #      # port and command for Let's Encrypt validation
  #      - 443:443
  #    command: ["--letsencrypt-domain", "", "--log-file", "console"]
    logging:
      driver: "json-file"
      options:
        max-size: "500m"
        max-file: "2"
    networks:
      - proxy

  management:
    image: netbirdio/management:latest
    container_name: netbird-management
    restart: unless-stopped
    depends_on:
      - dashboard
    volumes:
      - ./netbird_container/netbird-mgmt:/var/lib/netbird
#      - ./netbird_container/netbird-letsencrypt:/etc/letsencrypt:ro
      - ./management.json:/etc/netbird/management.json
    ports:
      - 9184:443 #API port
  #    # command for Let's Encrypt validation without dashboard container
  #    command: ["--letsencrypt-domain", "", "--log-file", "console"]
    command: [
      "--port", "443",
      "--log-file", "console",
      "--log-level", "info",
      "--disable-anonymous-metrics=false",
      "--single-account-mode-domain=netbird.DOMAIN.COM",
      "--dns-domain=netbird.selfhosted"
      ]
    logging:
      driver: "json-file"
      options:
        max-size: "500m"
        max-file: "2"
    networks:
      - proxy

  coturn:
    image: coturn/coturn:latest
    container_name: netbird-coturn
    restart: unless-stopped
    #domainname: netbird.DOMAIN.COM # only needed when TLS is enabled
    volumes:
      - ./turnserver.conf:/etc/turnserver.conf:ro
    #      - ./privkey.pem:/etc/coturn/private/privkey.pem:ro
    #      - ./cert.pem:/etc/coturn/certs/cert.pem:ro
    network_mode: host
    command:
      - -c /etc/turnserver.conf
    logging:
      driver: "json-file"
      options:
        max-size: "500m"
        max-file: "2"

networks:
  proxy:
    external: true

I hope this works and that you might see a configuration that was different then my setup

Hey @deffcolony I appreciate it. This is essentially exactly what I have setup.
As I stated, my setup was working, and has been for months now.  I have peers that have been connected for a while.  I updated the project (using docker compose pull and then docker compose up -d --force-recreate) This this all started happening. I tried to go in and re-run the configure.sh command, which generated new configs, but were no different than my old ones except for that part for my turn server, so I just moved back to the original files in the artifacts folder.
I just don't know what may be causing the issue suddenly.  I have a second server I'm running, but this experience makes me very leary of updating it.  At the same time, I want something like a VPN to have all the latest stuff for security reasons.
When I get time, i'll go back through and see if I can check line by line against your setup.  I don't use Traefik, but everything else should be the same.

Describe the problem
I am selfhosting netbird on docker together with traefik and authentik.. When i visit netbird.domain.com i get the following error  i cannot click on logout because it does nothing... i found the following errors in the console of the browser

Access to fetch at 'https://authentik.domain.com/application/o/netbird/.well-known/openid-configuration' from origin 'https://netbird.domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
2731-e746de7d02695f25.js:1

GET https://authentik.domain.com/application/o/netbird/.well-known/openid-configuration net::ERR_FAILED 200 (OK)

My setup

OS: Ubuntu server 22.04.3 LTS x86_64
Docker version 25.0.3, build 4debf41
Traefik as the reverse proxy
Authentik as the idps

docker-compose.yml
version: "3.8"
services:
  dashboard:
    image: netbirdio/dashboard:latest
    container_name: netbird-dashboard
    environment:
      NETBIRD_MGMT_API_ENDPOINT: https://netbird.DOMAIN.COM:33073
      NETBIRD_MGMT_GRPC_API_ENDPOINT: https://netbird.DOMAIN.COM:33073
      AUTH_AUDIENCE: MY_CLIENT_ID_HERE
      AUTH_CLIENT_ID: netbird-client
#      AUTH_CLIENT_SECRET:
      AUTH_AUTHORITY: https://authentik.DOMAIN.COM/application/o/netbird/
      USE_AUTH0: false
      AUTH_SUPPORTED_SCOPES: openid profile email offline_access api
#      AUTH_REDIRECT_URI:
#      AUTH_SILENT_REDIRECT_URI:
      NETBIRD_TOKEN_SOURCE: accessToken
#      NGINX_SSL_PORT: 443
#      LETSENCRYPT_DOMAIN:
#      LETSENCRYPT_EMAIL:
    volumes:
      - ./netbird_container/netbird-letsencrypt:/etc/letsencrypt/
    ports:
      - 9180:80
#      - 9181:443
    restart: unless-stopped
#    labels:
#      - traefik.enable=true
#      - traefik.http.routers.netbird.rule=Host(`netbird.DOMAIN.COM`)
#      - traefik.http.routers.netbird.entrypoints=https
#      - traefik.http.services.netbird.loadbalancer.server.url=http://<IP_ADDRESS>:9180
##      - traefik.http.services.netbird-dashboard.loadbalancer.server.port=80
#      - traefik.http.routers.netbird.middlewares=cors
#      - traefik.http.middlewares.cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT
#      - traefik.http.middlewares.cors.headers.accesscontrolallowheaders=*
#      - traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=*
#      - traefik.http.middlewares.cors.headers.accesscontrolmaxage=100
#      - traefik.http.middlewares.cors.headers.addvaryheader=true

  signal:
    image: netbirdio/signal:latest
    container_name: netbird-signal
    volumes:
      - ./netbird_container/netbird-signal:/var/lib/netbird
    ports:
      - 10000:80
    # port and command for Let's Encrypt validation
#      - 443:443
    command: ["--letsencrypt-domain", "", "--log-file", "console"]
    restart: unless-stopped
#    labels:
#    - traefik.enable=true
#    - traefik.http.routers.netbird-signal.rule=Host(`netbird.DOMAIN.COM`) && PathPrefix(`/signalexchange.SignalExchange/`)
#    - traefik.http.services.netbird-signal.loadbalancer.server.port=80
#    - traefik.http.services.netbird-signal.loadbalancer.server.scheme=h2c

  management:
    image: netbirdio/management:latest
    container_name: netbird-management
    depends_on:
      - dashboard
    volumes:
      - ./netbird_container/netbird-mgmt:/var/lib/netbird
      - ./netbird_container/netbird-letsencrypt:/etc/letsencrypt:ro
      - ./management.json:/etc/netbird/management.json
    ports:
      - 33073:443 # API port
      # command for Let's Encrypt validation without dashboard container
#    command: ["--letsencrypt-domain", "", "--log-file", "console"]
    command: [
      "--port", "443",
      "--log-file", "console",
      "--disable-anonymous-metrics=false",
      "--single-account-mode-domain=netbird.DOMAIN.COM",
      "--dns-domain=netbird.selfhosted"
      ]
    restart: unless-stopped
#    labels:
#    - traefik.enable=true
#    - traefik.http.routers.netbird-api.rule=Host(`netbird.DOMAIN.COM`) && PathPrefix(`/api`)
#    - traefik.http.routers.netbird-api.service=netbird-api
#    - traefik.http.services.netbird-api.loadbalancer.server.port=443
#    - traefik.http.routers.netbird-management.rule=Host(`netbird.DOMAIN.COM`) && PathPrefix(`/management.ManagementService/`)
#    - traefik.http.routers.netbird-management.service=netbird-management
#    - traefik.http.services.netbird-management.loadbalancer.server.port=443
#    - traefik.http.services.netbird-management.loadbalancer.server.scheme=h2c

  coturn:
    image: coturn/coturn:latest
    container_name: netbird-coturn
    command:
      - -c /etc/turnserver.conf
    domainname: netbird.DOMAIN.COM
    volumes:
      - ./turnserver.conf:/etc/turnserver.conf:ro
#      - ./privkey.pem:/etc/coturn/private/privkey.pem:ro
#      - ./cert.pem:/etc/coturn/certs/cert.pem:ro
    network_mode: host
    restart: unless-stopped

setup.env
# Dashboard domain. e.g. app.mydomain.com
NETBIRD_DOMAIN="netbird.DOMAIN.COM"

# OIDC configuration
NETBIRD_MGMT_IDP="authentik"
NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT="https://YOUR_AUTHENTIK_HOST_AND_PORT/application/o/netbird/.well-known/openid-configuration"
NETBIRD_AUTH_AUDIENCE="PROVIDER_CLIENT_ID_HERE"
NETBIRD_AUTH_DEVICE_AUTH_AUDIENCE="PROVIDER_CLIENT_ID_HERE"
NETBIRD_IDP_MGMT_CLIENT_ID="PROVIDER_CLIENT_ID_HERE"
NETBIRD_IDP_MGMT_EXTRA_USERNAME="netbird"
NETBIRD_IDP_MGMT_EXTRA_PASSWORD="SERVICE_ACCOUNT_PASSWORD"

# e.g. netbird-client
NETBIRD_AUTH_CLIENT_ID="netbird-client"

# Indicates whether to use Auth0 or not: true or false
NETBIRD_USE_AUTH0="false"
NETBIRD_AUTH_DEVICE_AUTH_PROVIDER="none"

# Enables Interactive SSO Login feature (Oauth 2.0 Device Authorization Flow)
NETBIRD_AUTH_DEVICE_AUTH_CLIENT_ID="PROVIDER_CLIENT_ID_HERE"
NETBIRD_AUTH_SUPPORTED_SCOPES="openid profile email offline_access api"

# If disabled (false) Let's Encrypt will create an account while generating a new certificate.
NETBIRD_DISABLE_LETSENCRYPT="true"
<EMAIL_ADDRESS>
fileConfig.yml (Traefik)
http:
  routers:
    # netbird router
    netbird:
      entryPoints:
        - https
      rule: 'Host(`netbird.domain.com`)'
      service: netbird

  services:
     # netbird service
    netbird:
      loadBalancer:
        servers:
          - url: http://<IP_ADDRESS>:9180

Context I have disabled SSL inside netbird since my bought domain already provides the SSL (this is with https on netbird.domain.com)
I have followed all steps for authentik at: https://docs.netbird.io/selfhosted/identity-providers#authentik

I am using cloudflare and have enabled gRPC

thanks your issue, solved my problem by reading your configurations.


Instructions on how to contribute

Contributing instructions say to do:
git clone https://github.com/vuejs/language-tools.git
cd language-tools
pnpm install
pnpm run build

but since some of the relevant dependencies live in https://github.com/volarjs/volar.js, if one wants to have all present locally, how to set it up? Could you update the instructions and specify how to set it up so that all needed components are local and editable?

Yes the readme is outdated, now you need to work with https://github.com/volarjs/workspace, appreciate if you can help update the readme.


{Compability} Custom player models and Physics Mod Ragdolls

Instead of becoming a cool looking ragdoll, ur character freaking explodes when using physics mod ragdolls, i thought it would be cool if instead they just became ragdolls and you could set which of their limbs move and which doesn't

This feels like something more suited for Haubna, as the issue would stem from odd modeling of the ragdoll, not incompatibility on Toms part.


feat(#1176): Description for radio and checkbox inputs

[ ] Issue-1: Clicking on description should not make selection.
[ ] Issue-2: Checkbox should not lose focus on toggle.
[ ] Issue-3: Radio button & Checkbox should also announce the text and description, currently it announces the radio-group/checkbox-group
[ ] Issue-4: the checkbox should not have a grey border on the selected state
[ ] Issue-5: regarding the focus states and hover states: When a radio item or checkbox is focused, there should not be a hover state (it should remain focused state until not focused anymore)

Radio Button Accessibility (Issue-3) :

Current:  description  radio button  unavailable  checked  6 of 18
Expected: Home Delivery  radio button  checked  2 of 3

Checkbox Accessibility (Issue-3) :

Current: Description  check box  not checked
Expected: Mustard  check box  checked

Steps to Reproduce, CheckBox: (Issue-5)

press tab and focus on checkbox
hover over the checked checkbox
here, background-color should not change (there should not be a hover state)

Steps to Reproduce, Radio: (Issue-5)

press tab and focus on radio button
hover over the checked radio button
here, background-color should not change and focus should be active ( there should not be a hover state )

Issue-4:

Expected:

Current:

:tada: This PR is included in version 2.5.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.14.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.14.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.14.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.14.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Possible issue with Microsoft Fakes

A project that uses MSTest.Sdk/3.7.0 and EnableMicrosoftTestingExtensionsFakes set to true has issues execution tests that use fakes. Partial trace output:
  Message:
Test method TestMethod1 threw exception:
Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: Failed to resolve profiler path from COR_PROFILER_PATH and COR_PROFILER environment variables.

  Stack Trace:
IntelliTraceInstrumentationProvider.ResolveProfilerPath()
IntelliTraceInstrumentationProvider.Initialize()
UnitTestIsolationRuntime.InitializeUnitTestIsolationInstrumentationProvider()
ShimRuntime.CreateContext()

Unfortunately, I was not able to create a project to reproduce the issue.

Some additional observations:

Test project targets .NET Framework 4.8.
Running EXE directly results in the same error.
Running the tests using vstest.console.exe has no issues.

Finally, I was able to create a sample project.


chore(docs): add documentation for build --deploy-url

This doc is for https://github.com/angular/angular-cli/pull/3285

IMHO the documentation added here is very scarce; I had to read the whole original pull request to understand the intended behaviour, relationship to webpack options and interactions with base-href (this last point still unclear).

Seems to have already been added meanwhile.


Remove the is_claimed field from the user model [PLAT-1055]

Purpose
There was an old #TODO in user.py that mentioned that the is_claimed field might not be in use, as it was pretty much mirroring is_registered. While most users had both of these fields as the same, there were quite a few where they were different. Turns out this could probably be because the disable user view sets is_registered = False and does not change is_claimed.
With some help from @mfraezz, confirmed indeed that on a prod dump
OSFUser.objects.exclude(is_claimed=F('is_registered')).count()
is the same as
OSFUser.objects.exclude(is_claimed=F('is_registered')).filter(date_disabled__isnull=False).count()
and those users with the descrepency did indeed all have is_claimed still set to True.
Because of this, pretty sure we can safely remove the field and change the usages of is_claimed to just use is_registered.
Changes

Remove the is_claimed field from the model, add migration
Change old usages of is_claimed to is_registered

QA Notes
This is mostly not a user facing change. The one user-facing spot seems to be determining if a disabled user's contributor name is a link or not on a project's contributor list, so that would be a good place to spot check!
Documentation
None needed
Side Effects
None anticipated
Ticket
https://openscience.atlassian.net/browse/PLAT-1055

Ah, just one merge conflict

Headed to staging3...

The one user-facing spot seems to be determining if a disabled user's contributor name is a link or not on a project's contributor list, so that would be a good place to spot check!

I checked this on both staging1 (develop) and staging3 (release/next-platform, which has this PR). Even after disabling a user with user.disable_account(), the user still appears as a link in contributor lists. I think that's not desired behavior, but it's outside the scope of this PR.


There's a problem!

What happened

How to reproduce

Issue migrated to Methuselah96/immutable-js-test#1


set GitHub Page for homepage

set GitHub Page for homepage

copy-paste project issues from global projects to local projects. job has done.


sin prodder's upkeep ability damage is not prevented by greater realm of preservation

Moved to modo-bugs.


https://aws.amazon.com/blogs/mobile/amplify-next-js-13/

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
Next JS - ISR - Documentation Stating Falsehoods
AWS Region
us-east-1
Amplify Hosting feature
SSR
Describe the bug
Quite simply, the documentation states here https://aws.amazon.com/blogs/mobile/amplify-next-js-13/ that ISR is available for AWS Amplify. I would like to know who decided it was legal to lie in documentation to get sales?
I have dug through tons of issues closed by some individual that seems to provide no further details on why ISR doesn't work, they just keep deflecting and saying they will update the documentation but it has been 6+ months.
Can you please provide some accurate information about whether or not you can truly support features you state are available in this ecosystem. It's pretty sad Vercel uses AWS infrastructure, and this is where we end up with AWS Amplify.
Expected behavior
Make ISR work as your documentation states or you may regret lying in your documentation.
Reproduction steps

Setup nextjs app with amplify
Enable SSR
Setup ISR
Deploy
Lies

Build Settings
Irrelevant

Log output
Irrelevant
Additional information
Irrelevant

Hi @ConsultantsCombined, thanks for reaching out to us regarding the support of Incremental Static Regeneration (ISR) for Next.js apps on Amplify Hosting.
We can confirm that we support the ISR feature for Next.js apps on Amplify Hosting with both the Web Compute platform as well as the legacy Web_Dynamic platform.
Today, we do not support On-demand ISR with either of the platforms and our team is working extensively to prioritize this feature for our customers: https://github.com/aws-amplify/amplify-hosting/issues/3116
The lack of support for On-demand ISR has already been outlined in our official AWS documentation - https://docs.aws.amazon.com/amplify/latest/userguide/ssr-Amplify-support.html#supported-unsupported-features
We will be closing this issue in favor of the documentation. As a reminder, please be respectful when raising issues and follow Amazon Open Source Code of Conduct. We endeavor to provide the best customer experience in a respectful and welcoming environment. Thank you!


Fix handling of dataset path

Fixes an issue where the dataset path is not correctly handled. We were not correctly handling the case the user passes an absolute path to the local registry when registering a dataset in offline mode.
I also disabled path checking for all cases except when registering the dataset, which should be the only time it is required.

This is not the right fix.


New version: Zen-Team.Zen-Browser version 1.0.0-a.29

Pull request has been created with komac v2.4.1 :rocket:
Microsoft Reviewers: Open in CodeFlow

The website works, the CI gets stuck on the browser check which sends a 429.

The website works, the CI fails because it gets stuck on the security/browser check.


about Python3.5

I found bottlepy is not work when I update to Python3.5,can you tell me how to deal with?

Please be more specific.

bottlepy can't use in python3.5,It will be worry

Please give the error message you're getting

$ python -V
Python 3.5.1
$ cat bt.py
import bottle
from bottle import route, run, template

@route('/hello/<name>')
def index(name):
    return template('Hello {{name}}!', name=name)

run(host='localhost', port=8080)

$ python bt.py
Bottle v0.12.9 server starting up (using WSGIRefServer())...
Listening on http://localhost:8080/
Hit Ctrl-C to quit.

$ curl http://localhost:8080/hello/world
Hello world!~

No problem.


'utf-8' codec can't decode byte 0xb2 in position 7: invalid start byte

How to solve it

I had the same problem in windows7 because executed the following command in the transparentvideo function in the backgrounremover/utilities.py file:
cmd = "nice -10 ffmpeg -y -nostats -loglevel 0 -i %s -i %s -filter_complex '[1][0]scale2ref[mask][main];[main][mask]alphamerge=shortest=1 ' -c:v qtrle -shortest %s" % (              file_path, temp_file, output)
 process = sp.Popen(cmd, shell=True, stdout=sp.PIPE, stderr=sp.PIPE)
stdout, stderr = process.communicate()
However, the 'nice' command cannot be used in this system, and the following error will be thrown in the Chinese environment:
'nice' is not an internal or external command, nor is it a runnable program
or batch file.
The stderr may be gbk encoding, use utf-8 decoding to cause 'utf-8' codec can't decode byte 0xb2 in position 7: invalid start byte
I removed 'nice -10 ' when judging the OS as windows,
backgroundremover -i "/path/to/image.jpeg" -o "output.png" works fine, but the output file has only audio and no image.
Both -tg and -mk return the expected results.

This should be fixed with the newest version, pip install --upgrade backgroundremover

I have update this version

If you want to push a pr without nice in tbe utils ffmpeg commands, i will
accept
El jue, 15 de jun de 2023 20:22, MrZhang @.***>
escribió:

I have update this version
—
Reply to this email directly, view it on GitHub
https://github.com/nadermx/backgroundremover/issues/25#issuecomment-1594001273,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYACXABGXFQ4KFMI4AZJVLXLO7P3ANCNFSM5MCTCCRA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


uORB combine VTOL FW and MC virtual topics

Nice cleanup!

@dagar Can you please validate in a log that the individual topics show up in the logger and can be plotted?

@sanderux you can optionally add them to logger -
(https://github.com/PX4/Firmware/blob/2a175aa2f90c5cbbcdbb2902e352b634181ea0cf/src/modules/logger/logger.cpp#L560).
I don't think we should always log them, but it could conceivably be useful to temporarily add during VTOL testing/work.

That SITL setup needs some tuning, but attitude and rates are generally tracking before, during, and after transitions.


Improper handling of Array.slice?

Hi,
I might be crazy but I'm having trouble with flow and a particular piece of my code.
/* @flow */

export function func1(object: Object, prefix: string): Array<number>  {
    const results = [];
    for (let property in object) {
        if (property.startsWith(`${prefix}-`)) {
            const segments = property.split('-');
            const id = segments[segments.length - 1];
            if (id) {
                results.push(parseInt(id));
            }
        }
    }

    return results
}

export function func2(object: Object, prefix: string): Array<number> {
    const results = [];
    for (let property in object) {
        if (property.startsWith(`${prefix}-`)) {
            const id = property.split('-').slice(-1);
            if (id) {
                results.push(parseInt(id));
            }
        }
    }

    return results
}

console.log(func1({'team-1': 'on'}, 'team'));
console.log(func2({'team-1': 'on'}, 'team'));

The error is:
property-split-slice-parse.js:23
 23:             const id = property.split('-').slice(-1);
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method `slice`
 25:                 results.push(parseInt(id));
                                           ^^ array type. This type is incompatible with
 17: declare function parseInt(string: string, radix?: number): number;
                                       ^^^^^^ string. See: /tmp/flow/flowlib_39914473/core.js:17

Found 1 error

I don't expect any errors and I don't get an error from the first example.
This is with flow 0.17.0 on Ubuntu.
Sorry if it is a duplicate. I've done a quick search.
Cheers,
Michael

slice returns an Array, so id is an Array. parseInt takes a string and you pass id in. array is incompatible with string. Did you mean slice(-1)[0]?

Ah, sorry. You're totally right. I was misled by that fact that it works but that was foolish. I can even see how the error message explains it now though I didn't make sense to be before. I guess I 'knew' what slice returned so the array bit must have been a mistake... Sorry for the trouble!


How to trigger research

been having some trouble with research as i cant figure out how to trigger it properly without the "is not defined" error
i've looked through the files and found that the propper name is 'PROTOSSAIRWEAPONSLEVEL1' but that hasn't worked
i've also tried various other methods of doing this but none of them seem to work properly
below is my latest attempt
async def research(self):
    for csc in self.units(CYBERNETICSCORE).ready:
        if self.minerals >= 100 and self.vespene >= 100 and not self.PAW_started:
            await self.do(csc(RESEARCH_AIRWEAPONSLEVEL1))
            self.PAW_started = True

if self.units(UnitTypeId.EVOLUTIONCHAMBER).ready.exists:
    building = self.units(UnitTypeId.EVOLUTIONCHAMBER).ready.first
    abilities = await self.get_available_abilities(building)
    if AbilityId.RESEARCH_ZERGMELEEWEAPONSLEVEL1 in abilities:
        if self.can_afford(AbilityId.RESEARCH_ZERGMELEEWEAPONSLEVEL1) and building.noqueue:
            await self.do(building(AbilityId.RESEARCH_ZERGMELEEWEAPONSLEVEL1))

This is what I did for when I was trying to upgrade...
Also, in your example above, I noticed you have RESEACH_AIRWEAPONSLEVEL1 instead of CYBERNETICSCORERESEARCH_PROTOSSAIRWEAPONSLEVEL1. That could be your issue. If you look in sc2.ids.upgrade_id.py, you will find a list of abilities that can be used. It's just a matter of finding the one that suits your needs

I suppose that solved it. :)
Also see #33

I am having the same issue.
async def research(self):
	building = self.units(SPAWNINGPOOL).ready
	for b in building:
		if self.can_afford(RESEARCH_ZERGLINGMETABOLICBOOST):
			await self.do(building(RESEARCH_ZERGLINGMETABOLICBOOST))

The error is,
Traceback (most recent call last):
  File "C:\Users\Algrus\Anaconda3\lib\site-packages\sc2\main.py", line 150, in _play_game_ai
    await ai.on_step(iteration)
  File "C:\Users\Algrus\Documents\Programs\StarCraft2Bot\sc2bot.py", line 26, in on_step
    await self.research()
  File "C:\Users\Algrus\Documents\Programs\StarCraft2Bot\sc2bot.py", line 97, in research
    await self.do(building(RESEARCH_ZERGLINGMETABOLICBOOST))
  File "C:\Users\Algrus\Anaconda3\lib\site-packages\sc2\units.py", line 47, in __call__
    return UnitSelection(self, *args, **kwargs)
  File "C:\Users\Algrus\Anaconda3\lib\site-packages\sc2\units.py", line 360, in __init__
    ), f"selection is not None or of type UnitTypeId or Set[UnitTypeId]"
AssertionError: selection is not None or of type UnitTypeId or Set[UnitTypeId]


Add lock file

Without a package-lock.json and/or yarn.lock file, any kind of breaking update to a dependency could break a freshly cloned copy of the repo. Best practices suggest adding a lock.
See this stack overflow question

This can be closed as one has been added:
https://github.com/yakyak/yakyak/blob/master/package-lock.json


Initial value setting of 0 prevents you from emptying out the editable field

Typing in a different non zero/blank value will then allow you to empty the field after the fact. You could also type in 0, save and emptying the value would still work, but if you rebuild the editable field on the success callback, this will prevent emptying out the field from functioning again since x-editable would see the value option set to 0 again.

The same here.


correct karye spelling, css and minor adjustments

I changed the titles according to their wishes except for the subpage titles where it would cause other issues
As we discussed with Kinga, I also changed the color distribution (so that the pages with geodata have similar colours) and did some css refactoring
Also adjusted the "Browse the data" menu according to the order of the pages on the index page
I noticed that the symbols in the middle line of the index page are not moving to the side and hovering when moving the mouse over them, but I could not find a reason why they shouldn't so I changed the code accordingly.
Hope these changes are fine!

I saw there are conflicts in the css, I already started to resolve them

I saw there are conflicts in the css, I already started to resolve them

Yes, I needed to change the CSS for the colours of the icon on the list view pages, but shouldn't be too complicated to resolve


Plugin not showing up in Stream Deck

I'm developing a Stream Deck plugin, but the plugin doesn't show up in the Elgato Stream Deck app.
$ ls  -1 "~/Library/Application Support/com.elgato.StreamDeck/Plugins/works.wen.sdPlugin"
defaultImage.png
<EMAIL_ADDRESS>en.json
manifest.json
placeholder.png
<EMAIL_ADDRESS>pluginIcon.png
<EMAIL_ADDRESS>app

How do I find out what's going wrong?

Closing, as this is an issue with the C++ SDK.


Added shield  badges in readme

Changes proposed ✍
What

🤖 Generated by Copilot at 5b881c0
This change adds some badges to the README.md file of the CrowdDotDev/crowd.dev repository. The badges show some project metrics and indicate hacktoberfest participation.

🤖 Generated by Copilot at 5b881c0

README.md shines
Badges show project status
Autumn of coding

Why
How

🤖 Generated by Copilot at 5b881c0

Add badges to display project information on README.md (link)

Checklist ✅

[ ] Label appropriately with Feature, Improvement, or Bug.
[ ] Add screehshots to the PR description for relevant FE changes
[ ] New backend functionality has been unit-tested.
[ ] API documentation has been updated (if necessary) (see docs on API documentation).
[ ] Quality standards are met.

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


Always index Id fields

Summary
When importing Salesforce data - ID is always going to be useful joins and uniqueness purposes.
Often it's important to have to avoid duplicating rows during data import.
Please describe the problem you are trying to solve.
When I re-run an extract from Salesforce, I want it to fail ugly if it's about to append a duplicate data set to the table.
Proposed Solution
All fields named Id get a unique index.

There is an option for this in the preferences today. It drives the detection by field type not name.

Looks like there is an issue where these columns aren't getting indexed.  Created a PR to fix


fix : links of contribuion.md

🛠 Fixes Issue : "#6"

👨💻 Changes:

list of all the changes
fixed the links of contribution.md

✔ Check List

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📷 Screenshots

Awesome :star_struck:


Minor contact page updates

Update image.
Add Discord link and suggest it for quicker responses.

love it @filipviz thank you!


[FLINK-5167] StreamExecutionEnvironment set function return this in…

StreamExecutionEnvironment's set function return this instead of void
for example :
public void setNumberOfExecutionRetries(int numberOfExecutionRetries) {
config.setNumberOfExecutionRetries(numberOfExecutionRetries);
}
change to:
public StreamExecutionEnvironment setNumberOfExecutionRetries(int numberOfExecutionRetries) {
config.setNumberOfExecutionRetries(numberOfExecutionRetries);
return this;
}

[X] General

The pull request references the related JIRA issue ("[FLINK-5167] StreamExecutionEnvironment's set function return this instead of void")
The pull request addresses only one issue
Each commit in the PR has a meaningful commit message (including the JIRA id)

[X] Documentation

Documentation has been added for new functionality
Old documentation affected by the pull request has been updated
JavaDoc for public methods has been added

[X] Tests & Build

Functionality added by the pull request is covered by tests
mvn clean verify has been executed successfully locally or a Travis build has passed

The PR changes several @Public and @PublicEvolving methods.
We do not touch @Public interfaces for 1.x releases and also try to avoid to modify @PublicEvolving interface except for very good reasons. We have a Maven plugin that prevents changes that break the binary compatibility of methods and classes annotated with @Public.
By building the code before opening a pull request, you can early detect such issues.
I don't think that we can and should merge this PR.

The PR changes several @Public and @PublicEvolving methods.
hi, @fhueske
Today when set some config, find some function cant't chained one by one. So want to complete all the function needed return this conveniently. If chained setting config, the setting will be together, avoid setting config evrywhere.

It's only better used, not important. You can close this. Failed building is noisy.

Thanks for the proposal @shijinkui. I agree that the changes might improve the usability a bit for some users. However, the improvements are not significant enough to break the API, IMO.
I'll close this PR and the issue.
Thanks, Fabian

@shijinkui I think these changes would be great for Flink 2.0
Can you add them to this list here? That is where we collect all API-.breaking changes that we want to add.
https://issues.apache.org/jira/browse/FLINK-3957
Thanks!

Can you add them to this list here? That is where we collect all API-.breaking changes that we want to add.

Done.


NFT-Market-Place

Project title
NFT-Market-Place
Project Description
An NFT-MarketPlace where you can list and sell your nft , and we will use IPFS to store our data.
Doc Domain

[x] Solidity , ReactJs ,Ether.js , Hardhat, IPFS

Are you contributing under any open-source program ?
SSOC

Great idea @AnmolSirola please tell the folder structure

I will be adding this project in level2 folder


docs: updated docs grammars to improve readability

What does this PR introduce?
This PR fixes grammatical errors found in the docs.
📄 Documentation

Noted @CJ42 I'll get right on it.

Hey @CJ42 @fhildeb any update on this? I have a couple more PRs to send in.


Uploading a file bigger than 128mb does not let the user "X" out of the stuck file

Steps

Go to osf.io on Safari, Chrome, or Firefox.
Go to a project in which you have admin access.
In the Files viewer, click on OSF Storage.
Click the "Upload" button.
Upload a file that is bigger than 128 mb.
Try to press the "X" button next to the stalled loading bar.

Expected behavior
I expected that I would be able to "X" out of the un-uploadable file.
Actual behavior
Pressing the "X" button does nothing. In order to get the file out of the file viewer, I have to refresh the page.

This is a duplicate issue as https://github.com/CenterForOpenScience/osf.io/issues/2822. Close this one. And continue discussion there.


Admission controller types and example

Resolves #477

i'll rebase it back to one commit to remove all the review iterations and i'm good after that!


Global Cache

The Global Cache, which has a large number of objects in a large number of partitioned tables or PaaS user scenarios, currently PG uses the session-level Catalog Cache, which can result in a large amount of object metadata memory footprint, resulting in a large amount of wasted memory.

Global plan cache and catalog cache are always desirable features.


Remove/save behaving very incorrectly for many-to-many relationship.

In a rush... I will fill this out more soon.
But remove with a save is basically removing all associated records instead of just those specified.  I'm using sails-mysql, but I've found that the issue lives in waterline itself.  save triggers a removal of many-to-many records correctly, but the nested operations for save's implicit update is completely destroying all of a person's friends (per example below).  There seems to be a sync of join table data going awry.  I was bummed to see that approach to keeping nested elements up-to-date– it cannot work for non-transactional queries, which waterline does not support.  And it's prone to error when racing against a possibly simultaneous remove operation.
person.friends.remove(1);
person.save(function() {
    // now person has no friends
});

If you use many-to-many associations, this affects you!  Would love to get a PR up today.  Workin' on it, but would love some help.

Update...
Seems this happens when person is populated with a subset of friends.  Only that subset will be restored during the nested operations update.  Definitely a huge bug!  @particlebanana what's the purpose of adding/removing relations during an update?  It not documented and seems unnecessary to sync, but I'm curious to get some input.  I do agree that updating the values of nested objects makes sense, but I don't think that syncing the relationships themselves is a good idea, especially via syncing.  Code example of the issue:
Person.findOne(666).populate('friends', {id: 42})
.then(function(person) {
    person.friends.remove(42);
    person.save() {
        // now I have no friends, since nested operations assumed that this person had only one friend to begin with (friend 42), which is false.
    }
})

Relevant stack trace of the save/update causing this,
    at module.exports [as update] (XXX/node_modules/waterline/lib/waterline/query/dql/update.js:29:13)
    at new module.exports (XXX/node_modules/waterline/lib/waterline/model/lib/associationMethods/update.js:61:14)
    at Array.async.auto.updateRecord [as 1] (XXX/node_modules/waterline/lib/waterline/model/lib/defaultMethods/save.js:73:41)
    at XXX/node_modules/waterline/node_modules/async/lib/async.js:487:38
    at Array.forEach (native)
    at _each (XXX/node_modules/waterline/node_modules/async/lib/async.js:46:24)
    at Object.async.auto (XXX/node_modules/waterline/node_modules/async/lib/async.js:458:9)
    at new module.exports (XXX/node_modules/waterline/lib/waterline/model/lib/defaultMethods/save.js:42:9)
    at prototypeFns.save (XXX/node_modules/waterline/lib/waterline/model/index.js:34:14)

Nested updates were the worst thing we ever added to Waterline. If I could easily strip them out today I would do it in a heartbeat. Yes this whole problem is because you only have a single record in the population and the sync that happens when you call save will think there is only a single record.
For now remove the population before the add or remove and you will be safe. If someone has a use case for nested operations now is the time to state your case or they are getting ripped out.

Cool!  Good to hear.  Thx for the quick response.  I think the nested update is reasonable, but I never use it.  The nested add/removes, though, don't seem needed.  When I comment that out my code works, but a test fails.  At first glance I think it'll be relatively easy to take that out.

It's all about the save method here. You have the whole object on the instance so when you call .save it's doing the nested sync stuff. That way when someone populates friends and then changes person.friends[0].name = 'bob' and then calls person.save it just works. If they were using a nosql database that's find but by making that work across all adapters you end up with a horrible mess.

Nested create is pretty useful for associations. I'm not clear on what's so different about nested update that makes it totally crazy.

Updating doesn't require the sync craziness, is all.  One model can't assume that it's populated with every instance of a particular association if you're also allowing for criteria when populating an association (which seems to be a crucial feature).  Again, I don't mind the simple nested updates, but it seems like the sync needs to go–it's a data-ruiner!

Posted a PR.

@devinivy thanks I'll take a look today. It's pretty big so I'll need to do some testing.

I posted in the sailsjs core google groups about what I think? might be us experiencing the same issue. It's the only kink remaining before our app can hit production :(

Yes, I've had to limit access to certain API endpoints because of this too, which breaks some functionality.  Can you link to your post here?

it's technically a private google group but in case you get access: https://groups.google.com/forum/#!topic/sailsjs-core-team/UeNaTZ1cCxI

@devinivy, can we close this one now?