FG

All Issues

24,993 verified issues

🌐 Web & Full-Stack
Fresh9 days ago

Add bodyParser back to express 4.x

We have removed all the middlewares from being bundled with express (which is awesome, i.m.o), but left one: `static`. I think we really should bundle `bodyParser` again, because I think parsing bodies is probably even more common than serving static files and many people really have no idea how to read the body from `IncomingMessage` objects (aka `req`) in Node.js core for whatever reason.

Confidence55%
55%
Candidate Fix
1 fix
📡 Networking
Fresh9 days ago

1.4.0 is backwards incompatible and causing karma to fail

1.4.0 caused a change that is making karma fail. See https://github.com/karma-runner/karma/issues/1782 for more context

Confidence55%
55%
Candidate Fix
1 fix
☁️ Cloud & DevOps
Fresh9 days ago

InvalidClientTokenId while start plan

[code block] Just start and I got this error, the credential is full access and work to another script

Confidence55%
55%
Candidate Fix
1 fix
🗄️ DatabasesMongoDB
Fresh9 days ago

No document found for query "{ _id: xxx }"

*Do you want to request a feature or report a bug? Bug What is the current behavior? We have an automated task that runs every week, and every week we get this error thrown from the task: `No document found for query "{ _id: xxxxx }"` If the current behavior is a bug, please provide the steps to reproduce. I don't know how to reproduce it or why this bug is happening. The document exists in the database. The related code is: [code block] What's odd is that the document does seem to update/be saved, despite the error. What is the expected behavior? If I had more understanding of why this error is thrown, I would be able to better assess this. What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.* Node 10.15.3 Mongoose 5.4.20

Confidence55%
55%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

Cluster: Failed to refresh slots cache. when options.redisOptions.enableOfflineQueue = false

If I pass `options` to new Cluster with `options.redisOptions.enableOfflineQueue = false`, ioredis (3.2.2) fails to connect to the cluster. If I remove setting that specific option, then everything is good (went through them one-by-one). Below is sample code with the output when `options.redisOptions.enableOfflineQueue = false`. Note that I also have set `options.enableOfflineQueue = false` - it is not entirely clear if both need to be set. In my usage, I do NOT want commands to be queued when the cluster or the intended node is not available. [code block] [code block] If I comment out the one line, then all is good: [code block]

Confidence55%
55%
Candidate Fix
1 fix
🌐 Web & Full-Stack
Fresh9 days ago

Tailwind CSS v1.0 To-Dos

Have been keeping track of this stuff in my personal to-do tracker but publishing them here in case anyone is interested. Naturally a ton of stuff has already been done for v1.0 and deleted from my to-do list, so this is only the stuff remaining as of today. Expect this list to grow and change over the next few weeks as I work towards finishing v1.0, but generally these are the things I've got lined up. They aren't in any sort of priority order or anything. Done/Merged - [x] Re-evaluate flex-grow/flex-no-grow, etc. - [x] Re-assess using postcss-selector-parser for escaping - [x] Update plugins to source their config from theme/variants - [x] Think about if there's a smarter way to make sure the separator is escaped - [ ] ~~Pass theme and variants to plugins explicitly?~~ No measurable benefit, easy to add later - [x] Add new shadows - [x] Rename config function to theme? - [x] Fix letterSpacing classes not being escaped - [x] Add 56 as a width? - [x] Add extended widths (48, 56, 64) to entire spacing scale? - [x] Make `flex-*` customizable - [ ] ~~Remove `.clearfix`?~~ Nah still useful enough to not make people add it themselves. - [x] Add new maxWidth scale - [x] Revisit which variants to enable by default for split up text style plugins - [x] Make preflight more hardcore, reset headings, etc. - [x] Autodetect presence of tailwind.config.js? - [ ] ~~Headings should inherit line-height like they inherit font-size and font-weight.~~ Not necessary, browser inherits line-heig

Confidence55%
55%
Candidate Fix
1 fix
🔌 APIs & SDKs
Fresh9 days ago

Axios Post Works but Responds with Network Error

I searched for this here, around the internet and I went and signed up in the chat but no one's there. No response in a day. Summary I'm learning so excuse my newb code. I'm using async functions with axios that all work except for one. This one did work before as I never saw this error come up when I implemented it. The `updateItem(item)` method is the one giving an error. What's weird is that I was using `axios.put` no problem but was getting an invalid verb error. Switched to `axios.post` and it does work, it hits the method and sends the item and when the method is finished an Ok(200) response is returned. But an error is thrown on the `axios.post` call of a network error. I'll show the code and error below. [code block] Context - axios version: v0.18.0 - Environment: Windows 10, Edge 41.16299.666.0, Chrome Dev 71.0.3573.0 (Official Build) dev (64-bit), and Regular Chrome latest version

Confidence55%
55%
Candidate Fix
1 fix
📱 Mobile & Cross-Platform
Fresh9 days ago

'React/RCTBridgeDelegate.h' file not found

Same error for the demo AwesomeProject. react-native info: info Fetching system and libraries information... System: OS: macOS 10.14.6 CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz Memory: 1.15 GB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.6.0 - /usr/local/bin/node npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3 Android SDK: API Levels: 23, 28, 29 Build Tools: 28.0.3, 29.0.1 System Images: android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.4 AI-183.6156.11.34.5692245 Xcode: 10.3/10G8 - /usr/bin/xcodebuild npmPackages: react: 16.8.6 => 16.8.6 react-native: 0.60.4 => 0.60.4 npmGlobalPackages: react-native-cli: 2.0.1

Confidence55%
55%
Candidate Fix
1 fix
📱 Mobile & Cross-PlatformExpo
Fresh9 days ago

Document picker not working with publish iOS app

I am using DocumentPicker API to upload files. Its working well with android application, both with expo client and published apps. But for some reason, its not working with iOS platform. Do I need to define some permission or something??? I'm using sdk v20.0.0

Confidence55%
55%
Candidate Fix
1 fix
☁️ Cloud & DevOpsAmazon
Fresh9 days ago

Errno 2 No such file or directory

Hi everyone, Im new here so please forgive me if i make obvious mistakes. So i was trying to use the aws cli tools on my amazon linux machine to transfer a file to an s3 bucket but i kept getting the [Errno2] No such file or directory. To troubleshoot, i attempted this command "aws ec2 describe-instances" and got the same error. "aws help" works though.Please i have run out of ideas ,someone help me :(

Confidence55%
55%
Candidate Fix
1 fix
🔌 APIs & SDKsGoogle
Fresh9 days ago

Use Node.js to call Google API and put it into a cloud function. client method cannot return data

[code block] `const {data} = await client.projects.locations.registries.devices.lis` cannot return data I try to use `const client = new iot.v1.DeviceManagerClient` to get only part of the API function data IAM and service account / valid keys are stored in the project file, but the client data can not return data

Confidence55%
55%
Candidate Fix
1 fix
🗄️ Databases
Fresh9 days ago

Connect event triggered multiple times

Hi, I see that the connect event is triggered multiple times on 4.0.0 version and apparently just once in 3.2.2 Can you confirm that this is the case ? Thanks!

Confidence55%
55%
Candidate Fix
1 fix
🌐 Web & Full-Stack
Fresh9 days ago

Integrate Babel with Express 4.x

In order to address concerns raised in https://github.com/expressjs/express/issues/2755#issuecomment-279887674, we need a way to make Express 4.x compatible with ES6 changes, should Express 5.x start using it. Easiest way to achieve that is introducing Babel into Express.js build pipeline. Scope of changes: 1. Add Babel devDependency (pre-7.0 versions seem to support 0.10); 2. Add npm script that would transpile code to ES5 into /dist folder; 3. Add npm script that would copy over relevant files into /dist folder to replicate original structure of Express.js distribution package; 4. Write a script (worst case scenario - provide instructions) for publishing transpiled version of Express.js. 5. Bonus points if tests get automatically executed after transpiling and would stop entire process on fail.

Confidence55%
55%
Candidate Fix
1 fix
📡 Networking
Fresh9 days ago

failed: Connection closed before receiving a handshake response

Hi I am using socket.io in project build on top of MEAN.IO (https://github.com/linnovate/mean) . I integrated the library successfully , on my local everything is working fine with no errors in console. but on deploying the same code on server it shows me an error as WebSocket connection to 'ws://ip.ip.ip.ip:3000/socket.io/?EIO=3&transport=websocket&sid=OpeM3YIJqVuTnt-dAAAY' failed: Connection closed before receiving a handshake response I had given options to socket for now to reconnect as : - var socket = io.connect(baseUrl, { 'reconnection': true, 'reconnectionDelay': 1000, 'reconnectionDelayMax': 5000, 'forceNew': true }); but still some times the socket remains inactive .

Confidence55%
55%
Candidate Fix
1 fix
📡 Networking
Fresh9 days ago

Question: What could be the possible reasons for socket-io server returning 400 Bad Request via nginx?

Hi, We are facing a scenario where a good percentage of requests going to `/Socket.io/?...` is returning with 400. Default nginx access log results are littered with: [code block] The requests are not even reaching our overlying SailsJS server. We suspect something going wrong at socket-io layer. Any thought?

Confidence55%
55%
Candidate Fix
1 fix
🤖 AI & LLMs
Fresh9 days ago

How to use BERT for finding similar sentences or similar news?

I have used BERT NextSentencePredictor to find similar sentences or similar news, However, It's super slow. Even on Tesla V100 which is the fastest GPU till now. It takes around 10secs for a query title with around 3,000 articles. Is there a way to use BERT better for finding similar sentences or similar news given a corpus of news articles?

Confidence55%
55%
Candidate Fix
1 fix
☁️ Cloud & DevOpsAmazon
Fresh9 days ago

s3 cp "Cannot allocate memory" error

Confirm by changing [ ] to [x] below: - [x ] I've gone though the User Guide and the API reference - [x] I've searched for previous similar issues and didn't find any solution Issue is about usage on: - [ ] Service API : I want to do X using Y service, what should I do? - [ ] CLI : passing arguments or cli configurations. - [x] Other/Not sure. Platform/OS/Hardware/Device What are you running the cli on? ECS via Batch. awscliv2 is installed via a launch template. Describe the question Intermittently, I get the following error when trying to download a large file (~45-50GB): `download failed...[Errno 12] Cannot allocate memory` as part of a workflow of batch jobs. This is occurring for batch jobs that each have >=3GB of memory specified for each; the last time this occurred, the batch job had 7GB memory allocated. The command being executed looks something like `/usr/local/aws-cli/v2/current/bin/aws s3 cp --no-progress s3://my-s3-bucket/etc/etc/1000.unmapped.unmerged.bam /tmp/scratch/my-s3-bucket/etc/etc/1000.unmapped.unmerged.bam` Is the python subprocess causing this? What do you recommend to avoid this while running on AWS Batch/ECS? Logs/output There are no more informative logs atm -- I will put debugging in so that the next time this happens the debug flag is passed.

Confidence55%
55%
Candidate Fix
1 fix
🌐 Web & Full-Stack
Fresh9 days ago

[2.2.0] laravel-mix spawning new build in a loop

What version of Tailwind CSS are you using? 2.2.1 What build tool (or framework if it abstracts the build tool) are you using? laravel-mix 6.0.23 What version of Node.js are you using? v16.3.0 What browser are you using? N/A What operating system are you using? macOS Reproduction repository `vinkla/tailwind-issue-4701` Describe your issue Installing the latest version 2.2.0 I'm having an issue with `laravel-mix` spawning a new build in a loop. https://user-images.githubusercontent.com/499192/122579390-25ce3280-d055-11eb-8533-40095e911fee.mp4 `webpack.mix.js` [code block] `tailwind.config.js` [code block]

Confidence55%
55%
Candidate Fix
1 fix
🗄️ DatabasesVercel
Fresh9 days ago

Ballooning of Prepared_stmt_count on MYSQL

Bug description Hey guys, I hope you all are doing well! I'm running prisma @ 2.14 on MySQL, and after updating to and trying multiple versions (2.18, 2.20.1, 2.21.1), I'm running into issues where my Prepared_stmt_count global MySQL variable is increased by a huge factor compared to 2.14, which leads to me hitting the MAX_PREPARED_STATEMENTS limit. It seems like there is a difference in behavior of these prepared statements from 2.14 and onwards. Just to reiterate, this is not a problem on 2.14, and was I wondering if there was anything I could do to get the old behavior back on a newer version. Thank you! How to reproduce I'm running this on a production kube deployment, so I'm unsure what specific queries may be triggering this, but I do know that 2.14 and previous never had this behavior 1. Be on similar env ? 2. Use normally (create/update/delete) (many) Expected behavior Expect the Prepared_stmt_count to stay low, this is the current behavior on 2.14. Actual behavior Prepared statement count balloons, and stays that way for a long enough time to where my set MAX_PREPARED_STMT_COUNT gets triggered and hangs the db. Note that the actual value in prod gets to 64000+. Prisma information Environment & setup - OS: Mac / Ubuntu - Database: MySQL 8.0.21 - Node.js version: 12.16.1 - Prisma version: Tested on 2.17, 2.18, 2.20.x, 2.21.x [code block]

Confidence55%
55%
Candidate Fix
1 fix
📡 Networking
Fresh9 days ago

socket.io 1.0 with titanium (appcelerator)

exist a version of socket.io 1.0 to use with titanium (appcelerator) ? or can we use 0.96 client with 1.0 server ? cordially

Confidence55%
55%
Candidate Fix
1 fix
← PrevPage 88 of 1250Next →