.ultrageek. Computers, Music, and Thoughts

18Mar/200

VS Code will not launch Chrome to Authenticate new Project

If you cancelled out or for whatever reason cannot get VS Code to launch a new browser window to authenticate your org do the following from command line:

lsof -i tcp:1717

kill -9 <the process ID>

Instructions are here: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_troubleshoot_cancel_auth.htm

Sounds easy to remember...but then a couple months pass and here I sit wondering why I cannot find this page on the googles.

 

5Mar/200

Silly Dev Trick: Apex Flex Queue with Web Callouts

More of a watch out for this but when using Apex Flex Queue with classes that do web callouts you have to add 'Database.AllowsCallouts' to your queueable class like so:

public class ExampleQueueableClass implements Queueable, Database.AllowsCallouts{

This got me but after the usual hunt and peck the googles answered the call: https://salesforce.stackexchange.com/a/216346/17245

This is the error the console throws that is confusing:

Callout not allowed from this future method. Please enable callout by annotating the future method. eg: @Future(callout=true)