Yes, I replaced the CORE_ID with actual core id. Still the same result. It comes up to this point when trying to configure through spark-cli if it helps.
Serial said: Awesome. Now we'll connect!
If you see a pulsing cyan light, your Spark Core
has connected to the Cloud and is ready to go!
If your LED flashes red or you encounter any other problems,
visit https://www.spark.io/support to debug.
Spark <3 you!
Done! Your core should now restart.
Please wait until your core is breathing cyan and then press ENTER
Could you take a video of your Photon so we can see the sequence?
Have you tried clearing wifi credentials? Start the device and then press Setup, hold for 3 seconds until it blinks blue. Then hold Setup for 10 seconds until the LED flashes blue fast.