error: RPC failed; curl transfer closed with outstanding read data remaining

There are usually issues with cloning large repositories over http. this can be due to web server settings, the backend and etc.

Well today I had to clone a big repo off a phabricator instance and I was getting “error: RPC failed; curl transfer closed with outstanding read data remaining” all the way.

after lots of try I found this solution posted on stackoverflow which seemed to be working in my case.

Hope it can help you too if you are looking at this page right now.

 

Incoming search terms:

  • error: RPC failed; curl 18 transfer closed with outstanding read data remaining
  • brew installtion error: RPC failed; curl 18 trasnfer closed with outstanding
  • https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1824 yxFD11HZa3zOJ7egqYE_5K8kKfuof1DpCw_MILXvVE9Hg4D-vtsslryyVyv59_oW 7dc174ee743bd51152280c8faf5fd5d8d1390086&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme

Run and monitor Laravel Queue using PM2

In most cases you’d use supervisor.d or some other monitoring daemon to after queue worker process in Laravel applications, However the propose of this post is just to say that you can use PM2 to run and monitor your artisan process.

Basically the reason I go with pm2 is that I have few nodejs scripts running on my server so it would be a good reason to use pm2 for running my queue runner.

To get pm2 to run artisan run following command:

This would run a pm2 process named laravel-worker which you can then see in your pm2 list output.

if you are not yet running pm2 in start up make sure you run pm2 startup to ensure your processes run once your machine is rebooted.

Fix: OnePlus 5T Face Unlock Slow Down

Did your shiny Oneplus 5T Face Unlock slow down? I still remember how instant I could get to the home screen once I setup my face unlock on my brand new Oneplus 5T a month ago, but few days back I got to notice that there is a delay between when Facial recognition is done and when the phone unlocks.

This wasn’t about the process of Face Recognition, I knew the Face Unlock was still fast but what I was experiencing was seeing a slow sliding animation of unlocking the phone.

In the beginning I thought it was due some update, maybe OnePlus has added some more security measurement to the process, a week ago when one of my colleagues bought a 5T.

His brand new setup was running on the latest Oxygen OS and the Face Unlock was fast. this made me think about what could be on my phone and not on his that causes this issue and the only thing I could think of was my launcher. I am not using the Default launcher shipped by OnePlus on my device, I am running on Microsoft Launcher, so I thought that’s it, catch ya. But I eventually realised that the devilish animation is not coming from my launcher either.

Well after some search it turned out that the issue was due to change in animation speeds in my phone when I activated my Developer mode. I do not remember changing any of these settings but looks like activating developer mode made following settings to get the default value of 1x.

So if you are experiencing slow face unlock or finger print process on your OnePlus 5T and you’ve activated the developer mode sometime during your usage, I highly suggest you to have a look at these settings.

 

Incoming search terms:

  • suddenly oneplus 5T has slowed dwon for unlocking

Fix Cordova issue with Gradle Wrapper missing From Android SDK in MAC.

Out of the sudden I was not able to build and run my cordova projects on my android phone by getting “Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.” .

It was not a normal SDK issue. after looking around it turned out that Google has changed the location of gardle wrapper in their sdk which was causing cordova not being able to find it. thus trying to run / build the apk was giving out the below output:

Blame is on Google but it seems Apache has fixed this issue in the next version of android-platform for cordova. so if you are one of the victims of errors above you can do this to solve your problem.

lets hope this helps some people out there, stuck searching over a solution like me.

Incoming search terms:

  • Could not find gradle wrapper within Android SDK Might need to update your Android SDK
  • mac cli Error: Could not find gradle wrapper within Android SDK Might need to update your Android SDK
  • Error: Could not find gradle wrapper within Android SDK Might need to update your Android SDK
  • cordova 7 gradle wrapper fix
  • mac could not find gradle wrapper within android sdk
  • mac android gradle wrapper miss
  • gradle not found cordova
  • could not find gradle wrapper within android sdk windows
  • could not find gradle wrapper within android copy templates
  • template gradle wrapper

Reindex Spotlight and All My Files

Spotlight and All My Files can be a real time saver tool on mac but if you are a developer with lots of junk scripts within your project that can go messy. luckily we are able to exclude folders and files in spotlight privacy settings, but adding them to the privacy section will not immediately remove them from spotlight index.

The solution to this is to manually force spotlight to rebuild the index by executing following command in terminal:

running this alone is not enough tough. make sure you restart your mac and it should help with spotlight respecting your privacy setting.