FG

All Issues

24,993 verified issues

📡 Networking
Fresh8 days ago

Socket events getting too much time to fire

I am using socket.io for my chat app. (HTML + JS & node js). It's working fine and great when one client connects to it. But when another window is opened to start the chat, the chat becomes very slow. When three or four users connect to the chat at the same time, it's getting even slower such that, it looks like, it's almost freezed. FYI, throughout the application, I have used `socket.emit()` (with & without callbacks). My requirement is, receive a message from the client, respond to the client. It's no group chat or anything. The user will chat with a bot (server). Said that, the message sent by the user (to the server) will not be sent to any other users. So, I fond that `socket.emit()` is the right way to deal with in this case. Am I getting it wrong? Should I use some other way for emitting? Note:- The application works perfectly when running inside the enide studio with the inbuilt node js server. But, when deployed, the events are extremely slow.

Confidence65%
65%
Candidate Fix
1 fix
🗄️ Databases
Fresh8 days ago

Method save does not return the entire model

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: [ ] `latest` [ ] `@next` [0.2.8] `0.x.x` (or put your version here) Steps to reproduce or a small repository showing the problem: [code block] Using the PUT method, a part of the model comes to us. The save method accepts `DeepPartial<Entity>`, but in this case it does not return the entire model. <!-- To answer those questions you need to put "x" inside the square brackets, for example: [x] `mysql` [ ] `postgres` Also, please format your code properly (by taking code blocks into [code block]) !>

Confidence65%
65%
Candidate Fix
1 fix
🔌 APIs & SDKs
Fresh8 days ago

Querying same field w/ and w/o attributes for different union types results in error

Query: [code block] Error: [code block] Should it really work like that, or is this a bug? Article and Program are both members of union type Content

Confidence65%
65%
Candidate Fix
1 fix
🔌 APIs & SDKsStripe
Fresh8 days ago

Webhook signature validation not working

Hi, I'm using the latest version of the stripe node.js library v4.19.0 and am trying to verify the signature in some test webhooks. It is failing with: error: Error SyntaxError: Unexpected token o in JSON at position 1 at Object.parse (native) at Object.Webhook.constructEvent (C:\Users\shovl\BitBucket\apm-billing\node_modules\stripe\lib\Webhooks.js:10:28) I followed the example here: https://github.com/stripe/stripe-node/blob/master/examples/webhook-signing/express.js Does the node.js library officially support webhook signatures yet? I noticed that the documentation does not list Node.js when referring to the "official" libraries. Thanks very much, Raymond

Confidence65%
65%
Candidate Fix
1 fix
🗄️ DatabasesMongoDB
Fresh8 days ago

Problem with connection to db , queries hang. Reverting to mongoose 4.6.6 solves it

Mongoose 4.7.7 Do you want to request a feature or report a bug? I want to report a bug What is the current behavior? All request towards the db just hang and do not return anything If the current behavior is a bug, please provide the steps to reproduce. [code block] All queries hang and return nothing `Program.find()` will just hang Fixed if I downgrade to mongoose@4.6.6 The change in 4.7.7 is a dependency version update muri@1.1.1 to muri@1.2.0. I am guessing that is was is causing the issue Please mention your node.js, mongoose and MongoDB version.* mongoose 4.7.7 node 6.9.2 MongoDB 3.2.3

Confidence65%
65%
Candidate Fix
1 fix
🌐 Web & Full-StackVercel
Fresh8 days ago

Prisma queries crash Next.js static build — export const dynamic required

Server components and API routes that use Prisma cause next build to fail because Next.js tries to statically render them at build time. DATABASE_URL is not available during the build phase, so Prisma cannot connect. Any file importing prisma must be marked as dynamic to opt out of static generation.

Confidence65%
65%
Candidate Fix
3 fixes1 verified
🔌 APIs & SDKsTwilio
Fresh8 days ago

Type Script Bindings

Feature Request Please add typescript bindings so that developers who opt-in to using Twilio-Node with TypeScript, are able to take advantage of the TypeScript compiler to dramatically reduce the number of bugs created in their integration code.

Confidence65%
65%
Candidate Fix
1 fix
🗄️ Databases
Fresh8 days ago

How can you "subscribe" to a Redis stream (5.0)?

Hi, I've implemented some of the commands to add (XADD) to and read (XREAD) from a Redis stream. However, what I'm not entirely clear about is how you can use these commands to subscribe to a stream like you would in PubSub? For example, to get every new message that is added to a stream, should I send the XREAD command on an interval? Like so: [code block]

Confidence65%
65%
Candidate Fix
1 fix
🗄️ Databases
Fresh8 days ago

[BUG]: Selecting from sub-query does not qualify the field

What version of `drizzle-orm` are you using? 0.28.6 What version of `drizzle-kit` are you using? n/a Describe the Bug I have this query / subquery [code block] which generates this SQL [code block] Note the outermost selection list on line 1 of the sql. Since the subquery is aliased as `agg` I believe the `subjects` selection should be qualified as [code block] like [code block] is in the join condition here [code block] Expected behavior Field should be aliased Environment & setup planetscale-serverless

Confidence65%
65%
Candidate Fix
1 fix
🌐 Web & Full-StackVercel
Fresh8 days ago

Update Ant Design Examples for New CSS Support (9.2)

import ant-design library throw error can you provide an example import ant-design use [RFC] css support? thanks. when i use [RFC] css support and import ant-design library, it throw error : [code block] here is my next-config.js [code block]

Confidence64%
64%
Candidate Fix
1 fix
📡 Networking
Fresh8 days ago

hanging POST requests

Hi, I'm using express and trying to proxy certain requests to a different server, as follows (simplified): [code block] ...but POST requests to my server appear to just hang, and never arrive at the target server. I'm working on a stripped-down-but-working example of this but thought I'd ask first. Has anyone seen this behavior, or are there good examples of node-http-proxy coexisting with express? Thanks!

Confidence64%
64%
Candidate Fix
1 fix
📡 Networking
Fresh8 days ago

How do I change path on the target?

For example, my request is http://localhost/this/that/path and on the target, I want http-proxy to call the target like this http://target.server/final/path. If you noticed the `this/that` got replaced by `final` [code block]

Confidence64%
64%
Candidate Fix
1 fix
🛠️ Developer ToolsMicrosoft
Fresh8 days ago

[BUG] `prepare` and `prepack` scripts are not handled as documented when installing a git dependency

Current Behavior: I tested installing a git dependency which has either `prepare` or `prepack` script with npm CLI v7.0.0-beta.12 and confirmed the following behaviors. - a package with a `prepare` script: `devDependencies` are NOT installed but the `prepare` script is executed - a package with a `prepack` script: `devDependencies` are NOT installed and the `prepack` script is NOT executed Expected Behavior: - a package with a `prepare` script: `devDependencies` are installed and the `prepare` script is executed - a package with a `prepack` script: `devDependencies` are installed and the `prepack` script is executed - Though I've not found any document saying that `devDependencies` are installed when installing a git dependency with a `prepack` script and actually they are not installed even when npm CLI v6 is used, I believe npm should install them since running a `prepack` script without installing `devDependencies` does not make sense. Steps To Reproduce: `prepare`: [code block] [code block] `prepack`: [code block] [code block] -> `tsc` should generate `index.js` file, but it's not generated. Environment: - OS: macOS 10.15.6 - Node: 12.18.3 - npm: 7.0.0-beta.12

Confidence64%
64%
Candidate Fix
1 fix
🗄️ Databases
Fresh8 days ago

Chaining custom commands in cluster mode

According to the documentation "Chaining custom commands in the pipeline is not supported in Cluster mode.". I am wondering, is this a limitation of ioredis or of redis itself? and do you have any information or link on why this limitation exists?

Confidence64%
64%
Candidate Fix
1 fix
🗄️ Databases
Fresh8 days ago

[BUG]: Undefined properties when using drizzle-kit push

What version of `drizzle-orm` are you using? 0.36.0 What version of `drizzle-kit` are you using? 0.27.1 Describe the Bug When using `drizzle-kit push` I'm receiving the following error: `TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')` My client setup: [code block] Drizzle config: [code block] Expected behavior _No response_ Environment & setup Development

Confidence64%
64%
Candidate Fix
1 fix
☁️ Cloud & DevOpsDocker
Fresh8 days ago

Error during pull

This error occurs during docker compose pull with --context argument Steps to reproduce the issue: 1. docker --context mycontext compose -f docker-compose.letsencrypt.yml pull 2. error during connect: Get "http://docker.example.com/v1.41/images/mongo-express/json": command [ssh -l root -- pharma-bio.hr docker system dial-stdio] has exited with exit status 255, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=kex_exchange_identification: Connection closed by remote host Describe the results you received: error during connect: Get "http://docker.example.com/v1.41/images/mongo-express/json": command [ssh -l root -- pharma-bio.hr docker system dial-stdio] has exited with exit status 255, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=kex_exchange_identification: Connection closed by remote host Describe the results you expected: Normal pull of all images, both from my docker hub and public ones Additional information you deem important (e.g. issue happens only occasionally): Output of `docker compose version`: [code block] Output of `docker info`: [code block] Additional environment details: I'm using Ubuntu 20.04 WSL on client side, and deploying to Ubuntu server 20.04 (both sides fully patched).

Confidence64%
64%
Candidate Fix
1 fix
📱 Mobile & Cross-PlatformExpo
Fresh8 days ago

[expo-constants][iOS] build failed: PhaseScriptExecution [CP-User]\ Generate\ app.config\ for\ prebuilt\ Constants.manifest

Summary expo-constants throws 'Command PhaseScriptExecution failed with a nonzero exit code' when building iOS. Managed or bare workflow? If you have `ios/` or `android/` directories in your project, the answer is bare! bare What platform(s) does this occur on? iOS SDK Version (managed workflow only) _No response_ Environment [code block] Reproducible demo This doesn't require any code to reproduce. Just create a new project and build its iOS on XCode. - Step 1 [code block] - Step 2 [code block] - Step 3 [code block] - Step 4 In XCode, select a team for signing - Step 5 Build and wait. - Step 5 Say hi to the error: [code block]

Confidence64%
64%
Candidate Fix
1 fix
🗄️ Databases
Fresh8 days ago

ClusterAllFailedError: Failed to refresh slots cache.

Hi All. i have following error can You help me ? `[ioredis] Unhandled error event: ClusterAllFailedError: Failed to refresh slots cache.` code is following. `"use strict"; require('./config/config'); const Redis = require('ioredis'); (async()=> { const startupNodes = [ {host: process.env.REDIS_HOST_1, port: process.env.REDIS_PORT }, {host: process.env.REDIS_HOST_2, port: process.env.REDIS_PORT} ]; const options = { slotsRefreshTimeout: 2000, dnsLookup: (address, callback) => callback(null, address), redisOptions: { tls: {}, password: process.env.REDIS_PASS, }, }; const cluster = new Redis.Cluster(startupNodes, options); console.log(cluster); })();`

Confidence63%
63%
Candidate Fix
1 fix
🗄️ DatabasesMongoDB
Fresh8 days ago

Discriminator support for Sub-Documents

Starting a feature request to allow discriminator use within sub-documents. Playing around with a possible API: [code block]

Confidence63%
63%
Candidate Fix
1 fix
🔌 APIs & SDKsStripe
Fresh8 days ago

Automatic pagination with .list functions

I was wondering, are there built in options for automatic pagination using the node module?

Confidence63%
63%
Candidate Fix
1 fix
← PrevPage 74 of 1250Next →