FG

All Issues

24,993 verified issues

🗄️ Databases
Freshalmost 6 years ago

.findOne(undefined) returns first item in the database instead of undefined

Issue type: [ ] question [x] bug report [ ] feature request [ ] documentation issue Database system/driver: [ ] `cordova` [ ] `mongodb` [ ] `mssql` [ ] `mysql` / `mariadb` [ ] `oracle` [x ] `postgres` [ ] `sqlite` [ ] `sqljs` [ ] `react-native` [ ] `expo` TypeORM version: [x] `latest` [ ] `@next` [ ] `0.x.x` (or put your version here) Steps to reproduce or a small repository showing the problem: [code block]

Confidence78%
78%
Verified Fix Available
1 fix8 verified
🤖 AI & LLMsAnthropic
Fresh17 days ago

Claude API tool use: response content block is text, not tool_use, causing type error

When using Claude's tool use feature, code that assumes every response contains a tool_use content block crashes when Claude decides to respond with a text message instead of calling a tool. This happens when the model determines a tool call is not needed (e.g. the answer is in its context), or when max_tokens is hit before the tool call completes. The content array must always be checked for block type before accessing tool_input.

Confidence78%
78%
Verified Fix Available
1 fix10 verified
📱 Mobile & Cross-PlatformExpo
Freshover 2 years ago

useFonts hook randomly failing to load fonts

Summary When I use the {useFonts, Abel_400Regular} hook from "@expo-google-fonts/abel" and {HankenGrotesk_300} from "@expo-google-fonts/hanken-grotesk" the Abe font will fail to load on my iOS Expo Go app and my Android studio emulator. However, when I add the function [code block] and save my editor the font loads fine. But when I reload each app from Expo Cli the font refuses to load again unless I remove the function, save in my editor, add the function, and save again. I had this issue earlier with locally saved .otf font files, so I believe the issue is with the { useFonts } hook. I've tried all fixes I can find online and nothing's helped. EDIT: I found out it's loading the fonts whenever I hot-reload after changing any code in the render return statement for a function component. I just added an if (fontsLoaded) {} and saved and it loaded the fonts. I'm guessing it's throwing the Font not loaded error slightly before the font gets a chance to load, but when I use a splashscreen to wait for it to load it gets stuck on the splashscreen forever. What platform(s) does this occur on? Android, iOS SDK Version ~48.0.9 Environment [code block] Minimal reproducible example Here is the minimum code I was able to reproduce the error with. When I change the return statement and hot-save the project, the render update fixes the font. [code block] Here is one of the screens the font is running on ```

Confidence78%
78%
Verified Fix Available
1 fix5 verified
🗄️ Databases
Freshover 3 years ago

Having e-mail auth provider enabled rate limiting other auth providers usage

Bug report Having e-mail auth provider enabled gives a 429 rate limit exceeded, despite using only Phone auth provider. Describe the bug We had e-mail auth provider and phone auth provider enabled. (With e-mail auth not being used.) Once we started getting a spike in traffic for our SMS OTPs, we started getting a 429 rate limit exceeded, despite Twilio looking fine on our end. Once we disabled e-mail auth as a provider, everything was working normally again. To Reproduce 1. Enable e-mail and phone auth providers, 2. Try hitting rate limits that you would normally hit, but with phone SMSs, 3. Get a 429 - Rate Limit Exceeded. 4. Disable E-mail auth, and check that everything is working again. Expected behavior Did not expect any rate limit issues. System information - Browser: Chrome, - Version of "@supabase/supabase-js": "^2.1.1", - Version of Node.js: [e.g. 16.13.1]

Confidence78%
78%
Verified Fix Available
1 fix5 verified
🛠️ Developer ToolsMicrosoft
Freshalmost 6 years ago

Add option to pin tabs similar to Visual Studio

There should be an option in Visual Studio Code to pin tabs, like you can in Visual Studio. As with issue #10739 there should be a config option allowing you to hide the "pin tab" icon in the tab itself if you just want to use the right-click menu or shortcut to pin/unpin tabs. There should also be an option (again, like in Visual Studio) where pinned tabs are put onto a separate line above the other tabs.

Confidence78%
78%
Verified Fix Available
1 fix9 verified
🌐 Web & Full-Stack
Freshalmost 3 years ago

When will a stable version express 5 is supposed to be released?

Currently we have `beta.1`. When will we get stable?

Confidence78%
78%
Verified Fix Available
1 fix7 verified
🗄️ DatabasesVercel
Freshover 3 years ago

Transaction API error: Transaction already closed: Transaction is no longer valid. Last state: 'Expired' P2028

Bug description [code block] I'm using 3.14.0 I increased timeouts and these queries generally take ~500ms though they can take longer under load [code block] [code block] Slack thread: https://prisma.slack.com/archives/CCWDULGUW/p1654457710257189 How to reproduce Do a bunch of complex interactive transactions in different lambda functions running in parallel Expected behavior _No response_ Prisma information 3.14.0, in a lambda layer serverless stack Environment & setup - OS: Lambda - Database: Postgres - Node.js version: 14 Prisma Version [code block]

Confidence78%
78%
Verified Fix Available
1 fix4 verified
🛠️ Developer ToolsMicrosoft
Freshalmost 5 years ago

[BUG] npm ci installs an optional dependency which targets a different os than the host os

What / Why npm ci seems to install an optional dependency for the linux os when running on a mac and seems to install the optional dependency for mac when running on linux. When [code block] <details> <summary>click to view output of above command</summary> <pre> Wrote to /private/tmp/d/package.json: { "name": "d", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" } > oax@0.5.25 postinstall /private/tmp/d/node_modules/oax > node ./postinstall.js npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN d@1.0.0 No description npm WARN d@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: oax-windows-64@0.5.25 (node_modules/oax/node_modules/oax-windows-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for oax-windows-64@0.5.25: wanted {"os":"win32","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: oax-linux-64@0.5.25 (node_modules/oax/node_modules/oax-linux-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for oax-linux-64@0.5.25: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) + oax@0.5.25 added 2 packages and audited 4 packages in 1.1s found 0 vulnerabilities d@1.0.0 /private/tmp/d └─┬ oax@0.5.25 ├── oax-darwin@0.5.25 ├── UNMET OPTIONAL DEPENDEN

Confidence78%
78%
Verified Fix Available
1 fix4 verified
☁️ Cloud & DevOpsAmazon
Freshover 5 years ago

Allow cloudformation deploy to accept a paramater file

When running the [code block] command it would be useful to be able to pass the parameters in as a file (to the [code block] parameter), as can be done with create-stack and update-stack. Also requested here: https://github.com/awslabs/serverless-application-model/issues/111

Confidence78%
78%
Verified Fix Available
1 fix6 verified
🔌 APIs & SDKs
Freshover 7 years ago

GraphQLUnionType as input type

I would need `GraphQLUnionType` to work also as an input type. I need to pass a list of different conditions to the server. Example (start processing products where (A or B and C) - order is important): [code block]

Confidence78%
78%
Verified Fix Available
1 fix9 verified
🗄️ DatabasesVercel
Freshover 1 year ago

Service Classes (e.g. for NestJS)

Dear Prisma Team, for my upcoming project, i would like to use Prisma, since it is ready to be used in production. I have been around for a year or so, but now finally use it in a concrete project. I really like what you've been working on - Prisma looks great and i can't wait to try it out. Problem In the context of my project i will be building a RESTful API with `NestJS`. Unfortunately, because of various reasons I cannot rely on GraphQL, for example, existing 3rd party clients are not able to "speak" (i.e., work with) GraphQL. In order to reduce boilerplate code in my `Service`s, i thought it may be a good idea to create some kind of _generic_ `CrudService` that offers basic functionality, like `create`, `update`, ... as some kind of wrapper around `prisma`. Having used `typeorm` in projects before, i thought that this may be an easy task. However, i quickly hit some roadblocks, because there are no `Repositories` in Prisma like in typeorm. The next idea was to simply _inject_ (i.e., pass) the corresponding `Delegate` to the `CrudService`. The closest i could get, however, is like this: [code block] and then create a concrete `UserService` like this: [code block] While this works, it has a few drawbacks: 1. all `modelDelegate` methods (i.e, `create()`, `update()`, `findMany()`, ...) are unknown, because the `delegate` is not known 2. the `UserService` with all its generics looks very ugly Suggested solution Regarding the drawbacks discussed earlier, i would sug

Confidence78%
78%
Verified Fix Available
1 fix8 verified
🔌 APIs & SDKs
Freshover 4 years ago

[Security] Regular expression Denial of Service (ReDoS)

Describe the bug A ReDoS (regular expression denial of service) flaw was found in the axios package. An attacker that is able to provide crafted input to the trim function may cause an application to consume an excessive amount of CPU. https://www.huntr.dev/bounties/1e8f07fc-c384-4ff9-8498-0690de2e8c31/ To Reproduce Code snippet to reproduce, ideally, that will work by pasting into something like https://npm.runkit.com/axios [code block] Expected behavior Environment - Axios Version [e.g. 0.21.1] - Adapter [e.g. XHR/HTTP] - Browser [e.g. Chrome, Safari] - Browser Version [e.g. 22] - Node.js Version [e.g. 14.17.5] - OS: [e.g. iOS 12.1.0, OSX 10.13.4] - Additional Library Versions [e.g. React 16.7, React Native 0.58.0] Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

Confidence78%
78%
Verified Fix Available
1 fix4 verified
🔌 APIs & SDKs
Freshalmost 6 years ago

Unable to POST data in axios

I am using this code to POST the data to Web API var param = { args: { myStringVal: '979251e4-6c9f-460d-ba32-1b6fe58ce8a3' } }; axios({ method: 'post', url: 'api/Application/Action/MyWebAPIMethod', data: JSON.stringify(param), }); and my Web API code is like this: public class MyClassVM { public string myStringVal { get; set; } } public MessageVM<SupervisorUserEntity> MyWebAPIMethod(MyClassVM args){ // my code goes here } Issue is: When I pass the myStringVal: '979251e4-6c9f-460d-ba32-1b6fe58ce8a3' it gives me null in Web API [args.myStringVal = null ]. How can I pass the values in axios POST. Thanks in advance

Confidence78%
78%
Verified Fix Available
1 fix8 verified
☁️ Cloud & DevOpsDocker
Freshabout 9 years ago

docker-compose build ignoring .dockerignore?

I've got a full example repo here: https://github.com/devinrsmith/docker-compose-build-test If I'm using `docker-compose build` incorrectly, please let me know!

Confidence78%
78%
Verified Fix Available
1 fix6 verified
🛠️ Developer ToolsMicrosoft
Freshabout 3 years ago

Explore user profiles

Overview This issue aims to explore what adding "profiles" could look like in the product. These profiles can be used in education, presentations, or can even be language specific. The explorations should cover being able to setup and switch between profiles. Ideally these profiles should be synced with Settings Sync (if used) so you can use those profiles anywhere. One idea for settings is to introduce a new settings object like: [code block] The "Demos" profile inherits the current settings a user has and adds additional settings on top of the current ones. Also, when profiles are enabled we will create a "Default" profile where the user can switch back to their default mode. Related issues - Screencast Mode only settings #105226 - Sync mutliple settings profiles #92393 - Multiple environment profiles (either per-session or per-window) #57548 - User profile #53453 - Enable/disable extensions from config file #40239 - Local Workspace settings #40233 - Support "perspectives" like approach in VSCode #95182

Confidence78%
78%
Verified Fix Available
1 fix7 verified
🗄️ Databases
Freshabout 3 years ago

Retrying Redis connection attempts keeps going to infinite when MaxRetriesPerRequestError is handled

ioredis doesn't emit MaxRetriesPerRequestError when Redis error is down!~ ioredis ver: 4.17.3 This is not working in my production APP so I have prepared small test project to check if I am able to repeat the same and indeed I can. Code: [code block] I have tried to setup different versions of Redis and the problem appears no matter which I use. I have also tried to setup Redis on different hosts and I get the same error. Scenario: 1. Start Redis server 2. Start the app with node index.js 3. Connection is established 4. Go to Redis server host and shutdown the Redis process with 'kill -9 Redis_PID' or stop the Redis service with 'sudo systemctl stop redis' (CentOS 7.5). 5. ioredis detects following and is starting retryStrategy described in above code: [code block] Bug: The strategy keeps going. No MaxRetriesPerRequestError is emitted. The app is not stopped. [code block] Expected behavior: retryStrategy reaches maxRetriesPerRequest limit and emits MaxRetriesPerRequestError.

Confidence78%
78%
Verified Fix Available
1 fix4 verified
🌐 Web & Full-Stack
Freshalmost 6 years ago

New purge option not working with webpack

First of all, congrats in the new 1.4 release, the new purge option is awesome! Recently I used it in a project built with Parcel and worked like a charm. However, I cannot make it work in another project built with webpack. Previously I was using the webpack `PurgecssPlugin` configuration, now I removed it and expected it to work with the following configuration: [code block] [code block] I've tried removing the other loaders in case they interfered in any way, with no luck. Am I missing something? 🤔 Thanks in advance.

Confidence78%
78%
Verified Fix Available
1 fix5 verified
🌐 Web & Full-Stack
Freshabout 5 years ago

Dark mode "class" strategy doesn't work with CSS Modules and @apply

Describe the problem: Dark Mode in 'class' strategy doesn't work with CSS Modules and `@apply`. `css-loader` renames `.dark` selectors given by tailwind. Link to a minimal reproduction: https://github.com/tosuke-lab/miniature-octo-umbrella

Confidence78%
78%
Verified Fix Available
1 fix8 verified
🌐 Web & Full-Stack
Freshover 8 years ago

Utility for text-shadow?

Hey, what about create an utility for `text-shadow`? :)

Confidence78%
78%
Verified Fix Available
1 fix10 verified
📱 Mobile & Cross-Platform
Freshover 7 years ago

[Android] Requiring images with Gradle 4 fails release builds

Hello guys, I ran into this issue when updating Gradle and Android Studio. Thanks for your help! Is this a bug report? Yes Have you read the Contributing Guidelines? Yes Environment Environment: OS: macOS Sierra 10.12.6 Node: 8.5.0 Yarn: 1.3.2 npm: 5.3.0 Watchman: 4.7.0 Xcode: Xcode 9.1 Build version 9B55 Android Studio: 3.0 AI-171.4408382 Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.50.3 => 0.50.3 Target Platform: Android (22) Steps to Reproduce Requiring images with latest `gradle` fails release builds I created a small test project but here are the steps to reproduce it: 1. Init a new project: `react-native init Test` 2. Update to latest Gradle: - Open Android Studio and install recommended version - Build from Android Studio, it should ask you to update build tools, do so 3. Require an image in `index.js` 4. Run `cd android && ./gradlew assembleRelease` Expected Behavior The command `./gradlew assembleRelease` should not fail Actual Behavior Running `./gradlew assembleRelease` when the image is required from the JS fails with: [code block] If the image is not required, the command works fine. Reproducible Demo [code block] Workaround Adding `android.enableAapt2=false` to `android/gradle.properties` fixes the issue but it is only a workaround.

Confidence78%
78%
Verified Fix Available
1 fix5 verified
← PrevPage 55 of 1250Next →