text:
Simultaneous Nuclei Findings Submission from Multiple Agents Causes Internal Server Error

Bug description
While sending nuclei findings from two different agents to DefectDojo simultaneously, the response received was: {"message":"Internal server error, check logs for details"}.
Tested DefectDojo versions: 2.25.1 and 2.27.3
Steps to reproduce
Steps to reproduce the behavior:

Deploy any of version 2.25.1 or 2.27.3 with docker compose
Setup 2 agents and check these agents can connect to DefectDojo with no problem.
Send two scan results (it may be same scan files or different) to DefectDojo with sendNuclei.py or post request with curl. (I provide some code for help you quickly reproduce same error)
Run python script on two agent/server in same time (Do not forget add IP of DefectDojo.

python sendNuclei.py --ip {DEFECTDOJOIP} --port 8080 --product_name test --engagement_name test --filename test.json > testresult.json & cat testresult.json

See error in console

{"message":"Internal server error, check logs for details"}

Python code for sendNuclei.py
import argparse
import sendToDefectDojo

# Define command line arguments
parser = argparse.ArgumentParser(description='Send Nuclei results to Defect Dojo')
parser.add_argument('--ip', type=str, default='10.0.10.173', help='Defect Dojo IP address')
parser.add_argument('--port', type=int, default=8080, help='Defect Dojo port')
parser.add_argument('--product_name', type=str, default='test', help='Product name')
parser.add_argument('--engagement_name', type=str, default='test', help='Engagement name')
parser.add_argument('--filename', type=str, help='Path to the filename')

if __name__ == '__main__':
    args = parser.parse_args()
    res, _ = sendToDefectDojo.sendNucleiResults(ip=args.ip, port=args.port, product_name=args.product_name,
                                               engagement_name=args.engagement_name, filename=args.filename)
    print(res)

Python code for sendToDefectDojo.py
import datetime, requests, tempfile, json
import os
import psutil

def is_file_exists(file_path):
  if not os.path.exists(file_path):
    return False
  return True

def is_file_in_use(file_path):
    # Check if the file exists
    if not is_file_exists(file_path):
        return False

    # Check if the file is in use by any process
    for process in psutil.process_iter(attrs=['pid', 'name']):
        try:
            open_files = process.open_files()
            for file_info in open_files:
                if file_info.path == file_path:
                    return True
        except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):
            pass

    return False

# Define global variables
authToken ="51af4f7d58f181eb95f7226da5459fadbe516f26" # This value is a static value generated by DefectDojo
headers = {
    'accept': 'application/json',
    'Cookie': 'csrftoken=H9Fk3sm1WTdktRSsTzYVlqn7tUrxWO6O; sessionid=tjkgk5v3wx7ufm87o0nlozpv8hn8rg65', #Session ID is also static, like AuthToken
    'X-CSRFToken': 'UIFNzX9AfAMcMEvYNjYqceAUzT1NZydPrHaXsflr1jPm5ldgwIMbnuNRSDiaLc9t',
    'Authorization': f'Token {authToken}',  # Replace {authToken} with your actual token
}

# Make nuclie file acceptable by DefectDojo
def prepareNucleiFile(filename):
    # Read the JSON file
    with open(filename, 'r') as json_file:
        json_content = json_file.read()

    # Replace ,,{"template" with "\n{"template" in the JSON content
    modified_json_content = json_content[1:].replace(',{"template":', '\n{"template":')[:-1]

    # Write the modified content back to the new temporary file
    temp_file = tempfile.NamedTemporaryFile(delete=False)
    json_file = open(temp_file.name, 'w')
    json_file.write(modified_json_content)
    json_file.close()

    return temp_file.name

#Define function to send Nuclei results
def sendNucleiResults(ip:str, filename:str, product_name:str, engagement_name:str, product_type:str="Research and Development",
                    environment:str="Production", port:int=8080):
    '''
    It gets Nuclei JSON output, sends it to DefectDojo and returns result (JSON/SUCCESS or TXT/FAIL) and Status Code (INT).
    '''

    date = str(datetime.datetime.now().strftime("%Y-%m-%d"))

    # Define the form data
    data = {
        'scan_date': f'{date}',  # Replace with the actual scan date
        'minimum_severity': 'Info',
        'active': 'true',
        'verified': 'true',
        'scan_type': 'Nuclei Scan',
        'product_type_name': f'{product_type}',  # Replace with the actual product type
        'product_name': f'{product_name}',  # Replace with the actual product name
        'engagement_name': f'{engagement_name}',  # Replace with the actual engagement name
        'close_old_findings': 'false',
        'close_old_findings_product_scope': 'false',
        'push_to_jira': 'false',
        'environment': f'{environment}',  # Replace with the actual environment
        'create_finding_groups_for_all_findings': 'true',
    }

    #Control file exists and not in use
    if is_file_in_use(filename):
        return '{"Error":"File error occured!"}', 500

    temp_file = prepareNucleiFile(filename)

    # Define the file to upload
    with open(temp_file, 'r', encoding='utf-8') as json_file:

        files = {'file': ('file.json', json_file, 'application/json')}

        # Make the POST request
        url = f'http://{ip}:{port}/api/v2/import-scan/'
        response = requests.post(url, headers=headers, data=data, files=files)

        # Send the response
        return response.content.decode('utf-8'), response.status_code

Expected behavior
I expected the findings from both agents to be processed successfully without any errors.
Deployment method (select with an X)

[x] Docker Compose
[ ] Kubernetes
[ ] GoDojo

Environment information

Operating System: [ Ubuntu 22.04]
DefectDojo version : 2.25.1 and 2.27.3 (both tested both works)
DefectDojo version: [2023-10-23 10:18:01 -0500] 584371d8d: Merge pull request #8875 from DefectDojo/release/2.27.3 [ (HEAD -> master, tag: 2.27.3, origin/master, origin/HEAD)]
Docker version: 24.0.5
Docker-compose version: 1.29.2

Logs
Used docker-compose logs :+1:
172.20.10.6 - - [24/Oct/2023:10:33:48 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 201 1353 "-" "python-requests/2.31.0" "-"
172.20.10.6 - - [24/Oct/2023:10:34:03 +0000] "GET /alerts/count HTTP/1.1" 200 15 "http://10.0.10.173:8080/product" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
2023/10/24 10:34:05 [warn] 7#7: *88413 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000912, client: 172.20.10.6, server: , request: "POST /api/v2/import-scan/ HTTP/1.1", host: "10.0.10.173:8080"
2023/10/24 10:34:06 [warn] 7#7: *88414 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000913, client: 10.0.10.158, server: , request: "POST /api/v2/import-scan/ HTTP/1.1", host: "10.0.10.173:8080"
10.0.10.158 - - [24/Oct/2023:10:34:18 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 201 1352 "-" "python-requests/2.25.1" "-"
172.20.10.6 - - [24/Oct/2023:10:34:18 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 201 1350 "-" "python-requests/2.31.0" "-"
2023/10/24 10:34:29 [warn] 7#7: *88417 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000914, client: 172.20.10.6, server: , request: "POST /api/v2/import-scan/ HTTP/1.1", host: "10.0.10.173:8080"
2023/10/24 10:34:30 [warn] 7#7: *88418 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000915, client: 10.0.10.158, server: , request: "POST /api/v2/import-scan/ HTTP/1.1", host: "10.0.10.173:8080"
172.20.10.6 - - [24/Oct/2023:10:34:43 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 201 1350 "-" "python-requests/2.31.0" "-"
10.0.10.158 - - [24/Oct/2023:10:34:43 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 201 1350 "-" "python-requests/2.25.1" "-"
2023/10/24 10:34:49 [warn] 7#7: *88421 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000916, client: 172.20.10.6, server: , request: "POST /api/v2/import-scan/ HTTP/1.1", host: "10.0.10.173:8080"
2023/10/24 10:34:50 [warn] 7#7: *88422 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000917, client: 10.0.10.158, server: , request: "POST /api/v2/import-scan/ HTTP/1.1", host: "10.0.10.173:8080"
10.0.10.158 - - [24/Oct/2023:10:35:02 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 201 1352 "-" "python-requests/2.25.1" "-"
172.20.10.6 - - [24/Oct/2023:10:35:03 +0000] "GET /alerts/count HTTP/1.1" 200 15 "http://10.0.10.173:8080/product" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
172.20.10.6 - - [24/Oct/2023:10:35:04 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 201 1350 "-" "python-requests/2.31.0" "-"
2023/10/24 10:35:15 [warn] 7#7: *88426 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000918, client: 172.20.10.6, server: , request: "POST /api/v2/import-scan/ HTTP/1.1", host: "10.0.10.173:8080"
2023/10/24 10:35:17 [warn] 7#7: *88428 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000919, client: 10.0.10.158, server: , request: "POST /api/v2/import-scan/ HTTP/1.1", host: "10.0.10.173:8080"
172.20.10.6 - - [24/Oct/2023:10:35:29 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 500 59 "-" "python-requests/2.31.0" "-"
10.0.10.158 - - [24/Oct/2023:10:35:29 +0000] "POST /api/v2/import-scan/ HTTP/1.1" 500 59 "-" "python-requests/2.25.1" "-"
172.20.10.6 - - [24/Oct/2023:10:36:03 +0000] "GET /alerts/count HTTP/1.1" 200 15 "http://10.0.10.173:8080/product" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
172.20.10.6 - - [24/Oct/2023:10:37:03 +0000] "GET /alerts/count HTTP/1.1" 200 15 "http://10.0.10.173:8080/product" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"

Sample scan files
You can use any scan files of nuclei just create results with -je parameter.
Screenshots

You provided logs from nginx. Can you provide logs from uwsgi/django instance?

Log for uwsgi
[24/Oct/2023 16:06:59] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:07:11] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[pid: 29|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:06:59 2023] POST /api/v2/import-scan/ => generated 1350 bytes in 12255 msecs (HTTP/1.1 201) 9 headers in 340 bytes (1 switches on core 1)
[24/Oct/2023 16:08:32] WARNING [django.request:241] Bad Request: /api/v2/import-scan/
[pid: 29|app: -|req: -/-] 10.0.10.158 (-) {46 vars in 901 bytes} [Tue Oct 24 16:08:32 2023] POST /api/v2/import-scan/ => generated 162 bytes in 52 msecs (HTTP/1.1 400) 9 headers in 343 bytes (1 switches on core 0)
[24/Oct/2023 16:09:40] WARNING [django.request:241] Bad Request: /api/v2/import-scan/
[pid: 29|app: -|req: -/-] 10.0.10.158 (-) {46 vars in 901 bytes} [Tue Oct 24 16:09:40 2023] POST /api/v2/import-scan/ => generated 162 bytes in 50 msecs (HTTP/1.1 400) 9 headers in 343 bytes (1 switches on core 1)
[24/Oct/2023 16:12:11] WARNING [django.request:241] Bad Request: /api/v2/import-scan/
[pid: 29|app: -|req: -/-] 10.0.10.158 (-) {46 vars in 901 bytes} [Tue Oct 24 16:12:11 2023] POST /api/v2/import-scan/ => generated 162 bytes in 57 msecs (HTTP/1.1 400) 9 headers in 343 bytes (1 switches on core 0)
[24/Oct/2023 16:14:01] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:14:04] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:14:13] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[pid: 30|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:14:01 2023] POST /api/v2/import-scan/ => generated 1350 bytes in 12604 msecs (HTTP/1.1 201) 9 headers in 340 bytes (1 switches on core 0)
[24/Oct/2023 16:14:16] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[pid: 29|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:14:04 2023] POST /api/v2/import-scan/ => generated 1350 bytes in 12396 msecs (HTTP/1.1 201) 9 headers in 340 bytes (1 switches on core 1)
[24/Oct/2023 16:14:26] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:14:29] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:14:38] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[pid: 30|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:14:25 2023] POST /api/v2/import-scan/ => generated 1350 bytes in 12782 msecs (HTTP/1.1 201) 9 headers in 340 bytes (1 switches on core 1)
[24/Oct/2023 16:14:41] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[pid: 29|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:14:29 2023] POST /api/v2/import-scan/ => generated 1350 bytes in 12376 msecs (HTTP/1.1 201) 9 headers in 340 bytes (1 switches on core 0)
[24/Oct/2023 16:15:48] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:15:49] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:16:00] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[pid: 1|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:15:48 2023] POST /api/v2/import-scan/ => generated 1353 bytes in 12596 msecs (HTTP/1.1 201) 9 headers in 340 bytes (1 switches on core 0)
[24/Oct/2023 16:16:02] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[pid: 29|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:15:48 2023] POST /api/v2/import-scan/ => generated 1350 bytes in 13524 msecs (HTTP/1.1 201) 9 headers in 340 bytes (1 switches on core 1)
[24/Oct/2023 16:16:15] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:16:15] INFO [dojo.importers.importer.importer:330] IMPORT_SCAN: Collecting Findings
[24/Oct/2023 16:16:27] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[24/Oct/2023 16:16:28] ERROR [dojo.api_v2.exception_handler:36] insert or update on table "dojo_test_import_finding_action" violates foreign key constraint "dojo_test_import_fin_finding_id_28fe8e2d_fk_dojo_find"
DETAIL:  Key (finding_id)=(17795) is not present in table "dojo_finding".
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 306, in _commit
    return self.connection.commit()
           ^^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.errors.ForeignKeyViolation: insert or update on table "dojo_test_import_finding_action" violates foreign key constraint "dojo_test_import_fin_finding_id_28fe8e2d_fk_dojo_find"
DETAIL:  Key (finding_id)=(17795) is not present in table "dojo_finding".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/rest_framework/mixins.py", line 19, in create
    self.perform_create(serializer)
  File "/app/dojo/api_v2/views.py", line 3266, in perform_create
    serializer.save(push_to_jira=push_to_jira)
  File "/app/dojo/api_v2/serializers.py", line 2219, in save
    ) = importer.import_scan(
        ^^^^^^^^^^^^^^^^^^^^^
  File "/app/dojo/importers/importer/importer.py", line 357, in import_scan
    test_import = importer_utils.update_import_history(Test_Import.IMPORT_TYPE, active, verified, tags, minimum_severity,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/dojo/importers/utils.py", line 82, in update_import_history
    Test_Import_Finding_Action.objects.bulk_create(test_import_finding_action_list)
  File "/usr/local/lib/python3.11/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/db/models/query.py", line 796, in bulk_create
    with transaction.atomic(using=self.db, savepoint=False):
  File "/usr/local/lib/python3.11/site-packages/django/db/transaction.py", line 262, in __exit__
    connection.commit()
  File "/usr/local/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 330, in commit
    self._commit()
  File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 305, in _commit
    with self.wrap_database_errors:
  File "/usr/local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 306, in _commit
    return self.connection.commit()
           ^^^^^^^^^^^^^^^^^^^^^^^^
django.db.utils.IntegrityError: insert or update on table "dojo_test_import_finding_action" violates foreign key constraint "dojo_test_import_fin_finding_id_28fe8e2d_fk_dojo_find"
DETAIL:  Key (finding_id)=(17795) is not present in table "dojo_finding".

[24/Oct/2023 16:16:28] INFO [dojo.importers.importer.importer:334] IMPORT_SCAN: All Findings Collected
[24/Oct/2023 16:16:28] ERROR [django.request:241] Internal Server Error: /api/v2/import-scan/
[pid: 1|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:16:15 2023] POST /api/v2/import-scan/ => generated 59 bytes in 12972 msecs (HTTP/1.1 500) 9 headers in 352 bytes (1 switches on core 1)
[24/Oct/2023 16:16:28] ERROR [dojo.api_v2.exception_handler:36] insert or update on table "dojo_test_import_finding_action" violates foreign key constraint "dojo_test_import_fin_finding_id_28fe8e2d_fk_dojo_find"
DETAIL:  Key (finding_id)=(17811) is not present in table "dojo_finding".
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 306, in _commit
    return self.connection.commit()
           ^^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.errors.ForeignKeyViolation: insert or update on table "dojo_test_import_finding_action" violates foreign key constraint "dojo_test_import_fin_finding_id_28fe8e2d_fk_dojo_find"
DETAIL:  Key (finding_id)=(17811) is not present in table "dojo_finding".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/rest_framework/mixins.py", line 19, in create
    self.perform_create(serializer)
  File "/app/dojo/api_v2/views.py", line 3266, in perform_create
    serializer.save(push_to_jira=push_to_jira)
  File "/app/dojo/api_v2/serializers.py", line 2219, in save
    ) = importer.import_scan(
        ^^^^^^^^^^^^^^^^^^^^^
  File "/app/dojo/importers/importer/importer.py", line 357, in import_scan
    test_import = importer_utils.update_import_history(Test_Import.IMPORT_TYPE, active, verified, tags, minimum_severity,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/dojo/importers/utils.py", line 82, in update_import_history
    Test_Import_Finding_Action.objects.bulk_create(test_import_finding_action_list)
  File "/usr/local/lib/python3.11/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/db/models/query.py", line 796, in bulk_create
    with transaction.atomic(using=self.db, savepoint=False):
  File "/usr/local/lib/python3.11/site-packages/django/db/transaction.py", line 262, in __exit__
    connection.commit()
  File "/usr/local/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 330, in commit
    self._commit()
  File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 305, in _commit
    with self.wrap_database_errors:
  File "/usr/local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 306, in _commit
    return self.connection.commit()
           ^^^^^^^^^^^^^^^^^^^^^^^^
django.db.utils.IntegrityError: insert or update on table "dojo_test_import_finding_action" violates foreign key constraint "dojo_test_import_fin_finding_id_28fe8e2d_fk_dojo_find"
DETAIL:  Key (finding_id)=(17811) is not present in table "dojo_finding".

[24/Oct/2023 16:16:28] ERROR [django.request:241] Internal Server Error: /api/v2/import-scan/
[pid: 29|app: -|req: -/-] 172.20.10.6 (-) {46 vars in 905 bytes} [Tue Oct 24 16:16:15 2023] POST /api/v2/import-scan/ => generated 59 bytes in 12435 msecs (HTTP/1.1 500) 9 headers in 352 bytes (1 switches on core 0

The logs I have provided show that there's an integrity issue with the database when trying to insert or update records in the table dojo_test_import_finding_action. Specifically, it seems that dojo trying to reference a finding_id which doesn't exist in the dojo_finding table.
Here are the relevant log lines extracted from above:
psycopg2.errors.ForeignKeyViolation: insert or update on table "dojo_test_import_finding_action" violates foreign key constraint "dojo_test_import_fin_finding_id_28fe8e2d_fk_dojo_find"
DETAIL:  Key (finding_id)=(17795) is not present in table "dojo_finding".

We can start investigate in here.

DD_ASYNC_FINDING_IMPORT=(bool, True) . I have been set ASYNC_FINDING_IMPORT to True in local_settings.py.

authors: ErdemOzgen kiblik

repo: DefectDojo/django-DefectDojo


text:
Run npm install for dependencies

Currently the react-daterange-picker definitions need a kludge for this: they have a hook in their package.json. We should figure out the dependencies (types-publisher has code to do this) and install their packages too.
See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/11335.

Fixed by DefinitelyTyped/DefinitelyTyped#11547.

source: gharchive/issue

repo: DefinitelyTyped/definition-tester

license: mit

license_type: permissive

license_source: bigquery


text:
'braintree_payment/BraintreePaymentPlugin.h' file not found

Hello,
i have problems to get this plugin running in Xcode. You can do the following simple steps to reproduce:

flutter create -i swift my_test_project
add 'braintree_payment: ^1.2.2' to pubspec.yaml
Open Runner.xcodeproj in ios folder
Set IOS Deployment Target to iOS 10.0
run 'pod install' in ios folder
Try to  build Runner.xcodeproj

Hi Dennis,
I found out that, since you are creating a flutter project with swift template you are facing this issue....please use it with a ObjC template.
This plugin is developed in ObjC and working of this plugin with a project in swift template is handled by flutter.
You can read this thread for you issue
https://github.com/flutter/flutter/issues/25676

For me it is not possible to use ObjC template as some other plugins are written in Swift. The good news is that I get it to work.
This is what I have done:

Delete Podfile and Podfile.lock in ios folder
Run pods install in ios folder
Open Pods.xcodeproj in ios/Pods folder
Update all TARGETS (tab Build Settings) to the same Deployment Target and same Swift_Version

After that

flutter build ios

from command line is working and Archive from Product menu in Xcode too. Build from Xcode still gives me some errors but thats seems not to impact the build from command line.
Maybe that helps someone.

Glad to know that you make it work for your app and thanks for sharing the solution with everyone.

authors: Dennis-Do deligence

license_source: github-api


text:
Feature Request: JSON Context + Live Context + Nearby Inference

JSON Context:
Newer versions of XSLT/XPath can use JSON (and perhaps others?) as input rather than an XML file.
I see I can pick an XML file for 'auto-completion context' but it would be great to be able to use JSON as well.
Background: My web platform has always generated XML from data to use in transformations; this was great when it was based on PHP but now it's based on JS on Node using SaxonJS. Currently, it still generates XML from JS objects/JSON and it's not ideal - it could be made better if I wrote my own JSON->XML library but that's just an unnecessary step when I can pass JSON to SaxonJS instead.
My biggest problem is that the XPath syntax for most common operations, even just something like <xsl:value-of select="" /> is fairly different compared to using XML input. Having help/auto-completion for this would be awesome.
Live Context
The second idea I have is that, as mentioned above, the input for XSL Transformations is generated, often from a database or otherwise. It would be great if I could somehow link a generated XML/JSON input in a 'live' or automatic way.
I can't particularly OTOH think of the best way to really implement this, especially considering that the generated input would vary based on lots of different things, a prime example being which route is being called, eg example.com/profile could be a route showing a user their account profile with the data being generated from a database with their profile details and used with an XSL template to transform into xHTML5 - obviously that's a lot of complexity that shouldn't have to be considered within the add-on.
The best solution I can think of quickly is just having the context file watched/update anytime it's changed - then I can just have my platform dump the data to a specific file anytime it does a transformation and then manually trigger the route/transformation to generate the data for the current XSLT file I'm working on and just have that file set as the context for all XSLT files.
One alternate solution I can think of is having an option for executing a command to generate the context for each XSL file, I provide a command in the add-on settings that points to my own script and when opening an XSLT file the addon would call that command with the XSLT file as a parameter, then the script can generate the XML/JSON data for the context.
Nearby Inference
It's great that it can pick up other files but it's a bit of a pain that I have to always open them in a specific order to not get the 'spurious errors' and for me this means opening 4 files in a row.
It would be awesome if the inference would at least search the same directory as the edited file and maybe one or two levels up, perhaps configurable? or otherwise have a configuration option to specify a search path.

Otherwise, great work - I'm always happy to see anything happening around XSLT!

Thank you for your suggestions and feedback.

No problem, like I said, it's always great to see stuff with XSLT. IMHO, it should've become the standard way to do web tempting and stuff, screw React.. JSX might have some use-cases I guess, but like.. I started web development before CSS was even really a thing - we spent so much time trying to kill spaghetti-type stuff like early days of PHP where HTML and PHP were interladen to only come full circle except now it's just JS and HTML..
I literally saw code today that was a whole React element that returned a single  with a dynamic value. Makes me want to scream! ;)

I'm especially keen to address the 'Nearby inference' problem you mention where you need to open XSLT modules in a specific order to ensure xsl:import or xsl:include instructions are applied. Directory searches for a 'master module' can be expensive performance-wise, but I will look at what options are available.

This would be great.. That's partly why I suggested starting at the current files directory and looking at siblings in that directory, then going to it's parent and checking there for xsl files and other sub-directories, but I get that it can get expensive the more it has to traverse especially without limits. I'm sure there are projects much more complex than what I generally do, but I usually have something like:
.
├── base
│   ├── _inc.xsl
│   ├── common.xsl
│   ├── defaultBase.xsl
│   ├── footer.xsl
│   ├── header.xsl
│   ├── menu.xsl
│   └── noscript.xsl
├── components
│   ├── componentBase.xsl
│   └── selectorDropDown.xsl
├── default.xsl
└── web
    ├── about.xsl
    ├── home.xsl
    ├── privacy.xsl
    └── terms.xsl

For a website sort of thing.

The JSON auto-completion I'm guessing would just be to assist with the ? map property-name lookup operator...as the JSON context will have been parsed into a map or array combination - I'll look into this also.

That would be great; I haven't had much experience using any of the newer operators for this kind of stuff, having auto-completion w/JSON or (I guess supported other types of input that would get parsed into maps/arrays/whatever else) would be awesome!
Thanks for responding and making the plugin in the first place!

repo: DeltaXML/vscode-xslt-tokenizer

license: MIT


text:
Improve support for non-standalone XSLT stylesheet modules

Currently, when non-standalone XSLT stylesheet modules there may be issues due to 'missing' imports that are actually provided by a parent stylesheet module. The potential issues are:

Problems reported for references to undeclared symbols like variables names or function calls
No auto-completion for symbols that are available in the 'missing' imports
No 'Goto Definition' for references to symbols that are defined in the 'missing' imports

Comleted


text:
Fix bugs with the XYN files and models

Fixes: #459

It surprised me that changing the error message did not result in a test failure. So I looked at the test and noticed I did aan oopsy 😊. Fixed the setup of the test and then fixed the failing testcase!

Two minor issues remain.
Double quotes not supported (I believe this is supported by the FM kernel):
1.23  3.45 "some text with spaces"
1.23 3.45 Only_the_first_word

Comments at start of file not yet supported:

#1.23  3.45  'some text with spaces'
1.23 3.45 Only_the_first_word

source: gharchive/pull-request

authors: tim-vd-aardweg veenstrajelmer

repo: Deltares/HYDROLIB-core


text:
crs is not consistent in Ugrid1d, UgridDataset, from/to_geodataframe, to_netcdf/open_dataset

Description
crs is not consistent in the following:

Ugrid1d/UGRID Accessor
from_geodataframe/to_geodataframe
to_netcdf/open_dataset

How to reproduce
Given:
import xugrid as xu
import geopandas as gpd
from shapely.geometry import LineString, MultiLineString, Point

def lines_gdf() -> gpd.GeoDataFrame:
    points = [Point(-122.3, 47.6), Point(-122.2, 47.5), Point(-122.1, 47.6)]
    lines = [LineString([points[0], points[1]]), LineString([points[1], points[2]])]
    return gpd.GeoDataFrame(geometry=lines, crs=4326)

When creating a Ugrid1d from geodataframe, crs from the geodataframe is not used in Ugrid1d. crs needs to be set again in order for crs to be correctly assigned to Ugrid1d.
grid = xu.Ugrid1d.from_geodataframe(lines_gdf())
grid.crs # returns None
grid.set_crs(4326)
grid.crs # returns crs

Given that now the Ugrid1d does have crs, when creating a UgridDataset from the ugrid1d, the crs is not passed on again.  crs needs to be set again in order for crs to be correctly assigned.
uds = xu.UgridDataset(grid.to_dataset(optional_attributes = True))
uds.ugrid.crs # returns {'network1d': None}
uds.ugrid.set_crs(4326)
uds.ugrid.crs # returns crs

Now that I do have crs, when calling to_geodataframe(), the crs is again not passed on. crs needs to be set again in order for crs to be correctly assigned.
gdf = uds.ugrid.to_geodataframe()
gdf.crs # returns None
gdf.set_crs(4326)
gdf.crs # returns crs

Finally, if I write the uds with correct crs to a netcdf file then read it back using open_dataset the crs is lost again. crs needs to be set again in order for crs to be correctly assigned.
uds.to_netcdf("temp.nc")
uds = xu.open_dataset("temp.nc")
uds.ugrid.crs # return None
uds.ugrid.set_crs(4326)
uds.ugrid.crs # return crs

Expected behavior
The crs is harmonized among all objects. Otherwise, the user needs to set crs repeatedly.

The inconsistency between geodataframe <-> ugrid shouldn't happen because it's using the same python object. This should be easy to fix.
Going from and to netCDF is more complicated, since there are many ways in how people write CRS information into their netCDF files. I think the CF conventions prescribe writing a grid mapping variable, but I'm pretty sure I have seen other files where there's just an "epsg_code" floating around somewhere.

#142 also reports the geodataframe conversion issue. This should be fixed now.
With regards to netCDF, I'm closing this in favour of #42, which has a bit more background.

authors: Huite xldeltares

repo: Deltares/xugrid


text:
Could not pass event InventoryClickEvent to Denizen v0.9.8-SNAPSHOT (build 502)

03.03 16:45:36 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_74]
03.03 16:45:36 [Server] INFO at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [Spigot-stb19.jar:git-Spigot-604e046-69e196f]
03.03 16:45:36 [Server] INFO at net.minecraft.server.v1_9_R1.PacketPlayInWindowClick.a(SourceFile:10) [Spigot-stb19.jar:git-Spigot-604e046-69e196f]
03.03 16:45:36 [Server] INFO at net.minecraft.server.v1_9_R1.PacketPlayInWindowClick.a(SourceFile:33) [Spigot-stb19.jar:git-Spigot-604e046-69e196f]
03.03 16:45:36 [Server] INFO at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1804) [Spigot-stb19.jar:git-Spigot-604e046-69e196f]
03.03 16:45:36 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Spigot-stb19.jar:git-Spigot-604e046-69e196f]
03.03 16:45:36 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Spigot-stb19.jar:git-Spigot-604e046-69e196f]
03.03 16:45:36 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[Spigot-stb19.jar:git-Spigot-604e046-69e196f]
03.03 16:45:36 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[Spigot-stb19.jar:git-Spigot-604e046-69e196f]
03.03 16:45:36 [Server] INFO org.bukkit.event.EventException
03.03 16:45:36 [Server] ERROR Could not pass event InventoryClickEvent to Denizen v0.9.8-SNAPSHOT (build 502)

Could you please open your logs and locate the full error message, in its original logged form?

This error message is always here
The command /npc look don't work properly

I'll say again...
Could you please open your logs and locate the full error message, in its original logged form?

Update everything and if the problem persists comment when you can provide more information.

repo: DenizenScript/Denizen-For-Bukkit


text:
collecting note sometimes doesn't add to the music

Sometimes, when the player collects a music note the music is not added to. And sometimes it even crashes, with an error in the console saying something to the effect of "music track not found"

when it crashes, it seems to be because the player waits a while before starting to collect notes
[ ] need to look into more what is causing it
[ ] document the exact error that pops up on crash


text:
🛑 ActivityPub on deuchnord.fr is down

In d508d3c, ActivityPub on deuchnord.fr (https://deuchnord.fr/.well-known/webfinger?resource=acct:blog@deuchnord.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ActivityPub on deuchnord.fr is back up in 554a491 after 38 minutes.

repo: Deuchnord/uptime


text:
What is wakeUpScreen supposed to do?

Hi, thanks for the solid package that is very useful.
void function() => FlutterForegroundTask.wakeUpScreen();
is it supposed to just light up the screen if it is off or is it supposed wake up the up (the opposite of minimizeApp)?
Currently, minimizeApp works and puts the app in the background but wakeUpScreen does nothing for me
Thanks,

You can turn on the screen of a device that is turned off with the wakeUpScreen function. This only works on the Android platform.
If the function still does not work, check if the android.permission.WAKE_LOCK permission is added to the AndroidManifest.xml file.
<uses-permission android:name="android.permission.WAKE_LOCK" />

what do you mean by wakeUpScreen? what is it supposed to do?

When a notification arrives when the device's screen is off, it has the same effect as briefly turning on the screen.
You can wake up the screen to let the user know that the service is running. Not only that, it is also used to solve the Doze mode of the Android platform. It will use more battery, but you will be able to process or send data to the server without delay.

Aha, I see.
I was expecting a different behaviour, maybe it would be a good idea to include you comment in the documentation.
Thanks my man

You might be able to work around 'Doze mode' using this function, but that's not a good idea. It is best to turn off the battery optimization option by calling the requestIgnoreBatteryOptimization function.

I already use ignoreBatteryOptimisation because I need to keep sending the user's location to an API.
I am trying to wake up my app whenever an order arrives so that the user can take an action.
Probably going to develop some native code to have a call like UI to have the user either accept or reject the order.

authors: Dev-hwang madatr


text:
Fixed a Bug with Shared Preferences.

Fixed a Bug with Shared Preferences where it won't provide updated data from main isolate while running on background. isolate and vice-versa.

@h2210316651 Thanks PR :)


text:
refactor(Alert): 抽离测试样式

refactor(Alert): 抽离测试样式
useNamespace 方法添加是否为样式添加 . 前缀

@kagol  这样是否可以

@kagol 这样是否可以

我觉得是OK的，非常赞👍提了一个检视意见，你可以看下

@kagol 这样是否可以

我觉得是OK的，非常赞👍提了一个检视意见，你可以看下

Thank you，I have modified.

authors: Lonely-shang kagol

repo: DevCloudFE/vue-devui


text:
The 'write EIO' error appeared when console trying to write unicode symbols after getInstallations() method call.

At this moment API method getInstallations() changes codepage during his execution.
findWindowsBrowsers() method
detectMicrosoftEdge() method
If terminal's default codepage is different from 65001 (437 in our case), it's going to crash TestCafe when trying to display unicode symbols after this change.
To check default codepage run in command line:
chcp

We need this code page changing for the reg query command in the windows with Russian (also maybe Chienese, etc) localization. A possible solution - store current code page before this executing and restore it then

FPR

authors: AlexanderMoskovkin georgiy-abbasov

repo: DevExpress/testcafe-browser-natives


text:
Enterprise firewall

What is your Test Scenario?
I'd like to do automated non-regression testing for a big corp from within its proxy-enabled enterprise-grade firewalled internal network. This corp relies on hardened firewall restrictions that require command-line users to run tests on localhost:
testcafe --hostname localhost --port 1337,1338 chrome test.js

This issue here being we are restricted from listening on local network ports, for security concerns.
What are you suggesting?
In terms of CLI, things are covered, thanks to the --hostname option.
But this feature is missing in the GUI. I suggest this feature to be added so that TestCafé Studio can be used from within firewall-restricted internal company devices.
What alternatives have you considered?
Letting the client know of this TestCafé Studio limitation and make them consider using a closed-source money-making evil-doing alternative.
Additional context
We love you.

Thank you for your kind words, @arnaud .

At present, TestCafe Studio does not support the feature you described. We are going to implement it in one of our future releases.
If you have further questions regarding TestCafe Studio, you can address them to the Developer Express support center.

authors: aleks-pro arnaud

repo: DevExpress/testcafe


text:
TestCafe true parallelism failed after Chrome74 upgrade, was reliable till Chrome 73

We are using latest TestCafe 1.1.3 for running automation tests, in every machine we were opening 8-10 chrome browser instances and our tests were very very fine. Since Chrome 74 launched, within couple of hours circleci/node:11-browsers image was updated with Chrome 74 and entire automation started failing.
Now we just have 10-15% PASSED rate with Chrome 74 compare to 99% PASSED rate with Chrome 73. Is this due to TestCafe multiple session or Chrome 74 performance issue? It looks like TestCafe is hanging with multiple sessions in Chrome 74 (8-10 browser instances), browser leaves control and hangs. It is pretty difficult to know what's going on inside TestCafe / Chrome.
Even we tried by decreasing browser instances from 8 till 1 and we saw PASSED rate little increased but results was quite unreliable even with 1 instance. Again it has been observed TestCafe proxy causing this issue?
For now, we have reverted back to old Chrome 73 image (circleci/node:11.13-browsers). We need to upgrade browser which we everyone know to support latest application code. Please resolve this issue and if needed can TestCafe talk with Google to fix the issue from Chrome 74 side if any?
Please let me know if you need more details.
Problem:
TestCafe browser proxy session seems created but opening application doesn't load UI and loading continues after running couple of tests in each container. Due to this issue, application login page not displayed at all and TestCafe says chrome hanged/closed. TestCafe proxy session fails?
Tried with less number of browser instances to 1 instance but no luck, browser crashes even with 1 instance after running certain tests and there is no fixed pattern for crashes.
Error:
GeneralError: The Chrome 74.0.3729 / Linux 0.0.0 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues.
at BrowserConnection._createBrowserDisconnectedError (/home/circleci/repo/node_modules/testcafe/src/browser/connection/index.js:116:16)
at Timeout._onTimeout (/home/circleci/repo/node_modules/testcafe/src/browser/connection/index.js:121:30)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7) {
code: 'E1002',
data: [ 'Chrome 74.0.3729 / Linux 0.0.0' ],
callsite: CallsiteRecord {
filename: '/home/circleci/repo/tests/testcafe/pages/common.js',
lineNum: 216,
callsiteFrameIdx: 4,
stackFrames: [
   [CallSite],  [CallSite],
   [CallSite],  [CallSite],
   [CallSite], CallSite {},
   [CallSite],  [CallSite],
   CallSite {},  [CallSite],
   [CallSite],  [CallSite],
   [CallSite], CallSite {},
   [CallSite],  [CallSite],
   [CallSite],  [CallSite]
],
isV8Frames: true
},
isRejectedDriverTask: true
}
ERROR The Chrome 74.0.3729 / Linux 0.0.0 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues.

Command:
"test:testcafe": "cross-env HTML_REPORT_PATH='test-reports/testcafe-smoke' testcafe -e chrome 'tests/testcafe/tests' -T 'Smoke' --test-meta web=true -r html-testrail --app 'npm run serve' --app-init-delay 5000 -S -s test-reports/screenshots",

What is the Current behavior?
We have to temporarily revert back to Chrome 73 and respective node browser image due to this blocker issue. Even i tried with latest Chrome Dev 76 version but no luck!
What is the Expected behavior?
Everything should be fine with Chrome 74+ like before because there is no other change from application or TestCafe side hopefully.
Your Environment details:

testcafe version:  1.1.3/1.1.0
node.js version:  11.0

Similar to https://github.com/DevExpress/testcafe/issues/2194 but things were pretty for us till Chrome 73.

Thank you for your report. Have you checked that your Chrome 73 and Chrome 74 versions use the same TestCafe version? If it is so, it can be a Chrome bug introduced by the update, you can submit a bug report to the Chrome team: http://dev.chromium.org/for-testers/bug-reporting-guidelines. Also, 8-10 browser instances demand a lot of resources from a container host. A very minor performance bug can lead to a problem. Have you tried to decrease the number of concurrent browser instances?
I can't reproduce it with my example sites. Could you please provide a sample page and a sample Docker image that can be used to reproduce the problem.

Have you checked that your Chrome 73 and Chrome 74 versions use the same TestCafe version?
Yes, latest 1.1.3.

If it is so, it can be a Chrome bug introduced by the update.
It is definitely a issue and agreed more suspect from Chrome. The interesting thing, TestCafe proxy hangs even for 1 instance sometime and high intermittency. For that reason, we should check whether anything we can check when TestCafe creates proxy session. We need to do memory profiling and high LOE task to report bug to Chrome which they seems introduced.

Have you tried to decrease the number of concurrent browser instances?
Not sure why external world don't see this issue but we are constantly observing it and had to revert back to Chrome 73. We checked only 2-3 instance sometime fine for Chrome 74, but seeing crashes often there too and suspect seems memory consumption.

Sharing some screenshots where loading of client fails and Chrome log doesn't report error when using --log-level=1. Pretty difficult to capture log due to intermittency and nothing it reports, i still suspect memory usage on Chrome 74. I can reproduce this issue locally and through CircleCI with Chrome74, everything is still fine with Chrome 73.

Yes, I see your screenshots with errors from multiple failed requests. It can be caused by a memory leak as you have guessed. If this assumption is correct, we need an example to debug the problem and find its cause. Looks like you use the development version of Zimbra in your tests. Can I use the public version of the website to reproduce the issue?

Hi, seeing similar issue after updating to chrome 74. If  parallelism > 1, testcafe randomly fails to start with chrome instances showing "disconnected"

@domasx2 Thank you for your inquiry. If you have some additional info or a public url that helps us reproduce the issue, please share it with us.

This issue still occurs. In order to reproduce it, create many tests and spec files that go to heavy website (for example https://app.packhelp.com/box/design?dielineMode=false&quantity=500&sku=box-eu--mailer-box--59--cardboard-white-one-side--print-eco-color--foil-none) and reload the page couple times. Make those tests run in CircleCI (free tier), set the parallelism to 3-4, quarantine to true. Set the reporters to screenshot on fail, spec, allure, junit. And run couple builds - one of them will fail with this issue.

I'm with Evilweed and observing issues daily for our site. Evildweed, please help to reproduce the issue to TestCafe team if you have public website. If you increase browser instances then it would be very easy to reproduce further.

@Evilweed

Thank you for providing the public url. I would also appreciate it if you provide us with the full tests package, which demonstrates the issue.
Please also clarify what do you mean by " reload the page couple times".

Besides, as I understood you can reproduce the issue only on CI. Are you able to reproduce it locally?

@AlexKamaev I am reproducing it on CI as there is RAM restriction there, and I assume that if too much ram is used by Chrome and it fails then this bug occurs (locally I have much more ram to my disposal), maybe there is this problem in chrome in containers. As for the full tests package, I cannot make it public here. If you provide me any email I can send it privately then I'll prepare it for You.

@Evilweed  if you want to share your project, you can send it to support@devexpress.com.
Also, you can measure how much RAM Chrome consumes with and without TestCafe. It is expected that TestCafe adds about 10-15% to the RAM usage. If it is your case, it means that your container needs more RAM to properly run Chrome with your website.

authors: AlexKamaev AndreyBelym Evilweed domasx2 jiteshsojitra


text:
TypeError: bowser_1.default.parse is not a function

Are you requesting a feature or reporting a bug?
Bug
What is the Current behavior?
Running testcafe chromium listTests.js throws an error before browser launches:
TypeError: bowser_1.default.parse is not a function
node_modules/testcafe/src/utils/parse-user-agent.ts:6:40

What is the Expected behavior?
I expect the browser to launch. This is not an issue with commit 81b5c5be703315e91835a5a9372ecab632b72517 or before.
How would you reproduce the current behavior (if this is a bug)?
Run a test with any test code
fixture('Test')
  .page('https://google.com/')
  .beforeEach(async t => {
  })

test('Do nothing', t => {
  console.log('hi');
});

Your Environment details:

testcafe version:                   83eafed7a2fd97f0c24d87866a9cc97185d6e712
node.js version:                    v12.12.0
command-line arguments:  testcafe chromium listTests.js
browser name and version: chromium 77.0.3865.120
platform and version:          Arch Linux 64 bit

This looks like it was fixed as I was writing the ticket 8a8137361b7739d6458315f0c7faef9ea3ba34d1.
Feel free to close if you aren't experiencing this bug.

@mattvaughan
Hello,
Thank you for testing our latest updates. I checked the latest testcafe@v1.7.0-rc.1 version and there were no errors. My environment details: Ubuntu / Chromium / TestCafe v1.7.0-rc.1.
Result:

authors: Farfurix mattvaughan


text:
Need log support on each action to track the testcafe navigation on elements

What is your Test Scenario?
I want to print each selector element on logs with actions like click and type. Right now we can print the logs using console.log() but using this option one has to write log code for each line which is very time-consuming.
For example:
Typing on "Username"
Clicking on "buttonID"
........................
Logs will help us for tracking and debug during off time
What are you suggesting?
Required console logs for each action performing on web page.
this should be control from testcaferc.json or through runner.
"PrintlogsforActions": true
What alternatives have you considered?

Additional context

Duplicate of https://github.com/DevExpress/testcafe/issues/4001


text:
Uncaught type error when opening www.ikea.cn with testcafe + Chrome 91 emulating mobile device

What is your Test Scenario?
Simply run below test and testcafe will fail to load www.ikea.cn
testcafe "chrome:emulation:device=iphone X" testH5.js -e --speed 0.8 --debug-on-fail
And we have tried iphone 8/pixel 2 getting the same result.
What is the Current behavior?
Chrome starts and tries to load the page www.ikea.cn, but many elements cannot be loaded.
And Chrome console prompts infinite loop of following error:
Uncaught TypeError: Cannot convert undefined or null to object
at hasOwnProperty ()
at y (hammerhead.js:1)
at E (hammerhead.js:1)
at t._overrideStyleInstanceProp (hammerhead.js:15)
at t._processStyleInstance (hammerhead.js:15)
at HTMLDivElement.E.getter [as style] (hammerhead.js:15)
at Object.Me [as set] (hammerhead.js:1)
at Object.set (testcafe-core.js:1)
at testcafe-ui.js:1
If we manually start Chrome emulating mobile devices, the web site can be loaded successfully without error loop.
That's why we raise this issue.
But it was working fine about 2 days ago, so we are also checking what was changed inside the web site.
And if we don't use debug to pause the test, it will throw error and exit:
Uncaught object "[object Object]" was thrown. Throw Error instead.
What is the Expected behavior?
Page can be loaded without error and following test steps can be executed.
What is your web application and your TestCafe test code?

Your website URL:  https://www.ikea.cn

Simply start and debug-on-fail should be able to reproduce this issue.

fixture('test')
    .page('https://www.ikea.cn')

test
    ('search-pip-groupbuy-checkout', async t => {
    var article = '00217132';
    //await t.debug();
});

Screenshots:

![testcafe](https://user-images.githubusercontent.com/5707530/125198794-f6969400-e295-11eb-9037-0d246717433d.png)

Steps to Reproduce:

Put above code snippet in a js file;
Run "testcafe "chrome:emulation:device=iphone X" testH5.js -e --speed 0.8 --debug-on-fail"
Chrome starts and tries to load the page, going to debug;
Open developer tools and see errors in console.

Your Environment details:

testcafe version:                   1.15.0
node.js version:                    14.17.3
command-line arguments:  testcafe "chrome:emulation:device=iphone X" testH5.js -e --speed 0.8
browser name and version: Chrome 91.0.4472.124
platform and version:          Windows 10
other:

Thank you for your report. I reproduced the issue. We will research it and will update this thread once we have any news.
For the team:
This problem can be reproduced with testcafe-hammerhead http-playground command.

This is probably due to Akamai CDN blocking testcafe for its bot-like behavior based on our observation.
IKEA.com/us, IKEA.com/ru also suffers and it goes fine if we skip cdn.
Of course it would be ideal if testcafe could handle the error gracefully.

The issue is not reproduced with testcafe@1.17.2-rc.2.

authors: Dmitry-Ostashev miherlosev mypchas6fans


text:
Please Answer in #245

Is there an existing issue for this?

[X] I have searched the existing issues

🐛 Describe the bug
Dynamic pagination cannot be accessed on user-defined layout pattern #245
✔ Expected behavior
.
👣 Steps to Reproduce
.
💻 Platform

[ ] Bukkit
[ ] Sponge
[X] Other

⭐ Versions
1.19.4
✍ Additional context
.

Its not completed..

repo: DevNatan/inventory-framework


text:
Repro loophole on dirty checkout

https://github.com/DevPalace/phoenix-ci/blob/54915c42c63921ab95849dbc8c2d751015f7a733/src/nix.ts#L10
A checkout can be made dirty for example by an unfortunate previous action.
The user would not immediately note the misconfiguration and could (unknowingly) depend on an erroneous fallback constant for self.rev.
One way this can impact the stability of a system:
If self.rev is used as OCI image tag, inadvertently replacing unique tags by a constant can cause schedulers not to pull new versions (because the tag does not change).
A better strategy could be to always consume the remote flake which translate into a clean/fresh checkout.
Example upstream:
https://github.com/divnix/std-action/blob/5ead0a37047d44137f950247ee4d3e26fda291d7/discover/_eval.sh#L48-L51

self.rev does not default to dirty if I recall correctly, and almost all CI's have this issue. I'd say it's more of a user's fault if this happens
May be resolved by https://github.com/DevPalace/phoenix-ci/issues/13, but most likely will be resolved by https://github.com/DevPalace/phoenix-ci/issues/14

self.rev does not default to dirty if I recall correctly,

Scenario:

user work depends on self.rev
user wants to exercise local workflow (potentially dirty)
to unblock, user defaults to a contsant

This is relatively common and this issue aims at preventing user error that can be quite annoying and impactful, by making it impossible without extra effort to hit this error scenario.
Maybe another way to address this would be --no-allow-dirty config for CI. That would allow the CI operator to switch on that safety measure to avoid the regular CI user make that mistake.

I don't think that's a real issue, either way its going to get resolved by #14

Resolved by https://github.com/DevPalace/phoenix-ci/issues/14

authors: blaggacao gytis-ivaskevicius

repo: DevPalace/phoenix-ci


text:
SVG to XAML

Is your feature request related to a problem? Please describe.
As a developer working with XAML, I find difficult to insert SVG into XAML file code.
Describe the solution you'd like
Add an SVG to XAML converter
Additional context
This is probably not a mainstream tool. This is probably relatively low priority. Also, there are some WPF/UWP libraries allowing to load SVG files straight into a XAML UI.

Seems there existing two project, which could be integrated in DevToys
https://github.com/BerndK/SvgToXaml
https://github.com/ElinamLLC/SvgXaml
Converting SVG to QML would also nice.

I think these would be nice as extensions but not shipped by default with DevToys.
You can make extensions for DevToys by following this documentation: https://devtoys.app/doc/articles/introduction.html
I will close this issue as there's no plan to ship this by default in DevToys. Anyone interested by this feature, feel free to build and extension for it :)

authors: theuserbl veler

repo: DevToys-app/DevToys


text:
Scroll top btn added

Description
Btn go top created.
The button is hidden until you scroll and disapears again when you go top
Screenshots of relevant screens
Hidden

Appears

If it is accepted you are, it would be nice to put some more beautiful styles, but with this the functionality would be ready

this is great.

I'll merge it. But pls next time when you try to do a pull request, mention it prior in the issue section.

Okay, thanks. I'm new doing pull requests. I thought that if it was a new functionality I could do it this way. Next time I'll mention it first at the issue section

authors: DevTrackClub rubenfreiria

repo: DevTrackClub/DevTrackWebsite


text:
Creating working links

User Story
AS AN employer
I WANT to view a potential employee's deployed portfolio of work samples
SO THAT I can review samples of their work and assess whether they're a good candidate for an open position
Acceptance Criteria
GIVEN I need to sample a potential employee's previous work
WHEN I click one of the links in the navigation
THEN the UI scrolls to the corresponding section

completed


text:
Add GitHub Repository Stats to README.md

Description:
The issue involves adding a table to display repository statistics, such as the number of stars, forks, issues, and pull requests, directly in the README.md file. This will help contributors and users track the activity and contributions in the repository at a glance.
Steps to Implement:

Create a table in the README.md file displaying the following repository statistics:

Stars
Forks
Open Issues
Open Pull Requests
Closed Pull Requests

Use markdown syntax to include badges or icons for each statistic, along with dynamic links to the corresponding sections of the repository.

Expected Behavior:
The README.md file will contain a neatly formatted table that displays real-time repository statistics, making the repository's activity more visible and engaging for contributors and users.
Additional Information:

This enhancement will make the repository more user-friendly by providing visibility into its overall activity.
The table can be dynamically updated by using GitHub shields or other badge services to fetch real-time stats.

Screenshot (for reference):

Checklist:

[x] I have checked the existing issues.
[x] I have read the Contributing Guidelines.
[x] I want to work on this issue.

Hi can you assign this to me @Ganeshmoorthii

@Ganeshmoorthii i did solved this issue, kindly merge my PR before the gssoc ends.
Thank you

@Ganeshmoorthi some of the python files aren't formatted with respect to pep8, this is causing the pr-ci bot to cause conflicts in my pull request, to be very explicit i didn't changed any python file.
Kindly merge the PR by bypassing the bot.


text:
Feat/eip-2981 royalties

EIP-2981 Implementation (Secondary Market Shares / Royalties)
This PR is specifically for adding support to royalties via EIP-2981 standard. This is specific to OpenSea royalties implementation.
Here are the references I've used to learn its implementation from the past few months:

GitHub Repository: EIP2981-implementation
Forum Post form OpenZeppelin: "Has anyone implemented EIP 2981"
A Gemini Article: "Exploring the NFT Royalty Standard (EIP-2981)"
Official Document from Ethereum: "EIP-2981: NFT Royalty Standard "
Medium Post: "EIP-2981 — Simple and effective royalty standard for all"
And finally... a useful YouTube video tutorial: "Custom ERC721 With Secondary Royalties (OpenSea, Rarible, Mintable) - From Scratch with Truffle"

I hope these resources helps out for anyone interested to learn more about the secondary market shares preparation/implementation on a smart contract.
Closes #110

Thanks for the review brothers @noahliechti @itstargetconfirmed :)

repo: Developer-DAO/pixel-avatars

license: ISC


text:
feat(common): p6spy 모듈 추가

What is this PR? :mag:

sql 쿼리 문을 위한 p6spy 모듈 추가

Screenshot :camera:

기능
스크린샷

콘솔

Test Checklist ☑

[x] 기존 모듈과의 충돌 확인

확인하였습니다.


text:
parse_mode="HTML"

Hi,
When I try to make this change in context.bot.send_message, I am getting an error.

Hi, can you post the exact error that is occuring. Please ensure you redact anything which is personally identifiable from the error message.
From the issue title. Altering the parse_mode parameter to HTML is highly likely cause an error. The bots function feed_to_md https://github.com/Dextroz/RSS_Feederbot/blob/06690bf7f9f4bc2c68906d31ebf86ae8ece21d14/bot.py#L33 converts the RSS feed content into Markdown format hence why the parse_mode parameter is set to Markdown. Altering it to HTML would produce an error as it would be trying to parse the Markdown content as HTML.

Hello, thanks for the prompt response. I do realize that Line 33 is for the markdown.  I just wanted to try if I can change the output to HTML as there is the html2text option for images and links.  I was pulling the summary of the feed. Otherwise, the bot works as it should be. But here's the error:
Traceback (most recent call last):
File "/lib/python3.7/site-packages/telegram/ext/jobqueue.py", line 270, in tick
job.run(self._dispatcher)
File "/lib/python3.7/site-packages/telegram/ext/jobqueue.py", line 399, in run
self.callback(CallbackContext.from_job(self, dispatcher))
File "/RSS_Feederbot/bot.py", line 95, in check_feeds
context.bot.send_message(chat_id="6******4", text=rss_msg, parse_mode="HTML", disable_web_page_preview="True")
File "/lib/python3.7/site-packages/telegram/bot.py", line 66, in decorator
result = func(self, *args, **kwargs)
File "/lib/python3.7/site-packages/telegram/bot.py", line 258, in send_message
timeout=timeout, **kwargs)
File "/lib/python3.7/site-packages/telegram/bot.py", line 123, in _message
result = self._request.post(url, data, timeout=timeout)
File "/lib/python3.7/site-packages/telegram/utils/request.py", line 327, in post
**urlopen_kwargs)
File "/lib/python3.7/site-packages/telegram/utils/request.py", line 238, in _request_wrapper
raise BadRequest(message)
telegram.error.BadRequest: Can't parse entities: unsupported start tag "br/" at byte offset 27

*** Line 45 & 46 is already set to False.

Hi,
Would you be able to produce the output of the variable rss_msg.
It should contain HTML content as well as text content.
This issue could also be related to https://github.com/python-telegram-bot/python-telegram-bot/issues/682

Hi,
The message generated is the linked article title. There is no problem with your bot. It actually does what it says, a markdown feed. It is only when I try to make the changes to have a full article html output that I got stuck. If I make it into a full article, output generates text that includes codes like  etc and links not hyperlinked. I might try again this weekend and update you.

There has been no activity on this for sometime. I am closing this issue. If you are still experiencing this issue. Please re-open it.

authors: Dextroz dbrennand zpereyra


text:
Move list of projects at bottom in Readme.md

Move the list of projects section as the last section of the page
Also make sure all the projects are listed in table format alphabetically

can you assign this to me !

Please assign me, I would love to work on this issue?

authors: DhanushNehru Freakyab heysagnik


text:
update: Add FrontendPractice resource to README

Frontend Practice has HTML and CSS challenges for all skill levels

Thanks for your contribution @MazontheMoon

authors: DhanushNehru MazontheMoon


text:
Using PACT 3.5.0-beta.2, verification failed.

Verifying a pact between Notification_receiver and Notification_sender
[Using file resources/Notification_receiver-Notification_sender.json]
Given SomeProviderState
WARNING: State Change ignored as there is no stateChange URL
in case of message is not from case-exchange origin
generates a message which
Verification Failed - Failed to invoke provider method 'testPublisherNotificationContract'
What is the meaning of this failure?

The Pact verifier tried to invoke the method testPublisherNotificationContract to get the message contents to verify, but an exception was raised.
If you enable the display of the stacktrace, you'll see what exception was raised. You can do this with the pact.showStacktrace property.

Verifying a pact between PED_A2CO_MERCHANT_CONFIG_REQUEST
[Using File ../pacts/PED_A2CO_MERCHANT_CONFIG_REQUEST-PED.json]
Given Merchant-Config
create
{"TimeStamp":"2023-02-07T23:04:58.676+05:30","message":"[Controller id=0] Processing automatic preferred replica leader election","Thread":"controller-event-thread","Level":"INFO"}
generates a message which
Verification Failed - Failed to invoke provider method 'verifySuccessMessageEvent'
  i am not getting the exact steps and what is this error mean? could you please help why this exception occured.

authors: shaship04 shrutiujjwal uglyog

repo: DiUS/pact-jvm


text:
Store timestamps of State changes to allow service metrics to be exposed

Would allow GET /worker/state?from=&until= to return a list of {status, timestamp} objects. Include task_id, plan_name for State in {running, pausing}?
OR enable Prometheus querying and collating of status to find service utilisation?

Very unsure about how much history we want blueapi to keep hold of, open to opinions (I suspect @keithralphs will have some)

authors: DiamondJoseph callumforrester

repo: DiamondLightSource/blueapi


text:
Implement dodal connect ALL to test connection to all beamlines

Fixes #875
Running dodal connect ALL will result in the special ALL beamline name being expanded into the list of all known beamlines. dodal connect will then attempt to connect to the beamlines in order and print out the connect results for each.
By default, training (in the training_rig module) and sim (starting with s) beamlines are skipped but can be included with the --include-training and --include-sim options respectively.
Instructions to reviewer on how to test:

dodal connect works as advertised
Unit tests pass

Checks for reviewer

[ ] Would the PR title make sense to a scientist on a set of release notes
[ ] If a new device has been added does it follow the standards
[ ] If changing the API for a pre-existing device, ensure that any beamlines using this device have updated their Bluesky plans accordingly
[ ] Have the connection tests for the relevant beamline(s) been run via dodal connect ${BEAMLINE}

I'm a bit concerned that I would find this confusing as a user, since a lot of our beamline modules depend on the ${BEAMLINE} variable anyway. Some example cases I can see that are not obvious:

Following #862 it is not clear to me if this will connect to I22 and/or P38
If I include the training rigs I would expect it to try and connect to all of them but it will just use the default (p47)
As an outside user I may not understand why P46 is a training rig but P45 isn't

I'm leaning away from --all option at this time, I would prefer a script (or even 30 parallel CI jobs) for running the connection tests per-beamline.

I don't think I feel particularly strongly about having this functionality in the CLI or having it at all. I was originally trying to use it to test new connection logic in dodal and misread the CLI to think that it was there when actually it wasn't. I then probably pushed to get it in out of frustration. In hindsight I'm happy to drop this if @callumforrester thinks it's not worth doing at this time

If we fix #569 I could see this being a useful feature. Or alternative some tagging system e.g. dodal connect --tag mx, where we tagged all MX beamline modules somehow. But I think we need sort out the role of ${BEAMLINE} first.

Wont do for now

authors: DominicOram callumforrester rtuck99

repo: DiamondLightSource/dodal


text:
您好，能加个联系方式吗？

我想试试完整程序可以吗?我联系过ADMM的作者，应该近两个月会有开源计划

chenyuzhong2017@163.com

可以多交流下吗？这是我的邮箱chenyuzhong2017@163.com
我联系过ADMM的作者，应该近两个月会有开源计划。

这是我的邮箱chenyuzhong2017@163.com

repo: DiantaoTu/ACMH-ACMM


text:
AttributeError: 'list' object has no attribute 'lower'

I seem to consistently get the following error, when running Subliminal against my movies or series, using pretty much just a standard run (subliminal download -l en -l da /path/to).
Here is the output:
Downloading subtitles  [#####################---------------]   59%  0d 02:48:08  Two and a Half Men - S04E02 - Who's Vod Kanockers - 720p WEB-DL.mkv
Traceback (most recent call last):
  File "/volume1/@appstore/py3k/usr/local/bin/subliminal", line 11, in <module>
    sys.exit(subliminal())
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/subliminal/cli.py", line 403, in download
    hearing_impaired=hearing_impaired, only_one=single)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/subliminal/core.py", line 211, in download_best_subtitles
    for s in subtitles], key=operator.itemgetter(1), reverse=True)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/subliminal/core.py", line 211, in <listcomp>
    for s in subtitles], key=operator.itemgetter(1), reverse=True)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/subliminal/providers/opensubtitles.py", line 78, in get_matches
    matches |= guess_matches(video, guessit(self.movie_release_name, {'type': 'episode'}))
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and not isinstance(guess['format'], list) and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'

Seems to be related to having two formats attached to it. The best I have been able to google myself to is: https://github.com/pymedusa/Medusa/issues/1033, which fixed the issue by changing code in their software and not in subliminal itself.
I have attached a debug with one of the files that I can reproduce it with without fail.
debug.txt
Very surprised no one else have run into this issue.

guessit (the library used to parse release names) can potentially return multiple values for several fields. Some fields are usually single value, but because of wrong parsing/guess or because of some uncommon scenario the result might be multiple values. E.g.:

you could get BluRay and WEB-DL in format field when parsing a release name (abc.WEB.BD.1080p) which refers to a pack of episodes. Guessit returns correctly multiple values.
you could wrongly get BluRay and WEB-DL for a strange release abc s01e02 Strange Things on Web BLURAY 1080p. Guessit wrongly returns multiple values.

guessit parser is powerful and it is always improving, but it's not perfect.
Since guessit could detect multiple values in some cases for certain properties, Subliminal needs to handle that.
The other software you mentioned fixed the issue by adding an extra custom rule to guessit to discard and log multiple values on the format property. That way, guessit will never return more than one value for that property and this exception will never happen in subliminal. So, it's a workaround.

In your specific case, given your filename (Two and a Half Men - S04E02 - Who's Vod Kanockers - 720p WEB-DL.mkv) guessit will return VOD (Video on Demand) and WEB-DL as format

@ratoaq2 any suggesting on how to fix this?

In short, just drop both lower calls in this line:
https://github.com/Diaoul/subliminal/blob/master/subliminal/subtitle.py#L235
format has a well defined list of possible values. It's not a free text.
The rest of the fields looks fine: guessit will only return 1 release group, 1 title (there was a bug in earlier versions).
I'll need to check the episode_title.

I just ran into this as well. Instead of removing the lower() comparisons I created a pull request to just check if the value is of type string before calling #800

Fix by @sprt (https://github.com/sprt/subliminal/commit/f4f51a088f37f1acf7cb4f4972c2ae6e16def1a6) worked for me.

An change there will be a PR to fix this issue?
@sprt
I am using the official docker image (https://hub.docker.com/r/diaoulael/subliminal/) wich make it complicate to manually fix this issue.

@CWempe Be advised the patch I suggested doesn't appear to be correct; see https://github.com/Diaoul/subliminal/pull/769#discussion_r151983504. Nonetheless, for your problem, I'd say apply a patch locally and build a new Docker container.

Thanks.
I build my own docker image based on the feature/video_format branch.
https://github.com/Diaoul/subliminal/tree/feature/video_format
Seems to work. 😄
If anybody is interessted: https://hub.docker.com/r/cwempe/subliminal/

Fixed by 3121a75499779c7cc9eba059a4fa123cf5541027

authors: CWempe Diaoul fishmongr ratoaq2 saxicek sprt trillex

repo: Diaoul/subliminal


text:
Installation guide - Visual Studio Code - Successful

Visual Studio Code configuration
Go to https://github.com/FriendsOfPHP/PHP-CS-Fixer#installation and download the phar file
Link used to be https://cs.symfony.com/download/php-cs-fixer-v2.phar
File->Preferences->Settings
At north-east, there are two icons, one says "Open Settings" and will show you the settings in json mode. . Add your paths.
    "phpformatter.phpPath": "c:\\wamp\\bin\\php\\php7.4.9\\php.exe",
    "phpformatter.pharPath": "c:\\php_formatter\\php-cs-fixer.phar",
    "phpformatter.logging": true,
    "phpformatter.arguments": [
        "--rules=@PSR2"
    ],

The phpformatter.arguments PSR2 is required, seems to be a bug.
Debug info is visible here (phpformatter.logging):
View -> Command Palette ->Developer: Toggle Developer Tools -> Console
and looks like this:
console.ts:137 [Extension Host] PHPFormatter: Tempfile fd: 5
console.ts:137 [Extension Host] PHPFormatter: Tempfile name: c:\temp\phpfmt-21316hI7z3XLclzvd.tmp
console.ts:137 [Extension Host] PHPFormatter: Writing current document content to temp file. Until VSCode will have a way of querying encoding, utf8 will be used for reading and writing.
console.ts:137 [Extension Host] PHPFormatter: Full command being executed: "c:\wamp\bin\php\php7.4.9\php.exe" "c:\php_formatter\php-cs-fixer.phar" fix "c:\temp\phpfmt-21316hI7z3XLclzvd.tmp" --rules=@PSR2

Test that php-cs-fixer is installed:
php C:\php_formatter\php-cs-fixer.phar fix sample.php
I gathered this info from all the tickets. I hope it helps you.

Thank you, the fact that the log output goes to vscode's javascript console (NOT the dedicated "output" console where other language servers' output goes) was the key for me to fix my installation. (Personally I had picked up some outdated arguments which caused the command to fail)
The logging output is actually fairly good, printing the full attempted command and its error output.

authors: adrianvintu wardds

repo: Dickurt/vscode-php-formatter


text:
Add Unit Tests

Since @Justinezgh added the code, I think it could be a good way for you @dlanzieri to practice redacting test cases for the function classes.

Start getting familiar with pytest (if not already) and draft a few test cases on a PR. We can guide you along the way.
Set up a github workflow to automate the execution of the tests on any new PR.

Done through #21 and #54


text:
Add deployment testing

Add a test script or ansible task so that after deployment we can ensure that critical services are present and behaving as we expect.

Added a script cli_test.py in PR #292.  This can be run as part of docker provisioning by adding the --cli-test to deploy_docker.py, or run manually in other deployments.

repo: DigitalSlideArchive/HistomicsTK


text:
chore(package): update eslint-plugin-jsx-a11y to version 5.0.1

Closes #113

Codecov Report

Merging #126 into master will increase coverage by 1.88%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #126      +/-   ##
==========================================
+ Coverage   27.48%   29.37%   +1.88%
==========================================
  Files          11       11
  Lines         131      143      +12
  Branches       22       27       +5
==========================================
+ Hits           36       42       +6
- Misses         93       99       +6
  Partials        2        2

Impacted Files
Coverage Δ

src/shared/components/SVGIcon.jsx
100% <0%> (ø)
:arrow_up:

src/shared/components/Post.jsx
0% <0%> (ø)
:arrow_up:

src/shared/components/HomePost.jsx
100% <0%> (ø)
:arrow_up:

src/client/index.jsx
0% <0%> (ø)
:arrow_up:

src/shared/components/Home.jsx
100% <0%> (ø)
:arrow_up:

src/shared/components/App.jsx
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

authors: Dilatorily codecov-io

repo: Dilatorily/fictional-octo-spork


text:
Feature request- sort by start time

For sports with a 'Flex' or 'Utility' position, I'd like to automatically sort lineups so that the player with the latest start time is used in the most flexible position.  If a football lineup has 3 RBs (one as flex), I'd like the RB who starts at 4PM to be in 'Flex' rather than one who starts at 1PM.
Thanks again as always!

I added sorting in new version

repo: DimaKudosh/pydfs-lineup-optimizer


text:
🛑 API - Debank Gas Price Dict is down

In 763cec9, API - Debank Gas Price Dict ($DEBANK_GAS_PRICE_DICT_API_URL) was down:

HTTP code: 429
Response time: 283 ms

Resolved: API - Debank Gas Price Dict is back up in 886e60b.

repo: DimensionDev/status


text:
⚠ RPC server - Figment Solana has degraded performance

In 77ca321, RPC server - Figment Solana ($FIGMENT_SOLANA_RPC_URL) experienced degraded performance:

HTTP code: 200
Response time: 268 ms

Resolved: RPC server - Figment Solana performance has improved in 735d9b4.


text:
🛑 API - Alchemy EVM NFT is down

In 3f0d583, API - Alchemy EVM NFT ($ALCHEMY_EVM_NFT_API_URL) was down:

HTTP code: 429
Response time: 32 ms

Resolved: API - Alchemy EVM NFT is back up in d3236de.


text:
can i get your age estimate model ?

Dear Sir,
Your repository is impressive, but I'm having trouble locating the part of the code that predicts age

sorry i found it


text:
Ffmpeg Stucked on Loading: SharedArrayBuffer is not defined

Thanks for this project. I deployed this using docker but I'm getting issue related to ffmpeg on webapp.
It keeps loading and throws error: SharedArrayBuffer is not defined
I read about it online, and seems like it is related to ffmpeg-core.
Can you help me in this?
and BTW there's one typo in readme file in docker run command.  -p flag is missing.
Correct Command:
docker run -p 127.0.0.1:3000:3000 ffmpeg-web
Thank You

Hi! Thank you for reporting this issue. That's strange: I tried setting up the Docker container on my machine (Linux Mint 21) and it seems to work. May I ask you which browser and OS you are using? Also, if you open the DevTools and write crossOriginIsolated in the console, which is the returned value?
In any case, I've done some quick searches about ffmpeg.wasm and it seems that now it's possible to run a slower version without SharedArrayBuffer. If, for some reason, we can't figure out why this error is triggered, I might implement it as a fallback when these type of errors occur
Thanks also for fixing the command – I'll update the README when I'll add that fallback in the following days

Hey, thanks for reply. I found the issue.
I am running it on vps and tried to access it using ip_address:3000, and it was throwing error because of that.
It's working if I run it locally and expose it using tunnel.

I also did this as using the supplied docker run 127.0.0.1:3000:3000 ffmpeg-web gave me docker: invalid reference format.

I had used this command before: docker run -p 3000:3000 ffmpeg-web

Could you elaborate on this bit?

It's working if I run it locally and expose it using tunnel.

What did your final docker CLI command look like? I can't browse to the docker instance locally as it's running on a headless ubuntu VM, I want to be able to access ffmpeg-web from any device on my network which I kinda thought was the whole purpose.

Ok I had to set up an SSL reverse proxy to get this to work. It will not work in plain HTTP as far as I can see.

authors: Dinoosauro leonard4546 thirdwheel velkrosmaak

repo: Dinoosauro/ffmpeg-web


text:
Nested Routes do not work

Problem
Nested Routes do not work while they should based on https://dioxuslabs.com/nightly/router/guide/building-a-nest.html
Steps To Reproduce
Create an app:
pub fn app(cx: Scope) -> Element {
    cx.render(rsx! {
        Router {
            Route { to: "/", "I am homepage"}
            Route {
                to: "/blog",
                p { "-- Blog --" }
                Route { to: "/post", "I am blog post" }
            }
            Route { to: "", "Oops, 404"}
        }
    })
}

Steps to reproduce the behavior:

Navigate to /blog/post

Expected behavior
Based on https://dioxuslabs.com/nightly/router/guide/building-a-nest.html I would expect the "I am blog post" text to be rendered, instead it renders "Oops, 404"
Environment:

Dioxus version: dioxus = {version = "0.2.4", features = ["web", "router"]}
Rust version: 1.61.0 stable
OS info: MacOS
App platform: web

Questionnaire

[ ] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later
[x] I am probably not good enough at Rust to fix it myself

I can confirm that this is an issue on Linux as well, 0.2.4 and master. Thanks for the report!

Not sure if this is known already (and probably doesn't matter if the router is getting a complete rewrite), but mostly likely related: it seems nesting routes inside ANY non-dioxus_elements will fail, not just Routes nested inside other Routes.
Ex:
fn routes(cx: Scope) -> Element {
    cx.render(rsx! {
        Route { to: "/", "I am homepage"}
        Route {
            to: "/blog",
            p { "-- Blog --" }
            Route { to: "/post", "I am blog post" }
        }
        Route { to: "", "Oops, 404"}
    })
}

pub fn app(cx: Scope) -> Element {
    cx.render(rsx! {
        Router {
            self::routes {}
        }
    })
}

Nested routes were added as part of #1020

seems like the function names have to be snake case. One of my code got work even there is #![allow(non_snake_case)] already.

authors: Demonthos apichai-Sx rMazeiks scottbot95 thestarmaker

repo: DioxusLabs/dioxus


text:
WGPU using child windows

This is a minor change from the code perspective to allow child windows to be created and some fixes for using the transparency feature. However, the implications of this are pretty staggering as they allow for the use of other rendering toolboxes.
Tested on macOS.

Slightly more interesting example of how this could play out: https://github.com/vyeevani/dioxus_native_graphics

https://github.com/user-attachments/assets/082ef776-dad2-4872-8e1c-b230574ec234

I struggled to get merge conflicts fixed for this PR since the github CLI was checking out the wrong branch. I ended up fixing things in #3257 and adding you as a co-author so you get commit credits :)
Thanks for the PR!

Awesome! Sorry I hadn't been very active on this, got pulled into some other stuff. thank you for seeing it through :)

authors: jkelleyrtp vyeevani


text:
Scaling Title

Making title scale with size of phone or webpage

Is your feature request related to a problem? Please describe.
The title does not scale with the size of the device.
Describe the solution you'd like
Set the title to scale to a reasonable size on different devices.

Replaced by #143

authors: Larsonog tedbjurlin


text:
[Bug & Enhancement] Own user status

Describe the bug
If i have Radial status enabled, and i speak Radial Status block speak indicator.
My fix: (use at the end of file or paste in CustomCSS)
div.wrapper-1VLyxH:not([data-user-id]) > svg > rect{
    visibility: hidden; /* hide the status ring around your own avatar */
}

Screenshots

(No modification)

(like normal)
In VC, speak: (with mod)

in VC, speak, (no mod)

Infomation (please complete the following information):
Discord channel: Stable
OS: Linux
Mod: BetterDiscord
Discord language: PL

No definitive fix for this?

It's not ideal but try refresh (Ctr+R)

It's not ideal but try refresh (Ctr+R)

Doesn't do anything since the theme is broken

authors: koliwbr xFrah

repo: DiscordStyles/RadialStatus


text:
🛑 Mastodon Streaming API is down

In d51a226, Mastodon Streaming API (https://social.everythingbagel.me/api/v1/streaming/health) was down:

HTTP code: 502
Response time: 28 ms

Resolved: Mastodon Streaming API is back up in 9155671 after 23 minutes.

repo: DismalShadowX/upptime


text:
Cog.add_command, .remove_command, etc.

Summary
see title.
What is the feature request for?
disnake.ext.commands
The Problem
There's currently no proper way of dynamically adding/removing commands from cogs, other than directly messing around with internal fields like __cog_commands__.
The Ideal Solution
New methods like Cog.add_command, .remove_command, as well as complementary ones for slash/user/message application commands.
The Current Solution
modifying __cog_commands__, which isn't documented
Additional Context
suggested here: https://canary.discord.com/channels/808030843078836254/913779868985090089/1058180711095484416

I shall take a look

After some discussion, I don't think we'll be adding this; there are too many moving parts already in the way cogs work, and this would likely only complicate things.
Cog command callbacks are instance methods, meaning they should accept a self parameter, which makes defining such a method outside of a cog unintuitive.
Currently, the proper solution to the original issue of grouping commands would be using extras as outlined here: https://canary.discord.com/channels/808030843078836254/913779868985090089/1064287849467367555 (more context around that message too).

repo: DisnakeDev/disnake


text:
Monitor doesnt show up after update

Are you using the latest driver?
displaylink 5.3.1.34-4
Are you using the latest EVDI version?
evdi 1.7.2-1
If you are using a DisplayLink device, have you checked 'troubleshooting'
on DisplayLink's website?
Yes, there is no solution to my problem
Is this issue related to evdi/kernel?
Possibly.
Information:

Distro: Arch Linux x86_64
Kernel: 5.10.1-zen1-1-zen
Xorg: xorg-server 1.20.10-3
DE: Plasma 5.20.4

GPU: Intel UHD Graphics 620

Logs:
Pacman: https://paste.ee/p/oMJsF

/usr/share/sddm/scripts/Xsetup:
#!/bin/sh $(xrandr --listproviders | grep -q "modesetting") && xrandr --setprovideroutputsource 1 0
xrandr --listproviders:
Providers: number : 1 Provider 0: id: 0x47 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 5 associated providers: 0 name:modesetting
/usr/share/X11/xorg.conf.d/20-evdidevice.conf:
Section "Device"   Identifier "DisplayLink"   Driver "modesetting"   Option "PageFlip" "false" EndSection

Description:
Displaylink worked without issues on 5.9.14 until i upgraded 5.10 today, after reboot it first didnt load in system, after rebuilding it for 5.10, it started on reboot, but the monitor connected to the docking station doesnt show up in display menu. Downgrading linux kernel didnt make it work on 5.9.14 again.

[2020-12-16T12:29:45+0100] [ALPM-SCRIPTLET] ==> Unable to install module evdi/1.7.2 for kernel 5.9.14-arch1-1: Missing kernel modules tree.
[2020-12-16T12:29:45+0100] [ALPM-SCRIPTLET] ==> Unable to install module evdi/1.7.2 for kernel 5.10.1-zen1-1-zen: Missing kernel modules tree.

@Zetabite Are the kernel headers installed?
What is the output of /var/lib/dkms/evdi/1.7.2/build/make.log?

@Zetabite Are the kernel headers installed?
Yes:
2 testing/linux-zen-headers 5.10.1.zen1-1 (23.8 MiB 127.8 MiB) (Installed)     Headers and scripts for building modules for the Linux ZEN kernel 1 testing/linux-headers 5.10.1.arch1-1 (23.0 MiB 126.7 MiB) (Installed)     Headers and scripts for building modules for the Linux kernel
What is the output of /var/lib/dkms/evdi/1.7.2/build/make.log?
There is no log

After reinstalling the headers and building again, it now works without issues

authors: Zetabite elguero

repo: DisplayLink/evdi


text:
Build fails on Ubuntu 22.04 kernel 6.1.0

Hi,
Using the latest clone from the repository, I get the make.log file in attach. Please ignore version number, it was just the latest clone using the instructions at https://mrk.sh/linux/displaylink/fix-displaylink-kernel6.0/
Thanks!
$ uname -a
Linux omer 6.1.0-060100rc5drmtip20221118-generic #202211180211 SMP PREEMPT_DYNAMIC Fri Nov 18 03:02:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
make.log

I have a similar issue, where it seems to be a weird thing with how gcc compiles files. I was able to get it to compile perfectly on my previous install, but after my new one, evdi just refuses to compile. I'll put my make output below:
DKMS make.log for evdi-1.12.0+dfsg for kernel 6.2.16-060216-generic (x86_64)
Wed Jul 26 01:16:24 AM CDT 2023
make: Entering directory '/usr/src/linux-headers-6.2.16-060216-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-17ubuntu1) 12.2.0
  You are using:           gcc-12 (Debian 12.2.0-14) 12.2.0
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_platform_drv.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_platform_dev.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_sysfs.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_modeset.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_connector.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_encoder.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_drm_drv.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_gem.o
  CC [M]  /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_painter.o
/var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.c: In function ‘evdifb_create’:
/var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.c:408:24: error: ‘struct drm_fb_helper’ has no member named ‘fbdev’; did you mean ‘dev’?
  408 |         efbdev->helper.fbdev = info;
      |                        ^~~~~
      |                        dev
/var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.c: In function ‘evdi_fbdev_destroy’:
/var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.c:462:28: error: ‘struct drm_fb_helper’ has no member named ‘fbdev’; did you mean ‘dev’?
  462 |         if (efbdev->helper.fbdev) {
      |                            ^~~~~
      |                            dev
/var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.c:463:39: error: ‘struct drm_fb_helper’ has no member named ‘fbdev’; did you mean ‘dev’?
  463 |                 info = efbdev->helper.fbdev;
      |                                       ^~~~~
      |                                       dev
/var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.c: In function ‘evdi_fbdev_unplug’:
/var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.c:540:28: error: ‘struct drm_fb_helper’ has no member named ‘fbdev’; did you mean ‘dev’?
  540 |         if (efbdev->helper.fbdev) {
      |                            ^~~~~
      |                            dev
/var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.c:543:39: error: ‘struct drm_fb_helper’ has no member named ‘fbdev’; did you mean ‘dev’?
  543 |                 info = efbdev->helper.fbdev;
      |                                       ^~~~~
      |                                       dev
make[1]: *** [scripts/Makefile.build:252: /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi_fb.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:2027: /var/lib/dkms/evdi/1.12.0+dfsg/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.2.16-060216-generic'

I honestly can't remember off the top of my head, as I've now upgraded to a pc with a gpu that supports 4 monitors natively, but make sure your Linux headers are installed (linux-headers-amd64) and invoke dkms manually and get the log from there. If I recall correctly, I have a patched version that compiles cleanly from another issue in this repo but I forgot which one it was


text:
Elastic 7 support

Details: https://github.com/DivanteLtd/vue-storefront/issues/1692
TODO:

[x] support @elastic/elasticsearch5.x for legacy mode based on config.elasticsearch.apiVersion
[x] seemingly only 840 products fro 2036 are being imported - to check why is that (mapping?)
[x] docs
[x] tests in the legacy mode

Hi, guys!
As I see, vue-storefront v1.11.0 & vue-storefront-api v1.11.0 have support for Elasticsearch 7.x already. Do you plan to merge this PR into the master branch and to release new version of mage2vuestorefront?
I've used feature/es7 branch in my tests with Elasticsearch v7.3.2 and found it works pretty well.
Thanks for the products, guys. It's awesome.

@andrzejewsky shouldn’t that be merged in?

@pkarw yeah, it supposed to be! I totally missed out that PR

authors: andrzejewsky flancer64 pkarw


text:
allow to plug in to ConfigurableData with afterAddData plugin method …

…by allowing to reuse the ConfigurableData properties when adding own custom index data

I leave comment on your old PR.

authors: afirlejczyk janmyszkier