FG

All Issues

24,993 verified issues

🗄️ Databases
Fresh9 days ago

[BUG]: drizzle-zod's createInsertSchema() can't handle column of type `vector`

What version of `drizzle-orm` are you using? 0.31.0 What version of `drizzle-kit` are you using? 0.22.1 Describe the Bug One of my columns is of type `vector` (from the `pgvector` extension). I use `createInsertSchema()` from the `drizzle-zod` package to create a Zod schema for that table. When navigating to the page where that Zod schema is used, I'm getting the following error: `Error Cannot use 'in' operator to search for 'enumValues' in undefined` When I remove the `vector` column, everything works fine. I'm not really sure why the error talks about `enumValues` at all..but I figured it must have something to do with the `vector` column. [code block] schema: [code block] Expected behavior Error should not happen. Environment & setup I'm using "drizzle-zod": "^0.5.1" Full Error stack: [code block]

Confidence60%
60%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

sentinel connect unhandled error

[code block] but I can reach all sentinels server,and all redis operator is ok. so, I dont understand why this error shown frequently. wish solutions, sincerely.

Confidence60%
60%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

[BUG]: Please install latest version of "drizzle-orm" - with latest Drizzle version

What version of `drizzle-orm` are you using? 0.32.1 What version of `drizzle-kit` are you using? 0.23.0 Describe the Bug Steps to Reproduce: 1. Created a new package within my npm workspace dedicated to database handling. 2. Set up a new Drizzle configuration, ensuring I installed the latest versions of both `drizzle-orm` and `drizzle-kit`. 3. Ran the command `npx drizzle-kit generate:pg`. Actual Behavior: I consistently receive the following error message: [code block] Additional Information: npm workspace structure: [code block] Operating System: Windows 10 Node.js version: 20.10.0 Possible Workarounds: Tried updating all `drizzle-orm` dependencies in my workspace to the latest version, but the issue persists. Notes: Currently i downgraded to: [code block] But the issue on this versions is, drizzle studio does not work... ist very frustrating This issue seems similar to the one reported in [#406](https://github.com/drizzle-team/drizzle-kit-mirror/issues/406), but the solution there did not resolve my problem. It could be a dependency resolution issue within the npm workspace. Expected behavior Drizzle should work without errors. Environment & setup _No response_

Confidence60%
60%
Candidate Fix
1 fix
🛠️ Developer ToolsMicrosoft
Fresh9 days ago

Error Response timeout while trying to fetch http://registry.npmjs.org/@angular%2fcli (over 30000ms)

I want to install the angular cli using npm install @angular/cli but a got an error saying that it could not fetch the data. I have tried using both node js version 12 and 13 and also differents npm versions - I dont use a proxy server. - I dont use a vpn. - My internet connection does not have any problem. - I tried to uninstall node js, also erased the npm directory from Appdata and any other related directory to Node js this is the log file: 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli '-g', 1 verbose cli '@angular/cli' 1 verbose cli ] 2 info using npm@6.14.4 3 info using node@v12.16.2 4 verbose npm-session b1b30f92d1295fda 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 silly fetchPackageMetaData error for @angular/cli@latest Response timeout while trying to fetch http://registry.npmjs.org/@angular%2fcli (over 30000ms) 8 timing stage:rollbackFailedOptional Completed in 1ms 9 timing stage:runTopLevelLifecycles Completed in 30453ms 10 verbose type body-timeout 11 verbose stack FetchError: Response timeout while trying to fetch http://registry.npmjs.org/@angular%2fcli (over 30000ms) 11 verbose stack at Timeout._onTimeout (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\body.js:189:16) 11 verbose stack at listOnTimeout (internal

Confidence60%
60%
Candidate Fix
1 fix
☁️ Cloud & DevOpsDocker
Fresh9 days ago

/usr/local/bin/docker-compose: line 1: Not: command not found

Execute the command [root@localhost ~]curl -L https://github.com/docker/compose/releases/download/1.23.0-rc2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 9 0 9 0 0 21 0 --:--:-- --:--:-- --:--:-- 61 Context information (for bug reports) [root@localhost ~]ll /usr/local/bin/ total 20964 -rwxr-xr-x 1 root root 9 Oct 12 00:16 docker-compose -rwxr-xr-x 1 root root 4839 Aug 3 14:10 erb -rwxr-xr-x 1 root root 548 Aug 3 14:10 gem -rwxr-xr-x 1 root root 192 Aug 3 14:10 irb -rwxr-xr-x 1 root root 589 Aug 3 14:10 rake -rwxr-xr-x 1 root root 940 Aug 3 14:10 rdoc -rwxr-xr-x 1 root root 190 Aug 3 14:10 ri -rwxr-xr-x 1 root root 21432601 Aug 3 14:04 ruby [code block] [root@localhost ~]/usr/local/bin/docker-compose --version /usr/local/bin/docker-compose: line 1: Not: command not found [code block] [root@localhost ~]docker --version docker - version 1.5 Copyright 2003, Ben Jansens <ben@orodu.net> Usage: docker [OPTIONS] Options: -help Show this help. -display DISLPAY The X display to connect to. -border The width of the border to put around the system tray icons. Defaults to 1. -vertical Line up the icons vertically. Defaults to horizontally. -wmak

Confidence60%
60%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

"import Redis" is flagged as invalid constructor function type in ESM TypeScript project

I had to do this to get started [code block] Same issue as: [code block] They prints: `Type 'typeof import("node_modules/.pnpm/ioredis@5.2.3/node_modules/ioredis/built/index")' is not a constructor function type.` My project settings are: | package | version | | --------------- | ---------------| | Module Type | ESM | | Node.js | 16.13.2 | | pnpm | 7.9.5 | | ioredis | 5.2.3 | | TypeScript | 4.8.2 | | @types/ioredis | not installed | TSConfig: [code block]

Confidence60%
60%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

[BUG]: enum as array, not possible?

What version of `drizzle-orm` are you using? 0.29.0 What version of `drizzle-kit` are you using? 0.20.4 Describe the Bug a simple example: [code block] when i try to migrate this, i got the error: [code block] is it not implemented or is this a bug...? thx. Expected behavior _No response_ Environment & setup _No response_

Confidence60%
60%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

Migration should either read .ts or deliver a .js

This is either a bug or a new feature [ ] question [ x] bug report [x ] feature request [ ] documentation issue Database system/driver: [ ] `cordova` [ ] `mongodb` [ ] `mssql` [ ] `mysql` / `mariadb` [ ] `oracle` [ x] `postgres` [ ] `sqlite` [ ] `sqljs` [ ] `websql` TypeORM version: [x ] `latest` [ ] `@next` [ ] `0.x.x` (or put your version here) Steps to reproduce or a small repository showing the problem: `typeorm migrations:generate -n test` this create typecript file test.ts `typeorm migrations:run` this fails with `Unexpected token import` What solves the issue Either call typeorm using ts-node, as explained here : https://github.com/typeorm/typeorm/issues/1561 Either transpile .ts file .js using typescript Expected behaviour Typeorm should be able to read the file it generated, which means : reading ts file or providing .js file

Confidence59%
59%
Candidate Fix
1 fix
🤖 AI & LLMs
Fresh9 days ago

How to get token count, callbacks work but just for ChatOpenAI but not for RetrievalQAChain

I am trying to get a token count for a process, I am passing callbacks to the class initialization like this [code block] However all of the calls from a RetrievalQAChain end up in the catch portion of that try-catch block as 'tokenUsage' does not exist for those calls. Can someone point me in the right direction?

Confidence59%
59%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

Permissions denied for table using API but works with SupabaseClient

Bug report Describe the bug When trying to access data from some API endpoints, like this: /rest/v1/leads?select=* I get this error: [code block] when doing the same using JS client like this: [code block] I successfully get the data. Although enabling or disabling RLS has no impact. I'm using the same anon API key in both situations. To Reproduce I am creating these tables using the following function: [code block] I tried to enable and disable RLS from UI and from SQL editor but didn't change anything. I also tried to use the service role KEY when using API, but the same error above showed. When creating the tables from the UI, everything seems to work as intended. Expected behavior I was expecting to be able to create tables programmatically from the client-side so I'm trying to do it using functions. I'm using the function like this: [code block] Am I missing something?

Confidence59%
59%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

[BUG]: Serial type in PostgreSQL not recognized as having a default value

What version of `drizzle-orm` are you using? 0.26.1 What version of `drizzle-kit` are you using? 0.18.1 Describe the Bug I have encountered an issue with handling PostgreSQL's serial types (`smallserial`, `serial`, and `bigserial`), it appears that Drizzle does not regard them as having default values, despite these types inherently including a default auto-incrementing behavior in PostgreSQL. [code block] Expected behavior In the above example, I'd expect the 'id' field to be inferred as nullable for inserts because `smallserial` inherently provides a default auto-incrementing value. Environment & setup _No response_

Confidence59%
59%
Candidate Fix
1 fix
🔌 APIs & SDKsTwilio
Fresh9 days ago

Socket hang up Error

Hello Twilio team, I faced with the issue that from time to time I got a socket hang up error. After investigating I found out that there was a problem with your dependency module request: https://github.com/request/request/issues/2047 I would be grateful if you could address the issue.

Confidence59%
59%
Candidate Fix
1 fix
🌐 Web & Full-Stack
Fresh9 days ago

Discord server as another new community!

There are a lot of communities listed in ur readme, but there's an important group missing, and there are a lot of coders using express and are on discord. This can view discord [website] (https://discord.com) and look at its features. All the communities listed on ur documentation are not popular as discord. So let's have one in discord. And since it's a open source project, you are also qualified in their own source communities https://discord.com/open-source I'm very much sure that if you all create a server for helping each other on discord, you will get over 10000+ members because this npm package is an important part in web apps created with nodejs 😅. If you all are ready for it, kindly let me know here...

Confidence59%
59%
Candidate Fix
1 fix
☁️ Cloud & DevOps
Fresh9 days ago

Add Amazon Elastic MapReduce (AWS) support

In terms of provisioning and managing the AWS PaaS infrastructure, it would be very helpful to have EMR support in Terraform. As Andrew Langhorn pointed out, AWS GO SDK (https://github.com/awslabs/aws-sdk-go/tree/master/service/emr) already has support for EMR - https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/terraform-tool/uBMcgr9Azgw

Confidence59%
59%
Candidate Fix
1 fix
🌐 Web & Full-Stack
Fresh9 days ago

Hot Reload shows in terminal but do not updates browser

Describe the bug I have a Vue.js 3 + Vite + Tailwind CSS 3 project that uses a third party components library (also built with Vue.js 3 and Tailwind CSS 3) from my company's local NPM. The problem is when I change the class or any prop that affects the classes of the imported component in my project, the VSCode terminal and the browser terminal both show `hmr update /src/views/.../fileName.vue` `hmr update /src/tailwind.css` But the browser does not update and I always have to manually refresh the page with F5 to see the changes. It works correctly if I change the class of any element or component from my own project, the issue is ONLY with the third party library. This is my `vite.config.js` [code block] Does anyone know how to make the browser reflects the changes? ------- edit: added reproduction link from rtek Reproduction https://stackblitz.com/edit/vite-auuvqt?file=src%2Fcomponents%2FWrapper.vue System Info [code block] Used Package Manager pnpm Logs [code block] Validations - [X] Follow our Code of Conduct - [X] Read the Contributing Guidelines. - [X] Read the docs. - [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. - [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead. - [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Ser

Confidence59%
59%
Candidate Fix
1 fix
🔌 APIs & SDKsStripe
Fresh9 days ago

A similar object exists in test mode, but a live mode key was used to make this request

I didn't know where else to post this, but I'm using this lib on our server. While testing, I had tried to add a real credit card to my account, which failed saying that I was in test mode. Now, both my client and server are running in test mode. And, when I try to add that same came, I get this error from the stripe API: No such token: ......; a similar object exists in test mode, but a live mode key was used to make this request. How can my card object exist in test mode?

Confidence59%
59%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

[BUG]: `"composite" true` and Yarn workspace prevents `pgTable` from being compiled

What version of `drizzle-orm` are you using? 0.26.1 What version of `drizzle-kit` are you using? 0.18.1 Describe the Bug TL;DR TypeScript can't compile simple `schema.ts` file with `users` example table when using `"composite": true` in `tsconfig.json` Longer version I have Yarn workspace with two packages, let's call them `backend` and `frontend`. Naturally, `frontend` depends on `backend`. For that to work, `backend`'s `tsconfig.json` must include `"composite": true` option. `backend` uses `drizzle-orm` internally for migrations and I would like to use a standalone `schema.ts` file where all of the tables would be declared. With such setup, I would need to export said tables to use them elsewhere in the code. This is the moment where `export` before the `users` table declaration makes TypeScript compiler think that anyone can import `users` (type of which depends on inference of `drizzle-orm` package), even outside of the `backend` package. Due to lack of `export(package)` in TypeScript, this leads to compiler errors. <details> <summary> schema.ts </summary> [code block] </details> [code block] Expected behavior Everything compiles just fine. I found possible workarounds, but none of them are optimal: https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1519138189 Environment & setup _No response_

Confidence59%
59%
Candidate Fix
1 fix
🔌 APIs & SDKsGoogle
Fresh9 days ago

Chrome Web Store Team complains a Violation: My Extension (Cancelly.ca) is injecting the enterprise.js externally from the Google API in the src/index.js file.

Operating System macOS Ventura 13.5 Browser Version 116.0.5845.179 (Official Build) (arm64) Firebase SDK Version ^10.1.0 Firebase SDK Product: Auth Describe your project's tooling I am using this https://github.com/JohnBra/vite-web-extension Describe the problem Following code after the build generates minified files containing URLs with enterprise.js so the Chrome Web Store Team complains of a violation. [code block] Steps and code to reproduce issue Defined in the problem.

Confidence59%
59%
Candidate Fix
1 fix
🔌 APIs & SDKsGoogle
Fresh9 days ago

App Check works at first but fails to reconnect after sleep/background

Summary Using latest Firebase v9.12 (through latest AngularFire 7.4.1) in production, with AppCheck, Firestore, and Auth. When leaving the webapp tab open and idle, the app often runs into a `403` error in POST request to exchange AppCheck token ("App attestation failed." "PERMISSION DENIED"), followed by a warning: `@firebase/app-check: AppCheck: Requests throttled due to 403 error. Attempts allowed again after 01d:00m:00s (appCheck/throttled).` --- Console Tab As you can see, the `appCheck/throttled` warning shows up twice, and is preceded by a failing 403 POST request to `content-firebaseappcheck.googleapis.com/...exchangeRecaptchaV3Token` There was no exponential backoff. Quoting from @hsubox76 in https://github.com/firebase/firebase-js-sdk/issues/6373#issuecomment-1282744902: > 403 errors are throttled for 1 day because it is likely there's something wrong with the attestation that won't be fixed with a simple retry, such as a bad API key or an attestation failure due to failing ReCAPTCHA. You can see the code for the throttling here (this also applies to 404): > https://github.com/firebase/firebase-js-sdk/blob/4eb5adfd099da3b8bd7e78bf662deda6943a8e93/packages/app-check/src/providers.ts#L286 After the failed token exchange & AppCheck throttling, Firestore can no longer load data, thus logging several "`FirebaseError: Missing or insufficient permissions.`" on all active document/collection listeners, rendering the app dysfunctional. In a second tab running the sam

Confidence59%
59%
Candidate Fix
1 fix
🗄️ DatabasesMongoDB
Fresh9 days ago

4.7.1 => 4.7.2 : MongoError connection timed out

When testing mongoose@4.7.2 / mongodb@2.2.12, I get: > MongoError: connection 2 to XXXXXX timed out > at Function.MongoError.create (/node_modules/mongodb-core/lib/error.js:29:11) > at Socket.<anonymous> (/node_modules/mongodb-core/lib/connection/connection.js:186:20) > at Socket.g (events.js:286:16) > at emitNone (events.js:86:13) > at Socket.emit (events.js:185:7) > at Socket._onTimeout (net.js:333:8) > at tryOnTimeout (timers.js:224:11) > at Timer.listOnTimeout (timers.js:198:5)' } 'connection 2 to XXXXXX timed out this does not happen with mongoose@4.7.1 / mongodb@2.2.11. More details: - query: aggregate with allowDiskUse(true).read('secondaryPreferred').cursor() - timing: the error happens about 35s after sending the query (before first results are received) - node version: v6.3.0 - npm version: 3.10.9 - connect options: [code block] - query: [code block]

Confidence59%
59%
Candidate Fix
1 fix
← PrevPage 78 of 1250Next →