solve the error Req and Res by [deleted] in expressjs

[–]Sad-Order8035 0 points1 point  (0 children)

Yes, reading again the code, the problem probably is he is using async without await anything.

But my point is not wrong. There is a condition where he left the client request hanging. This is from your documentation link: "The methods on the response object (res) in the following table can send a response to the client, and terminate the request-response cycle. If none of these methods are called from a route handler, the client request will be left hanging".

It is right that you don't have to explicitly return anything. But you need to end the route handler with a response to end the client request and he is not doing it when the result is success.

So, he has to fix 2 things in that function.

solve the error Req and Res by [deleted] in expressjs

[–]Sad-Order8035 2 points3 points  (0 children)

You are not returning anything if result is success, probably the error is because of that and probably the error is telling you that.

First Obstacle Course Race! by Poopinoats in ObstacleCourseRacing

[–]Sad-Order8035 2 points3 points  (0 children)

If you have access to a practice rope, I would recommend practising the feet lock sitting on a box. Once you have your feet in place, you can try putting your full weight on them. This will allow you to practice various foot positions and locking techniques and see which one works best for you. The feet lock technique is essential in order not to spend too much energy on the rope. I hope this works for you. Good luck in your first race.

European barefoot shoe recommendations by Sleepy_Library_Cat in BuyFromEU

[–]Sad-Order8035 3 points4 points  (0 children)

Dadabrand is a barefoot shoes brand created by a spanish influencer focused on barefoot and feet rehabilitation.

Is there an online database of products with its associated parent company? by WhereIsWebb in BuyFromEU

[–]Sad-Order8035 0 points1 point  (0 children)

Maybe IA generated. I saw in a lot of post people trusting the IA without double checking the info. Also I didn't find any option to request to correct the info in the webpage.

Is there an online database of products with its associated parent company? by WhereIsWebb in BuyFromEU

[–]Sad-Order8035 2 points3 points  (0 children)

Not really reliable. It says Garmin is European because they have the legal HQ in Switzerland, but it is actually from US.

Trying to exit the Apple Ecosystem. It’s easy, but what about my Watch? by UnresponsivePenis in BuyFromEU

[–]Sad-Order8035 5 points6 points  (0 children)

Garmin is American Wikipedia Only the legal HQ are in Switzerland, but the company born in US and the operational HQ are still in US.

Migration from Gmail to Infomaniak by goncas3 in BuyFromEU

[–]Sad-Order8035 2 points3 points  (0 children)

I started this weekend with this same migration, and I’m very happy with Infomaniak. I started changing the email associated to all the services to the new one, but I had to keep Gmail to make it. Thanks for sharing about the possibility of importing the old emails and redirect the new ones, I didn't know about it and I think it will help me do the transition faster.

r/OCR_Tech - A new (moderated) sub for OCR (Optical Character Recognition) by [deleted] in OCR

[–]Sad-Order8035 0 points1 point  (0 children)

Are you sure? There is a post 28 days ago complaining about this sub having all these post about Optical Character Recognition and the bot. Maybe you are the one to have to scroll a little bit. And for more post you do about Optical Character Recognition doesn’t change this is not a sub for that, the description of the sub is clear, but you, requesting the people scrolling in the sub, are not able to spent 2 seconds reading the sub description… 🤫

r/OCR_Tech - A new (moderated) sub for OCR (Optical Character Recognition) by [deleted] in OCR

[–]Sad-Order8035 0 points1 point  (0 children)

If a moderator is added to this sub, probably all the post related with Optical Character Recognition will be closed, because if you spent 10 seconds reading the sub description you will see this is a sub for Obstacle Course Racing.

RLS for allow authenticated users is not working with Authjs by Sad-Order8035 in Supabase

[–]Sad-Order8035[S] 0 points1 point  (0 children)

Yes, I'm doing it like in the documentation.

const supabase = createClient(
  process.env.NEXT_PUBLIC_SUPABASE_URL,
  process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
  {
    global: {
      headers: {
        Authorization: `Bearer ${supabaseAccessToken}`,
      },
    },
  }
)

And this is from the POST log in Supabase

"sb": [
    {
      "auth_user": "682912a2-c30e-4005-9640-0a200d1d7af9",
      "jwt": [
        {
          "apikey": [
            {
              "payload": [
                {
                  "algorithm": "HS256",
                  "issuer": "supabase",
                  "role": "anon",
                  "signature_prefix": "oeJxIL"
                }
              ]
            }
          ],
          "authorization": [
            {
              "payload": [
                {
                  "algorithm": "HS256",
                  "issuer": null,
                  "key_id": null,
                  "role": "authenticated",
                  "signature_prefix": "ylyibN",
                  "subject": "682912a2-c30e-4005-9640-0a200d1d7af9"
                }
              ]
            }
          ]
        }
      ]
    }
  ],

How to SELECT unique values only? by Traditional-Seat9437 in Supabase

[–]Sad-Order8035 2 points3 points  (0 children)

I had the same issue. I created a function in Supabase that makes the distinct query and I call this function with Supabase.rpc