Haus Of Alejandro
06/14/2022, 7:05 PMak4zh
06/14/2022, 7:27 PMhttpx.RemoteProtocolError: Server disconnected without sending a response.
while inserting data.
I am on PRO plan but I get too many exception like below while inserting rows.
File "/home/ak4zh/CodeProjects/updater/main.py", line 177, in insert_data
return supabase.table(table_name).insert(json=json_data, upsert=upsert).execute()
File "/home/ak4zh/CodeProjects/updater/venv/lib/python3.10/site-packages/postgrest_py/_sync/request_builder.py", line 35, in execute
r = self.session.request(
File "/home/ak4zh/CodeProjects/updater/venv/lib/python3.10/site-packages/httpx/_client.py", line 802, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/home/ak4zh/CodeProjects/updater/venv/lib/python3.10/site-packages/httpx/_client.py", line 889, in send
response = self._send_handling_auth(
File "/home/ak4zh/CodeProjects/updater/venv/lib/python3.10/site-packages/httpx/_client.py", line 917, in _send_handling_auth
response = self._send_handling_redirects(
File "/home/ak4zh/CodeProjects/updater/venv/lib/python3.10/site-packages/httpx/_client.py", line 954, in _send_handling_redirects
response = self._send_single_request(request)
File "/home/ak4zh/CodeProjects/updater/venv/lib/python3.10/site-packages/httpx/_client.py", line 990, in _send_single_request
response = transport.handle_request(request)
File "/home/ak4zh/CodeProjects/updater/venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 203, in handle_request
with map_httpcore_exceptions():
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/ak4zh/CodeProjects/updater/venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.RemoteProtocolError: Server disconnected without sending a response.
revanthp
06/14/2022, 10:01 PMdaviscup
06/15/2022, 1:01 AMhttps://[mysupabase].supabase.co/rest/v1/[my_table_without_RLS]?select=*
using 2 headers:
1. apikey: <my anon/public key>
2. Authorization: Bearer <my anon/public key>
As far as I can tell, I'm doing everything exactly like the guy in the video but I'm getting the response
An error occurred while fetching the resource: TypeError: Failed to fetch
. I disabled all firewalls and double checked all inputs. Did smth. about the API change since the video is over 1 year old?VuNguyen
06/15/2022, 4:20 AMkaguya_anime
table before and remove `mediaId`'s relation to kaguya_anime
table)Dembe
06/15/2022, 7:10 AMawait supabaseAdmin.storage
.from("gallery")
.upload(
`${post.category}/${post.categoryChild}/${post.file[0].name}`,
post.file[0]
);
Right now i just upload one, but i want to be able to upload multiply, is that possible?kudziak
06/15/2022, 7:52 AMHaus Of Alejandro
06/15/2022, 9:32 AMomar
06/15/2022, 10:01 AMLior539
06/15/2022, 10:19 AMBorisdm
06/15/2022, 11:18 AMconst { user, error } = await supabase.auth.update({password: 'new password'})
is their a way to update another user's password? I belive the above function will update the logged in userJulien
06/15/2022, 1:18 PMDiogovski
06/15/2022, 3:20 PMimport { useQuery } from '@apollo/client'
import React, { useEffect, useState } from 'react'
import InfiniteScroll from 'react-infinite-scroll-component'
import { GET_ALL_POSTS, GET_ALL_POSTS_BY_TOPICO } from '../../graphql/queries'
import { Post_Subforum } from '../../typings'
import Post from './Post'
type Props = {
topico?: string
}
function Feed({ topico }: Props) {
const [length, setLength] = useState(0);
const [hasMore, setHasMore] = useState(true);
const { data, error } = !topico ?
useQuery(GET_ALL_POSTS, {
variables: {
limit: 3,
after: length,
}
})
: useQuery(GET_ALL_POSTS_BY_TOPICO, {
variables: {
limit: 3,
after: length,
topico: topico,
}
})
const [posts, setPosts] = useState<Post_Subforum[]>([]);
console.log(length)
useEffect(() => {
setPosts(!topico ? data?.getPostList : data?.getPostListByTopico);
setHasMore(length >= data?.getPostList.length ? false : true)
})
console.log(hasMore)
const getMorePosts = () => {
setLength(length + 3);
const newPosts = [...posts, !topico ? data?.getPostList : data?.getPostListByTopico];
setPosts(newPosts);
};
return (
<div className="mt-5 space-y-4">
<InfiniteScroll
dataLength={length}
next={getMorePosts}
hasMore={hasMore}
loader={<h4>Loading...</h4>}
endMessage={
<p style={{ textAlign: "center" }}>
<b>Yay! You have seen it all</b>
</p>
}
>
{posts?.map((post) => (
<Post key={post.id} post={post} />
))}
</InfiniteScroll>
</div>
)
}
export default Feed
Ape R Us
06/15/2022, 4:24 PMPhenomen
06/15/2022, 5:52 PMmanager
with a foreign key to manager's id
. So. what if I want to display manager's name
row instead of id
?
I've tried this but it doesn't work
Svelte
{#each projects as project}
{project.manager.name || ''}
{/each}
João Vitor
06/15/2022, 6:16 PMmudkip
06/15/2022, 6:18 PMHaus Of Alejandro
06/15/2022, 7:19 PMJoão Vitor
06/15/2022, 9:59 PMBorisdm
06/15/2022, 10:15 PMjvocodes
06/15/2022, 11:42 PMcdro
06/16/2022, 12:09 AM@supabase/supabase-js
can no longer be used in Edge Functions. This is because native NodeJS API's are not supported and it appears there are some dependencies of realtime-js that use these. Here is a look at the stack trace. Has anyone else come across this issue?
Module not found: Can't resolve 'fs'
Import trace for requested module:
./node_modules/bufferutil/index.js
./node_modules/websocket/lib/WebSocketFrame.js
./node_modules/websocket/lib/websocket.js
./node_modules/websocket/index.js
./node_modules/@supabase/realtime-js/dist/module/RealtimeClient.js
./node_modules/@supabase/realtime-js/dist/module/index.js
./node_modules/@supabase/supabase-js/dist/module/index.js
./pages/api/v0/_middleware.ts
https://nextjs.org/docs/messages/module-not-found
You're using a Node.js module (fs) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
mnaircckel
06/16/2022, 1:30 AMCREATE POLICY "Restrict" ON "public"."<mytable>" AS PERMISSIVE FOR ALL TO public USING (false)
, but that didn't yeild any results either. Select statements are still going through just fine.
Am I misconfiguring something or is RLS not intended to work when connecting server-side with the connection URI?QueueBot
06/16/2022, 5:01 AMstudio
development server running and a local copy of Supabase running through Docker. The two seem to be able to interface with each other.
Unfortunately, no OAuth options show up. This screenshot (https://storage.queue.bot/t/ad04mwocz.png▾
mhaezaragoza
06/16/2022, 5:39 AMtesticon.png
from a bucket named test
with a folder test
using the code below
client!.storage.from(id: "test").download(path: "test/testicon.png")
I receive this message:
StorageError(statusCode: Optional(400), message: Optional("Not found"))
Can anyone help me see what I'm doing wrong?Dembe
06/16/2022, 7:42 AMconst { user, session, error } = await supabaseAuth.auth.signIn({
email: email,
password: password,
});
I can't get to my session or user, i get null back even if i have signup before.
I have no idea why is still am on Auth.js file and not on index.js which I should be when i log inpixelhusten
06/16/2022, 8:14 AMupsert()
, every time I want to edit or create an entry I get an error in $: not enough input
. The entry is saved regularly, but I can't get the data from the request. In the past, this has always worked wonderfully.
js
const { data } = await client.from<ICosts>('costs')
.upsert({
...costBlockWriter(payload),
user_id: user.value.id
})
Mikey007
06/16/2022, 8:23 AMMartin Kmieciak
06/16/2022, 10:07 AMShoki
06/16/2022, 10:52 AM.env
GOTRUE_EXTERNAL_GOOGLE_ENABLED=true
GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID=my_client_id
GOTRUE_EXTERNAL_GOOGLE_SECRET=my_secret
GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI=my_redirect_uri
i restarted the containers and tried to open this URL:
http://localhost:8000/auth/v1/authorize?provider=google&redirect_to=
and got this:
{
"code": 400,
"msg": "Unsupported provider: Provider is not enabled"
}
can you help me, i think i'm missing something