wbjb
WWasp
•Created by wbjb on 1/26/2025 in #đŸ™‹questions
payment not required for auth
so this is what i did. I added a check subscription status query to the call and now it works fine
38 replies
WWasp
•Created by wbjb on 1/26/2025 in #đŸ™‹questions
payment not required for auth
I haven't looked at it since this, but I tried that. My assumption is when I wrote my version I must have did it differently so the logic isn't triggering the same way for checking the credits. I tested this by leaving the credits and they didn't subtract after the calls. My plan was to maybe change the API call to check subscription before running the call.
38 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
Will do. I'm new to all of this with only a limited background and I'm building a simple app as a learning experience. It's been great so far!
83 replies
WWasp
•Created by wbjb on 1/26/2025 in #đŸ™‹questions
payment not required for auth
@kapa.ai can you suggest middleware code to fix the payment auth
38 replies
WWasp
•Created by wbjb on 1/26/2025 in #đŸ™‹questions
payment not required for auth
@kapa.ai can yousuggest
38 replies
WWasp
•Created by wbjb on 1/26/2025 in #đŸ™‹questions
payment not required for auth
@kapa.ai i found it in the prisma.schema. the 3 credits were defaulted into the user on creation. thanks
38 replies
WWasp
•Created by wbjb on 1/26/2025 in #đŸ™‹questions
payment not required for auth
@kapa.ai i see in the tests file that this credit system is intentional to allow users free trials
38 replies
WWasp
•Created by wbjb on 1/26/2025 in #đŸ™‹questions
payment not required for auth
@kapa.ai it seems to be default assigning a credit plan to the user automatically
38 replies
WWasp
•Created by wbjb on 1/26/2025 in #đŸ™‹questions
payment not required for auth
@kapa.ai so stripe works fine and auth works fine. What isn't working is that the auth isn't requiring payment to pass
38 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
Thanks that was it. It was all my variables for everything. I had seen that error but i thought it was coming up because I couldn't communciate with the backend.I had made sure the env.server had teh variables but I must have missed some when i did that step. Really appreciate it
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@miho any ideas. I've tried everything above. still no dice.
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@kapa.ai
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@kapa.ai
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@kapa.ai # fly.toml app configuration file generated for haystack30-server on 2025-01-25T14:11:37-05:00
See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'haystack30-server'
primary_region = 'mia'
[build]
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 1
processes = ['app']
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@kapa.ai which fly.toml file? there is client and server
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@kapa.ai still getting this ccess to XMLHttpRequest at 'https://haystack30-server.fly.dev/auth/me' from origin 'https://haystack30-client.fly.dev' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this errorAI
index-BHcrCPkf.js:78
GET https://haystack30-server.fly.dev/auth/me net::ERR_FAILED 502 (Bad Gateway)
GET https://haystack30-server.fly.dev/auth/me net::ERR_FAILED 502 (Bad Gateway)
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@kapa.ai
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
yeah Im still getting this ccess to XMLHttpRequest at 'https://haystack30-server.fly.dev/auth/me' from origin 'https://haystack30-client.fly.dev' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this errorAI
index-BHcrCPkf.js:78
GET https://haystack30-server.fly.dev/auth/me net::ERR_FAILED 502 (Bad Gateway)
GET https://haystack30-server.fly.dev/auth/me net::ERR_FAILED 502 (Bad Gateway)
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@kapa.ai in the open saas template which server file would this go ing
83 replies
WWasp
•Created by wbjb on 1/23/2025 in #đŸ™‹questions
cant access server after deploying
@kapa.ai WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
- 0.0.0.0:3000
Found these processes inside the machine with open listening sockets:
PROCESS | ADDRESSES
-----------------*-------------------------------------- /.fly/hallpass | [fdaa:e:1179:a7b:a0:4c0c:a500:2]:22
-----------------*-------------------------------------- /.fly/hallpass | [fdaa:e:1179:a7b:a0:4c0c:a500:2]:22
83 replies