Mojo Edits
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
ok ill try thank you for your time ❤️
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
its console result of postman when try to get the data with api
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
when i try to get data with my domain on console here is resuly
GET /api/products HTTP/1.1
email: [email protected]
password: asd123
User-Agent: PostmanRuntime/7.36.0
Accept: /
Postman-Token: 10ea0dd5-7ab1-4f30-9e7f-5f146b3c141e
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: session=r5l4ijkme0qjwv4f9iygpb
Referer: http://www.rateoye.com/api/products
Host: www.rateoye.com
HTTP/1.1 200 OK
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
Age: 163113
Cache-Control: public, max-age=0, must-revalidate
Connection: keep-alive
Content-Disposition: inline
Content-Length: 2
Content-Type: application/json
Date: Mon, 25 Dec 2023 14:52:43 GMT
Etag: "d751713988987e9331980363e24189ce"
Server: Vercel
Strict-Transport-Security: max-age=63072000
Vary: RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Url
X-Matched-Path: /api/products
X-Vercel-Cache: HIT
X-Vercel-Id: bom1::z6k55-1703515963699-9d74c1eb1ba7
[]
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
getting empty array
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
yea i also try this
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
where to do this things ?
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
using vercel db postgress
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
simply by opening table on postgress database
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
im not getting you are you talking about the connections?
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
i check it with this method
export const GET = async (request: NextRequest) => {
const token = request.cookies.get('session')?.value as any
console.log(token, 'Token');
return NextResponse.json(token,{ status: 200 })
}
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
the token session allow to check if the user have token then he can access the data by matching the token which save in table row and the token on api side
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
data post method is working fine but only getting data of products table is problem
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
yea before describe relation id my product table was working properly then i need the ref id so i include it after that it working properly on local data getting properly but on domain side its not
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
before ref id added it was woring properly
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
i also have another table of order with same things and it working properly only problem in products table maybe because of refrence id
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
yea im getting token
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
yes i login first
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
i dont know its problem of drizzle becuase its working fine locally
57 replies
DTDrizzle Team
•Created by Mojo Edits on 12/23/2023 in #help
trying to retrieve data
believe me i have data i checked a lot of times
57 replies