SpotifyException: http status: 400, code:-1 – Unsupported URL / URI., reason: None

i tried to make spotify bot in discord, but when trying to play playlist i have error, here’s fragment of it: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: SpotifyException: http status: 400, code:-1 – Unsupported URL / URI., reason: None my discord bot code: import discord from discord.ext import commands import spotipy from spotipy.oauth2 import SpotifyOAuth import … Read more

getting error in running mlflow ui on vs code

I am getting the error after running the command ****mlflow ui ****in vs code AttributeError: ‘EntryPoints’ object has no attribute ‘get’ I have tried downgrading this using: pip install “importlib-metadata<5.0”

How can I filter by two attributes at the same time with mat-select-filter, in Angular?

I am using the mat-select-filter library and in the displayMember it is filtering by code only. I want to be able to filter by name and at the same time by code. I am using Angular and Typescript. How can I do it? <mat-select-filter [placeholder]=”‘Buscar..'” [array]=”estaciones” [displayMember]=”‘codigo'” (filteredReturn)=”filteredEstaciones = $event”></mat-select-filter> <mat-option *ngFor=”let item of filteredEstaciones” … Read more

How can I disable some logging messages in python?

Some logging message in request library in python are annoying. I don’t want to disable all, but only some messages. How can I implement this code: def show_message(log) if log.startswith(“message”): return False return True Are you trying to filter logging from a specific library or everything written to stdout/stderr? –  @smallpepperz Just a specific library … Read more

Openpyxl | Sorting values that result from a formula

I have a table where I would like to sort based on a specific column, and the values in that column result from a formula, but instead of reading the resulting values, python reads the literal string of the formula; therefore, I’m unable sort properly based on the values. How do I sort based on … Read more

Issue with Microsoft login using OpenID Connect in ASP.NET Core production environment

Problem Description: I’m encountering an issue with Microsoft login integration using OpenID Connect in my ASP.NET Core application specifically in the production environment. Locally, the authentication works fine, but when deployed to production, I’m consistently receiving the following exception: Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolException: Message contains error: ‘invalid_grant’, error_description: ‘AADSTS54005: OAuth2 Authorization code was already redeemed, please retry with … Read more

Collapse tree structure in django

I have a tree structure in Django. It is displayed as a menu. To make it compact, you need to design it as an expandable/collapsible list. How to do this? class Composition(MPTTModel): parent = TreeForeignKey(‘self’, on_delete=models.CASCADE, blank=True, null=True, related_name=”children”, db_index=True) mapping = models.BooleanField(default=False) id_drawing = models.ImageField(upload_to=’media/image/’, blank=True, null=True, default=”null”) position = models.PositiveIntegerField() designstion = models.CharField(max_length=255, … Read more

github jekyll page build keeps failing

I am maintaining a github page using jekyll, and today I noticed my build keeps failing no matter what actions I take (e.g., upload files, delete files, making slight text changes in files). I am attaching the error message from “Build with Jekyll”: Error: Logging at level: debug Configuration file: /github/workspace/./_config.yml GitHub Pages: github-pages v229 … Read more

NestJS failed with the error: “Jest worker encountered 4 child process exceptions, exceeding retry limit”

I’m encountering issues with running Jest test in my NestJS project. I’ve followed the setup guides and examples provided, but my test is failing to execute properly. Here’s breakdown of my setup and the problem I’m facing: Problem: When running Jest test for “updating user account” unit test, the test fails to throw an error … Read more