n8
n8
Explore posts from servers
PPrisma
Created by n8 on 6/21/2024 in #help-and-questions
Can't start prisma studio
moving to the latest versions of relevent packages causes bun x prisma studio to have no console output, and reverting to any previous version of my pacjage.json continues to cause this wall of text
4 replies
PPrisma
Created by n8 on 6/21/2024 in #help-and-questions
Can't start prisma studio
To provide more information, I am on linux and, again, trying to use Prisma Studio to look at my local sqlite database
4 replies
PPrisma
Created by n8 on 6/21/2024 in #help-and-questions
Can't start prisma studio
Reverting back to my previous version of 5.14.0 is now throwing a wall of text with no clear error:
Prisma Studio is up on http://localhost:5555
Prisma Studio is up on http://localhost:5555
65 | GFS4: `),console.error(e)});mr[Pn]||(Ooe=global[Pn]||[],koe(mr,Ooe),mr.close=function(e){function r(n,i){return e.call(mr,n,function(a){a||Ioe(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(r,LS,{value:e}),r}(mr.close),mr.closeSync=function(e){function r(n){e.apply(mr,arguments),Ioe()}return Object.defineProperty(r,LS,{value:e}),r}(mr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kp(mr[Pn]),require("assert").equal(mr[Pn].length,0)}));var Ooe;global[Pn]||koe(global,mr[Pn]);x3.exports=y3(CXe(mr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!mr.__patched&&(x3.exports=y3(mr),mr.__patched=!0);function y3(e){SXe(e),e.gracefulify=y3,e.createReadStream=B,e.createWriteStream=V;var r=e.readFile;e.readFile=n;function n(q,X,N){return typeof X=="function"&&(N=X,X=null),Q(q,X,N);function Q(ee,oe,H,K){return r(ee,oe,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?bh([Q,[ee,oe,H],ie,K||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,a | ... truncated
66 | See: https://github.com/isaacs/node-glob/issues/167`);return new Qr(e,r).found}function Qr(e,r){if(!e)throw new Error("must provide pattern");if(typeof r=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
65 | GFS4: `),console.error(e)});mr[Pn]||(Ooe=global[Pn]||[],koe(mr,Ooe),mr.close=function(e){function r(n,i){return e.call(mr,n,function(a){a||Ioe(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(r,LS,{value:e}),r}(mr.close),mr.closeSync=function(e){function r(n){e.apply(mr,arguments),Ioe()}return Object.defineProperty(r,LS,{value:e}),r}(mr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kp(mr[Pn]),require("assert").equal(mr[Pn].length,0)}));var Ooe;global[Pn]||koe(global,mr[Pn]);x3.exports=y3(CXe(mr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!mr.__patched&&(x3.exports=y3(mr),mr.__patched=!0);function y3(e){SXe(e),e.gracefulify=y3,e.createReadStream=B,e.createWriteStream=V;var r=e.readFile;e.readFile=n;function n(q,X,N){return typeof X=="function"&&(N=X,X=null),Q(q,X,N);function Q(ee,oe,H,K){return r(ee,oe,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?bh([Q,[ee,oe,H],ie,K||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,a | ... truncated
66 | See: https://github.com/isaacs/node-glob/issues/167`);return new Qr(e,r).found}function Qr(e,r){if(!e)throw new Error("must provide pattern");if(typeof r=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
67 | See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Qr))return new Qr(e,r);if(Lst(this,e,r),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;i<n;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}Qr.prototype._finish=function(){if(rde.ok(this instanceof Qr),this.realpath){var e=this;this.matches.forEach(function(r,n){var i=e.matches[n]=Object.create(null);for(var a in r)try{a=e._makeAbs(a);var o=$st.realpathSync(a,e.realpathCache);i[o]=!0}catch(c){if(c.syscall==="stat")i[e._makeAbs(a)]=!0;else throw c}})}Up.finish(this)};Qr.prototype._process=function(e,r,n){rde.ok(this instanceof Qr);for(var i=0;typeof e[i]=="string";)i++;var a;switch(i){case e.length:this._processSimple(e.join("/"),r);return;case 0:a=null;break;default:a=e.slice(0,i).join("/");break}var o=e.slice(i),c;a===null?c=".":((gD(a)||gD(e.map(function(p){return typeof p=="string"?p:"[*]"}).join("/")))&&(!a||!gD(a))&&(a="/"+a),c=a);var u=this._makeAbs(c);if(!Mst(this,c)) | ... truncated
68 | `)),r.linkname&&(n+=CL(" linkpath="+r.linkname+`
69 | `));let i=r.pax;if(i)for(let a in i)n+=CL(" "+a+"="+i[a]+`
67 | See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Qr))return new Qr(e,r);if(Lst(this,e,r),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;i<n;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}Qr.prototype._finish=function(){if(rde.ok(this instanceof Qr),this.realpath){var e=this;this.matches.forEach(function(r,n){var i=e.matches[n]=Object.create(null);for(var a in r)try{a=e._makeAbs(a);var o=$st.realpathSync(a,e.realpathCache);i[o]=!0}catch(c){if(c.syscall==="stat")i[e._makeAbs(a)]=!0;else throw c}})}Up.finish(this)};Qr.prototype._process=function(e,r,n){rde.ok(this instanceof Qr);for(var i=0;typeof e[i]=="string";)i++;var a;switch(i){case e.length:this._processSimple(e.join("/"),r);return;case 0:a=null;break;default:a=e.slice(0,i).join("/");break}var o=e.slice(i),c;a===null?c=".":((gD(a)||gD(e.map(function(p){return typeof p=="string"?p:"[*]"}).join("/")))&&(!a||!gD(a))&&(a="/"+a),c=a);var u=this._makeAbs(c);if(!Mst(this,c)) | ... truncated
68 | `)),r.linkname&&(n+=CL(" linkpath="+r.linkname+`
69 | `));let i=r.pax;if(i)for(let a in i)n+=CL(" "+a+"="+i[a]+`
70 | `);return gt.from(n)};Hh.decodePax=function(r){let n={};for(;r.length;){let i=0;for(;i<r.length&&r[i]!==32;)i++;let a=parseInt(r.subarray(0,i).toString(),10);if(!a)return n;let o=gt.toString(r.subarray(i+1,a-1)),c=o.indexOf("=");if(c===-1)return n;n[o.slice(0,c)]=o.slice(c+1),r=r.subarray(a)}return n};Hh.encode=function(r){let n=gt.alloc(512),i=r.name,a="";if(r.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),gt.byteLength(i)!==i.length)return null;for(;gt.byteLength(i)>100;){let o=i.indexOf("/");if(o===-1)return null;a+=a?"/"+i.slice(0,o):i.slice(0,o),i=i.slice(o+1)}return gt.byteLength(i)>100||gt.byteLength(a)>155||r.linkname&&gt.byteLength(r.linkname)>100?null:(gt.write(n,i),gt.write(n,Hu(r.mode&Zot,6),100),gt.write(n,Hu(r.uid,6),108),gt.write(n,Hu(r.gid,6),116),act(r.size,n,124),gt.write(n,Hu(r.mtime.getTime()/1e3|0,11),136),n[156]=AD+ict(r.type),r.linkname&&gt.write(n,r.linkname,157),gt.copy(Fhe,n,b0),gt.copy(Xot,n,PL),r.uname&&gt.write(n,r.uname,265),r.gname&&gt.write(n,r.gname,297),gt.write(n,Hu(r.devmajor| | ... truncated
70 | `);return gt.from(n)};Hh.decodePax=function(r){let n={};for(;r.length;){let i=0;for(;i<r.length&&r[i]!==32;)i++;let a=parseInt(r.subarray(0,i).toString(),10);if(!a)return n;let o=gt.toString(r.subarray(i+1,a-1)),c=o.indexOf("=");if(c===-1)return n;n[o.slice(0,c)]=o.slice(c+1),r=r.subarray(a)}return n};Hh.encode=function(r){let n=gt.alloc(512),i=r.name,a="";if(r.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),gt.byteLength(i)!==i.length)return null;for(;gt.byteLength(i)>100;){let o=i.indexOf("/");if(o===-1)return null;a+=a?"/"+i.slice(0,o):i.slice(0,o),i=i.slice(o+1)}return gt.byteLength(i)>100||gt.byteLength(a)>155||r.linkname&&gt.byteLength(r.linkname)>100?null:(gt.write(n,i),gt.write(n,Hu(r.mode&Zot,6),100),gt.write(n,Hu(r.uid,6),108),gt.write(n,Hu(r.gid,6),116),act(r.size,n,124),gt.write(n,Hu(r.mtime.getTime()/1e3|0,11),136),n[156]=AD+ict(r.type),r.linkname&&gt.write(n,r.linkname,157),gt.copy(Fhe,n,b0),gt.copy(Xot,n,PL),r.uname&&gt.write(n,r.uname,265),r.gname&&gt.write(n,r.gname,297),gt.write(n,Hu(r.devmajor| | ... truncated
TypeError: Process was closed while trying to send message
at #disconnect (node:child_process:789:14)
at /home/nate/Documents/workspace/rentchexx-3/node_modules/prisma/build/index.js:70:43460
TypeError: Process was closed while trying to send message
at #disconnect (node:child_process:789:14)
at /home/nate/Documents/workspace/rentchexx-3/node_modules/prisma/build/index.js:70:43460
4 replies
PPrisma
Created by n8 on 5/22/2024 in #help-and-questions
Using createManyAndReturn
Unfortunately my codebase is not open source. Here is what the initialization of the client looks like:
const libsql = createClient({ url, authToken });
const adapter = new PrismaLibSQL(libsql) satisfies DriverAdapter;
const prisma = new PrismaClient({ adapter });
const libsql = createClient({ url, authToken });
const adapter = new PrismaLibSQL(libsql) satisfies DriverAdapter;
const prisma = new PrismaClient({ adapter });
6 replies