Tatsuyuki Ishi
05/16/2018, 8:18 AMMH
05/16/2018, 9:04 AMMH
05/16/2018, 9:04 AMeliezedeck
05/16/2018, 10:36 AMRory Kelly
05/16/2018, 11:05 AMgaelgriffon
05/16/2018, 11:25 AMiamclaytonray
05/16/2018, 11:45 AMrein
05/16/2018, 11:57 AMgaelgriffon
05/16/2018, 12:02 PMtsdexter
05/16/2018, 12:10 PM{
"error": "Function returned invalid status code: 404. Raw body: {\"code\":404,\"message\":\"unable to resolve jtn to webtask token\",\"req_id\":\"1526472484268.710982\"}"
}
siyfion
05/16/2018, 12:35 PMgraphql-yoga
to use the new Apollo Server v2.0? (In beta currently)iamclaytonray
05/16/2018, 12:35 PMreact-instantsearch
) for search. Everything is built like a normal web app, to my knoweldgerein
05/16/2018, 1:00 PMuser
05/16/2018, 1:39 PMdpetrick
05/16/2018, 1:40 PMrein
05/16/2018, 1:40 PMLotafak
05/16/2018, 2:08 PMlemamon
05/16/2018, 3:34 PMctx.db.exists
.marco
05/16/2018, 5:06 PMcomponentDidMount()
method but as my application grows, thats very shit for scaling to do everything on the client since the bundle grows and grows.
So my question:
What is the best way to encounter this problem? Any suggestion is a good suggestion, I'm still at a stage were I can easily rewrite a bunch of code.
Thank youdreadjr
05/16/2018, 5:39 PMserver {
listen 80 default_server;
root /var/www/si/build;
server_name {server_name};
index index.html index.htm;
location / {
try_files $uri /index.html;
}
location /api {
proxy_pass <http://localhost:8080;>
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Reacter router seems to be picking up the /api call not ngixweakky
05/16/2018, 6:49 PMveksen
05/16/2018, 7:20 PM"Cannot query field 'facebookUserId' on type 'User'. (line 4, column 5):\n facebookUserId\n ^",
veksen
05/16/2018, 7:21 PMdgcam
05/16/2018, 7:49 PMinvalid input syntax for type boolean
which is a postgres 22P02
error. This happens when calling current_setting('jwt', true)
from an unauthenticated session (i.e. no jwt exists). Iāve worked around the issue by adding an exception handler in the trigger, which is ok given this path is called very infrequently.
However I want to understand this more to ensure this isnāt an indicator of a larger problem.
This is reproducible with the following steps
1) login our app (creating a valid jwt)
2) logout of the app (the app deletes the auth header and calls resetStore
)
3) Immediately trigger the unauthenticated path with a call to the mutation
In this case, the trigger which works as expected in all other cases, throws the exception that the boolean call to current_setting is invalid.
After enabling PG logging, it appears the issue only reproduces if an authenticated user logs out and issues the mutation before postgraphile calls LOG: statement: SELECT name, setting FROM pg_settings WHERE source = 'session';
Per the PG docs, a current_setting(<var>, <true|false>)
should always work. Iām wondering if there is a race between postgraphile reseting some local/connection state and PG current_setting() implementation.
Any Thoughts/Ideas/Tips?jaybauer
05/16/2018, 8:25 PMgraphql-yoga
questions or would just be clogging up the channel? š
EDIT: Alright, cool. I have a couple questions concerning passing data to the server to be used in something such as, say, nodemailer
. Originally I was under the impression that GraphQL was meant to replace REST and therefore libraries like axios
, but if I want to post data to the server (if itās not something that I plan to send through the database and into a resolver), as far as I can tell something like axios
is still the way to go.
So, my original question: How do I do express functions like <http://express.post|express.post>
in graphlql-yoga
? I tried, using the default boilerplate, just doing <http://server.post|server.post>
on my GraphQLServer object but itās not working as expected. Iām not sure if itās something Iām doing wrong on the front-end or if thatās not the right syntax. And my secondary question, is that even the way to go?veksen
05/16/2018, 8:40 PMalechp
05/16/2018, 9:43 PMmichael.graham
05/17/2018, 2:48 AMmichael.graham
05/17/2018, 2:49 AMRaviv
05/17/2018, 6:19 AMError: EACCES: permission denied, mkdir '/home/forge/.cache/prisma'
I am using a user called forge as i setup the digitalocean droplet via Laravel Forge system (which i have done for many projects) and bby default it sets up a none sudo user (forge) in addition to the root user.
Everything goes good until i try to run npm -g install prisma
,
somehow the system does not permit my user to create a new directory under
/home/forge/.cache/
which is not true, cause when i run a simple command with the same user
mkdir /home/forge/.cache/prisma
the directory is created successfully.
I have tried various solutions as in running it with sudo, deleting the .config directory so the system will produce it on runtime, calling an older version of prismaā¦ā¦
I have even gone to creating a new clean droplet and trying to set it up.
and no luck!!
If anyone can help i would be grateful, Thanks!!