FG

All Issues

24,993 verified issues

๐Ÿ”Œ APIs & SDKs
Fresh9 days ago

withCredentials in cross domain request dosn't work

Context - axios version: v0.18.0, v.0.17.0 - Environment: e.g.: Firefox 52.9.0 Linux, Chrome 67.0.3396.99 Linux Problem It looks, that Axios is unable to send cookie in request to another domain. I've two app: frontend on local computer, port 8080 backend on local computer, port 9000 In frontend I've defined backend as: `http://127.0.0.1:9000`. In my JavaScript code I have service: [code block] When I open my frontend as: `http://127.0.0.1:8080` (frontend and backend are in the same domain 127.0.0.1, only port is different), everything is ok, cookie is present in request headers. But when I open my frontend as `http://localhost:8080` cookie is missing in request headers. It's GET request, and there no preflight request, so I would expect, that cookie will be added to request. I've attached screenshoots Correct request with cookie (the same domain): Incorrect request without cookie (cross domain):

Confidence59%
59%
Candidate Fix
1 fix
๐Ÿ—„๏ธ DatabasesMongoDB
Fresh9 days ago

Connection timeout 10000ms when upgraded mongoose from 7.4.5 to 8.7.1

Prerequisites - [x] I have written a descriptive issue title Mongoose version 8.7.1 Node.js version 20.x MongoDB version 6.9 Operating system None Operating system version (i.e. 20.04, 11.3, 10) _No response_ Issue Last night, I upgraded my mongodb and mongoose from versions 5.8.1 to 6.9 and. 7.4.5 to 8.7.1 respectively. I tested on my local. Everything worked fine. I promoted the changes to test env - AWS amplify - things were fine. Then, I moved the changes to production. My db is hosted on mongo atlas serverless cluster. On production, sometimes same queries will work fine but other times give timeout error with 10000ms. I mean same queries behaving differently. I have been scratching my head because both test and prod env are exactly similar except that prod is connected to my domain name. Please assist if someone has knowledge about this. sharing my connection code and one query that fails/passes abruptly. [code block] [code block]

Confidence59%
59%
Candidate Fix
1 fix
๐ŸŒ Web & Full-Stack
Fresh9 days ago

feat: Lazy load routers

Describe the feature you'd like to request Basically `next/dynamic` but for the backend. Recently our tRPC router has been growing significantly for many reasons but mostly due to heavy third party SDKs. The problem with this is that even if we're not calling that specific procedure we still load ALL the router dependencies when calling any procedure. This impacts performance and cold boots significantly. Describe the solution you'd like to see Splitting big tRPC routers into lazy loadable chunks could help loading only what is needed when a procedure is called. I would imagine some pseudo code like this: Describe alternate solutions Other aternatives involve moving all the procedure code into a separate file a use imports for that as done in here. Also lazy loading only third party libraries (like Stripe, Google, etc.) seems to help. But it would be a much nicer DX being able to simply lazy load full routers and support it natively. Additional information _No response_ ๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing - [X] ๐Ÿ™‹โ€โ™‚๏ธ Yes, I'd be down to file a PR implementing this feature! <sub>TRP-19</sub>

Confidence59%
59%
Candidate Fix
1 fix
๐Ÿ—„๏ธ Databases
Fresh9 days ago

[WARN] This Redis server's `default` user does not require a password, but a password was supplied

The url is look like: `redis://user:password@localhost:30000/0` even : `redis://:password@localhost:30000/0` used : `new Redis('redis://user:password@localhost:30000/0')` I know, it's just a warning, but I wanna a clean log. And my redis server needs a password. "ioredis": "^4.19.2" node v12.19.0 redis v6.0.9

Confidence59%
59%
Candidate Fix
1 fix
๐ŸŒ Web & Full-Stack
Fresh9 days ago

[JIT] Tailwind does not update classes after saving in NextJS

What version of Tailwind CSS are you using? 2.1 What build tool (or framework if it abstracts the build tool) are you using? "next": "10.1.3", What version of Node.js are you using? v14.15.1 What browser are you using? chrome What operating system are you using? macOS for M1 Reproduction repository https://github.com/mwarger/next-tailwind-jit-repro Describe your issue I've also put reproduction instructions in the repro repo. It seems that changes made while in `jit` mode are not being picked up. As it stands now, with `jit` mode enabled, only initial styles are applied, and kept. Any changes or additions result in loss of styles. Please advise. Thanks!

Confidence58%
58%
Candidate Fix
1 fix
โ˜๏ธ Cloud & DevOpsDocker
Fresh9 days ago

Support docker exec command

I've just learned about the new docker exec command. Wouldn't it be great to add it to fig ? I think it really makes sense with fig, as you could run `fig up` and then exec some commands (like a shell) to debug your running containers if something happen. Of course this is already possible by running `docker exec -it your_container cmd`, but I think that it wouldn't hurt to have `fig exec service cmd`. I'll try to give it a shot and submit a PR.

Confidence58%
58%
Candidate Fix
1 fix
โ˜๏ธ Cloud & DevOpsDocker
Fresh9 days ago

Not mounting host volumes on `docker-compose up`

We have an machine that's having an issue where host volumes aren't being mounted inside of the container on `docker-compose up`. We're running Arch x86_64 with Linux 4.2.3, Docker version 1.8.3, build f4bf5c7-dirty, and docker-compose version: 1.4.2. Here's our config: docker-compose.yml [code block] While `wsgi` service works just fine (which uses the same `./app` directory), the `dev` service doesn't. Even stranger, it seems that we're able to get host volumes mounted inside the container just fine with a shell command that does the same thing. [code block] Weird, right? Here are our logs, showing that the file `./app/util/start` isn't being mounted to `/mnt/app/util/start`, whereas it's definitely there when we build the directory (as opposed to mounting a host volume). [code block] And the results of `lxc-checkconfig`:

Confidence58%
58%
Candidate Fix
1 fix
๐Ÿ› ๏ธ Developer Tools
Fresh9 days ago

Identify most popular presets for JSCS

One thing JSCS has that ESLint does not is the concept of built-in style presets. ESLint instead prefers people to make and maintain their own shareable configs. The current JSCS presets are: - [x] Airbnb (`eslint-config-airbnb`) - [ ] Crockford - [x] Google (`eslint-config-google`) - [x] Grunt (`eslint-config-grunt`) - [x] Idiomatic (`eslint-config-idiomatic`) - [x] jQuery (`eslint-config-jquery`) - [ ] MDCS - [x] Node Style Guide (`node-style-guide`) - [x] Wikimedia (`eslint-config-wikimedia`) - [x] Wordpress (`eslint-config-wordpress`) It would be good to see which of these presets are most commonly used and potentially reach out to the various projects (Node, jQuery, Grunt, etc.) to see if they would be interested in creating a shareable config that can be used with ESLint.

Confidence58%
58%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsStripe
Fresh9 days ago

fresh npm install stripe and error

Just importing stripe (`import StripeFactory from 'stripe';`) or using require shown in the README causes an error: [code block] I am using the fix mentioned here: https://github.com/webpack/webpack.js.org/issues/107 But can a maintainer fix this. The fix for your module is also at the link above, specifically: > The proper course is the ask the module author to make the module browser compatible. The author can add browser: { fs: false, child_process: false } to the package.json to tell webpack that it's ok for the module to get an empty object for these modules.

Confidence58%
58%
Candidate Fix
1 fix
๐Ÿ”Œ APIs & SDKsGoogle
Fresh9 days ago

Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.----- react-native

[code block] ive been getting this error working on react-native. firebase connects normally, with auth() and it gets data from firebase realtime database, but i cant seem to get it working for firestore.

Confidence58%
58%
Candidate Fix
1 fix
๐Ÿ› ๏ธ Developer ToolsMicrosoft
Fresh9 days ago

[BUG] npx does not attempt to get newer versions

Current Behavior: I have been using `npx <some-workflow-helper>` over the past year to run the current version of a command without having to manage updating it. npm7 does not pull the latest version if I have run it once before... i suspect because its no longer a temp install... Expected Behavior: `npx some-package` always runs the latest published version. Steps To Reproduce: 1. `npx <test-package>` 2. publish a new version of <test-package> 3. `npx <test-package>` Environment: - OS: Fedora 33 - Node: 14.15.0 - npm: 7.1.0

Confidence58%
58%
Candidate Fix
1 fix
๐ŸŒ Web & Full-Stack
Fresh9 days ago

Tailwind v4 @source directive ignores subdirectories with .gitignore

What version of Tailwind CSS are you using? v4.0.0-beta.8 What build tool (or framework if it abstracts the build tool) are you using? None, using CLI What version of Node.js are you using? v20.18.1 What browser are you using? N/A What operating system are you using? tested on macOS and Linux Reproduction URL https://github.com/jhh/tailwind-gitignore Describe your issue Adding a .gitignore file to a directory referenced by a @source directive in a Tailwind CSS source file causes the referenced directory to be ignored. I discovered this because the uv Python packaging tool creates a `.gitignore` in the `.venv` directory it uses and I couldn't `@source` a template directory within it. Manually deleting `.venv/.gitigore` fixes the issue.

Confidence58%
58%
Candidate Fix
1 fix
๐Ÿ—„๏ธ Databases
Fresh9 days ago

JoinTable query generates incorrectly when entity doesn't match standard naming conventions

Steps to reproduce or a small repository showing the problem: 1. Create two entities that don't follow the naming convention (ex. `Thing` in table `things` and `Tag` in table `tags`) 2. Create a join table for them (`thing_tags`) (note that due to the departure from naming convention earlier, this is also a departure from naming convention) 3. Create a `@ManyToMany` relation using `@JoinTable` inside `Thing` as follows: [code block] When trying to retrieve a `Thing`, the query is just barely wrong: [code block] The problem here is that `Thing_tags_relation_id` is not quoted everywhere it's mentioned. If I take the query to postgres, and add quotes around every unquoted `Thing_tags_relation_id`, the query works great: [code block] PS I personally would love a `parametrizedQuery` parameter in error reports that prints the complete query with params filled out (exactly as it would have been sent). As always thanks for all the work on `typeorm`, it is 100% improving the development lives of me and my team :)

Confidence58%
58%
Candidate Fix
1 fix
๐ŸŒ Web & Full-Stack
Fresh9 days ago

Tailwind CLI slow down / memory leak

What version of Tailwind CSS are you using? v3.0.22 What build tool (or framework if it abstracts the build tool) are you using? None What version of Node.js are you using? v17.0.1 What browser are you using? N/A What operating system are you using? Windows 10 Reproduction URL https://github.com/FallDownTheSystem/tailwind-cli-slowdown Describe your issue After saving a file in the root folder, that triggers a rebuild by the Tailwind CLI watcher, while the rebuild is still in progress, I think some kind of memory leak happens. The reproduction requires a file to be saved very rapidly to showcase it, but on larger projects, it can happen naturally, as the build times are longer to begin with. I'll paste the reproduction steps and explanation I added to the README.md of the minimal reproduction demo here. I've also attached a video that showcases the behavior. https://github.com/FallDownTheSystem/tailwind-cli-slowdown 1. `npm install` 2. `npm run watch` 3. Spam save ./folder/noonroot.aspx or ./folder/nonroot2.aspx (On Windows you can hold down ctrl + save to rapidly save the file) 4. Spam save ./root.aspx for a long while 5. Try to spam save one of the nonroot.aspx files again The CLI now gets "stuck" on adding the rebuild step to the promise chain faster than it can process then, making the chain longer and longer. Once you stop spamming save, the chain will unwind and all the rebuilds will complete. But now each time you attempt to save, the process allocates

Confidence58%
58%
Candidate Fix
1 fix
๐Ÿ› ๏ธ Developer ToolsMicrosoft
Fresh9 days ago

[BUG] npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\userName\AppData\Roaming\npm'

Is there an existing issue for this? - [X] I have searched the existing issues This issue exists in the latest npm version - [x] I am using the latest npm Current Behavior When "npm install" runs on pipeline server, sometimes below error occurs: npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\userName\AppData\Roaming\npm' Expected Behavior npm install succeeds with no error Steps To Reproduce 1. Newly installing node 18.17.1 with npm version: 9.6.7 which replaces node 16.17.1 and npm 8.15.0 2. Run 'npm install' 3. See error npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\userName\AppData\Roaming\npm' Workaround may be to create a C:\Users\userName\AppData\Roaming\npm folder manually. Environment - npm:9.6.7 - Node.js:18.17.1 - OS Name:Windows - npm config: [code block]

Confidence58%
58%
Candidate Fix
1 fix
๐Ÿค– AI & LLMsOpenAI
Fresh9 days ago

chat.completions.create return null on browser

Confirm this is a Node library issue and not an underlying OpenAI API issue - [X] This is an issue with the Node library Describe the bug While developing an web app on localhost Works like a charm with 3.6 but after upgrading to v4 and adapating the code chat.completions.create return always null with dangerouslyAllowBrowser: true Works well in back with the same code To Reproduce 1. Use demo code in browser 2. Add dangerouslyAllowBrowser to initiator option 3. Run and get error Code snippets _No response_ OS macOS Node version Node v18.16 Library version openai v4

Confidence58%
58%
Candidate Fix
1 fix
๐ŸŒ Web & Full-Stack
Fresh9 days ago

Styles aren't generated when building a Docker image for ARM64 on a 2019 Intel MacBook Pro

What version of Tailwind CSS are you using? v4.1.3 What build tool (or framework if it abstracts the build tool) are you using? Rails 8.0.2 What version of Node.js are you using? - What browser are you using? Chrome What operating system are you using? macOS -> ARM64 Describe your issue I've prepared detailed steps you can follow. 1. I'm on a MacBook Pro 2019 (Intel): [code block] 2. Generate a new Rails 8 app with Tailwind enabled (zip attached): [code block] 3. Scaffold a resource that uses Tailwind classes: [code block] 4. Start the dev server and check that Tailwind styling is applied (https://localhost:3000/posts): [code block] <img width="843" alt="Screenshot 2025-04-16 at 11 44 38 AM" src="https://github.com/user-attachments/assets/1629ee36-58bf-45fd-80ec-0102de96e7fa" /> 5. Build and push a Docker image for ARM64: [code block] 6. On an ARM server (I use Hetzner CAX11), install Docker, then run the image: [code block] 7. Check the result at `http://<IP-ADDRESS>/posts` and notice that Tailwind styling is not applied: | Screenshot | application.css | |------------|-----------------| | <img width="843" alt="Screenshot 2025-04-16 at 11 44 53 AM" src="https://github.com/user-attachments/assets/3146703d-df20-4a24-a566-96e325df2723" /> | <img width="790" alt="Screenshot 2025-04-16 at 11 49 39 AM" src="https://github.com/user-attachments/assets/1da77e59-d900-4730-8400-2c70fe2fccec" /> | --- I'm happy to help debug this furthe

Confidence58%
58%
Candidate Fix
1 fix
โ˜๏ธ Cloud & DevOpsAmazon
Fresh9 days ago

AWS Elastic Beanstalk app crashes after deploy: .env file not deployed

.env is listed in .gitignore and is not included in the deployment package uploaded to Elastic Beanstalk. The application starts but immediately crashes because all environment variables (database URLs, API keys, secrets) are undefined. EB environment variables must be explicitly configured in the EB console or .ebextensions โ€” they are not read from .env files.

Confidence58%
58%
โœ“ Verified Fix Available
1 fixโœ“ 4 verified
๐Ÿค– AI & LLMs
Fresh9 days ago

Contribution Ideas

Here are a few places that could currently use some help: 1. Explore updating cost estimates to not use an index when a large % of rows will be filtered by a `WHERE` condition (to avoid returning no results) - #263 - [x] `hnsw-filtering-cost` branch 2. Investigate why `l2_distance` (not just `vector_l2_squared_distance`) is called for index scans</strike> - gist - [x] Explanation in https://github.com/pgvector/pgvector/issues/359#issuecomment-1840786021 - [x] See if this can be addressed in the Postgres executor 3. Investigate why the index condition isn't used for `bigint` attributes (like with `integer`) - hqann-bigint branch - [x] Works with casting (thread) 4. Investigate why parallel index scans aren't used when `amcanparallel` is set - parallel-index-scan3 branch 5. Explore updating cost estimates to not use an index when the limit > `hnsw.ef_search` - [x] `index-limit` branch

Confidence58%
58%
Candidate Fix
1 fix
๐Ÿ—„๏ธ DatabasesMongoDB
Fresh9 days ago

OverwriteModelError with mocha 'watch'

I just updated from 3.4.0 to 3.5.1, and when 'watching' Mocha tests on a model, every time the file reloads, I get a OverwriteModelError from re-'require'ing - and I guess, redefining - the model. There must be some value in making an 'overwrite' an error, but I'm going back to 3.4.0 for now because this is too much of a pain.

Confidence57%
57%
Candidate Fix
1 fix
โ† PrevPage 79 of 1250Next โ†’