I enabled WebSockets support on my Heroku application but last week Heroku updated their platform's routing architecture.
Now I get incomplete chunks in my browser. You can try my app:
http://dartlangfr-risk.herokuapp.com
Here my server code:
https://github.com/ggirou/risk/blob/master/bin/main.dart#L16-L40
Does anyone have a clue?
Thanks
Related
is it still not possible to run laravel-websockets on Heroku?
Cause have searched everywhere and all i could see is Heroku did not support laravel web-socket and that is 2019..
i don't know if by now Heroku would have supported it...
as the title suggests I've used the react native expo quick start guide and managed to setup a basic project. Everything worked just fine until it came to making fetch requests to my local server by laravel 8. It seems both android and ios don't allow making http calls unless you change some config in your android folder which I don't have for using expo. Tried googling for my answer but I keep running into dead ends. Is there any way to enable this or should I try migrating my back-end temporarily to heroku or something similar? Thank you for reading.
Edit: Forgot to mention each time i make a call to the wrong route I immediately get Network error while hitting the right routes throws an unresolved promise
I can't get my backend to send data after switching to secure connection.
I was able to successfully configure SSL with ssl_mod on Apache web server that serves my Angular app on AWS Linux 2 instance, the site is secure - but my Spring Boot backend is not responding, it is not sending any data. When I additionally convert .crt and .key files to PK12 that Spring understands and I use it in Spring app - I get this error:
net::ERR_SSL_PROTOCOL_ERROR
I've tried using AWS Load Balancer, but same thing happens, frontend is loaded in secure environment, but backend is not sending any data even after I change backend calls from http to https://my-site.com. I've tried following documentation and added this to my backend app properties file:
server.tomcat.remoteip.remote-ip-header=x-forwarded-for
server.tomcat.remoteip.protocol-header=x-forwarded-proto
and security configuration upgraded with this:
http.requiresChannel().anyRequest().requiresSecure()...
but to no avail.
Lastly, I created a new instance on EC2 and this time I didn't configure apache for the frontend on linux, I just used SSL certificate on my backend app with following properties:
server.ssl.enabled=true
server.ssl.key-store=/etc/ssl/mydomain_com.p12
server.ssl.key-store-password=******
server.ssl.key-alias=mydomain
To no avail, now my site doesn't load at all. I'm despearate, struggling with this for a week now. What is the procedure for a full stack app? How do I do it?
Let me respond because on the same day I asked the question - I found a solution. The solution was - converting free SSL certificate with the help of this website:
https://www.sslshopper.com/ssl-converter.html
After I've plugged it in my Spring Boot app - it works. Before that, I made the conversion with OpenSSL on Windows, and it seems it was faulty. I'm so happy now... I read so many articles on this website on my one and a half year journey of learning to code - and got stuck on the last step. I'm so happy. Thank you all for this amazing website and all the help. I love you! I'm proud of being a part of this programming community... the best humor, the best people!
Peace
We have a PHP app on IBM Cloud connected to an instance of DB2 (also on IBM Cloud) that has been working flawlessly for 2 years
Up until Sept 16th, we used the https://github.com/ibmdb/php-buildpack buildbpack with our PHP app (so that it could connect to DB2 via the db2_connect PHP function.)
Now after the cflinuxfs3 upgrade that buildpack does not work and we are forced to use the
" "php_buildpack" community buildpack already installed in Cloud Foundry".
however, This new buildpack does not support DB2 connections. When trying to use this buildpack I run a log I find this error :
"undefined function : db2_connect()".
We are currently using an older buildpack:
https://github.com/ibmdb/db2heroku-buildpack-php
this one DOES support connections to DB2 but it make the app VERY slow. A simple www page will load up to 60 seconds. We used this buildpack up until some 18 months ago, until they changed something on IBM Cloud and the heroku buiildpack staterd working very slow.... and we were told by support to use the one I mentioned at the begining. So, does anyone know WHY the heroku build pack works so slow or better yet is there a way to config your IBM Cloud account so that the heroku buildpack works normally?
I'm trying to use the Play Framework starting with the WebSocket Chat Example founded here:
https://github.com/playframework/playframework/tree/2.0/samples/scala/websocket-chat
In particular this review of the last Play Framework version:
https://github.com/Shauli10/websocket-chat
I have deployed it on a Free Heroku Account, you can visit it ad this address:
https://desolate-shelf-8169.herokuapp.com
the problem is that when I insert the name, and I chat some message I can't see anything of what i send in the chat, and I can't also see the Robot that in the example type every 30 seconds a message, what I wrong? there is something I have to enable on Heroku for the WebSocket?
thanks
I notice that if I change the https part of the url to http (i.e. http://desolate-shelf-8169.herokuapp.com) your app seems to work. I'm not entirely sure why, but I know some browsers are picky about this with websockets.
Websockets should work on Heroku out-of-the-box. There is nothing that needs to be enabled.
Also, when I tried the template app:
$ git clone git#github.com:Shauli10/websocket-chat.git
$ heroku create
$ git push heroku master
It seems to "just work". If you are still having trouble, can you explain what you have changed in the template?