-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your guide to easily deploy a standalone version is here :) #176
Comments
Awesome! I love that this solution doesn't have to be hosted on a host computer since it uses render.com. |
I am getting a error - Invalid phone number curl -X POST http://textbelt-05ea.onrender.com/text |
what name shuld i use for envioment varibale lib/config.js |
i'm not sure what you are referring to. here is the lib/config.js source. which variable, which line of code? https://github.com/founderhacker/textbelt_deployable/blob/master/lib/config.js |
i've deployed it on my vps the endpoint is working but after i try sending
a message i get this {"success":false,"message":"Invalid phone number."}⏎
┌[parrot]─[20:28-12/01]─[/home/brian/Downloads]
└╼brian$
…On Fri, 12 Jan 2024 at 20:21, Ryan Kulp ***@***.***> wrote:
what name shuld i use for envioment varibale lib/config.js
i'm not sure what you are referring to. here is the lib/config.js source.
which variable, which line of code?
https://github.com/founderhacker/textbelt_deployable/blob/master/lib/config.js
—
Reply to this email directly, view it on GitHub
<#176 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARMKYQCM2GECGPD3L6IGBNLYOFWKZAVCNFSM6AAAAAATNKJD2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGY4DCNJXHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
i suggest trying another number first. perhaps the one you tested is already blacklisted. |
same error man |
can you give it a try and give feedback please └╼brian$curl
http://165.22.121.181:9090/text
I'm online!⏎ http://165.22.121.181:9090/text
…On Fri, 12 Jan 2024 at 20:32, Ryan Kulp ***@***.***> wrote:
i suggest trying another number first. perhaps the one you tested is
already blackli
Reply to this email directly, view it on GitHub
<#176 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARMKYQCO5MRS77BSKLZE2YTYOFXRFAVCNFSM6AAAAAATNKJD2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGY4TKNJTHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
update - i've just forked a deployable version to reduce some of the steps below.
hi folks,
i noticed a bunch of you (#140, #172, #135, #120, #119, #88) are struggling to get this working on your own server. below is a free and easy solution!
first, i suggest you get it running locally via the included README instructions:
when this works, you're ready to deploy. push this code up to a new PRIVATE GitHub repository (since we added SMTP credentials), or change those hard-coded values to environment variables.
deploying a self-hosted version of Textbelt
Node
, Build Command tonpm install
, and Start Command tonode server/app.js
lib/config.js
to use environment variables, plug those in by clicking Advanced > Add Environment Variablethis will build and deploy your code. when it's done, click the URL generated by Render and you should see the "homepage" saying
I'm online!
.now for the final task. if you try creating a text message via our previous strategy:
you'll likely get a
CANNOT Post
response with some HTML markup. i couldn't figure out why Render blocks the request as the server already has CORS enabled.to fix this, simply modify your code inside
server/app.js
:Render won't complain about cross origin GET requests. inside your Render project dashboard click "Manual Deploy" to update your server with the
/text
endpoint HTTP method update.you'll be up and running in seconds! enjoy.
The text was updated successfully, but these errors were encountered: