# Cannot access particle variables all of a sudden

**URL:** <https://community.particle.io/t/cannot-access-particle-variables-all-of-a-sudden/52550>\
**Category:** Troubleshooting\
**Created:** [October 6, 2019, 10:26pm UTC](https://community.particle.io/t/cannot-access-particle-variables-all-of-a-sudden/52550 "2019-10-06T22:26:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JL\_678](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jl_678/32/4391_2.png) [@JL\_678](https://community.particle.io/u/JL_678)\
**Post date:** [October 6, 2019, 10:26pm UTC](https://community.particle.io/t/cannot-access-particle-variables-all-of-a-sudden/52550/1 "2019-10-06T22:26:19Z")

</div>

I have run 3 Photons for years and have written Python code to access data and all of a sudden all of them stopped working. The only change that I made is enable two factor authentication. Does that impact access to Spark variables?

Now all requests seem to time out. I disabled two factor and the errors continue. To simplify things, I went back to curl to see if it works, it does not. Here is an example of what I am inputting and the response. I verified the devid and access token. (AccessToken from [build.particle.io](http://build.particle.io) and devID from [console.particle.com](http://console.particle.com).)

```auto
curl https://api.particle.io/v1/devices/:DevID:\temp \
     -d access_token=7:AToken:

```

The result is:

`{"ok":false,"error":"Not Found"}`

What am I doing wrong? I have a feeling that changing to two factor may have caused this.

Thank you!

---

<div class="post-metadata">

**Author:** ![JL\_678](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jl_678/32/4391_2.png) [@JL\_678](https://community.particle.io/u/JL_678)\
**Post date:** [October 6, 2019, 10:51pm UTC](https://community.particle.io/t/cannot-access-particle-variables-all-of-a-sudden/52550/2 "2019-10-06T22:51:51Z")

</div>

Update: I really think that I have encountered a bug of some sort. I run this curl query on all Photons and in ever case under “Variable”, it shows “null”.

`curl "https://api.spark.io/v1/devices/:DevID:?access_token=:Atoken:"`

However, if i go to [console.particle.io](http://console.particle.io), I see three variables defined for every Photon. Why am I seeing variables in the console and not in the API?

Thank you

---

<div class="post-metadata">

**Author:** ![Hatchcross](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@Hatchcross](https://community.particle.io/u/Hatchcross)\
**Post date:** [October 7, 2019, 1:11am UTC](https://community.particle.io/t/cannot-access-particle-variables-all-of-a-sudden/52550/3 "2019-10-07T01:11:42Z")

</div>

Seems to be a thing. Been having issues all night…come check the forums and people are reporting issues.

Odd

Regards,

Jason

---

<div class="post-metadata">

**Author:** ![Rftop](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rftop/32/16896_2.png) [@Rftop](https://community.particle.io/u/Rftop)\
**Post date:** [October 7, 2019, 1:39am UTC](https://community.particle.io/t/cannot-access-particle-variables-all-of-a-sudden/52550/4 "2019-10-07T01:39:13Z")

</div>

> [@JL\_678](#):
>
> I run this curl query on all Photons and in ever case under “Variable”, it shows “null”.
> 
> `curl "https://api.spark.io/v1/devices/:DevID:?access_token=:Atoken:"`

[api.spark.io](http://api.spark.io) was depreciated. Could that be part of the problem?

> [@End of life for api.spark.io](https://community.particle.io/t/end-of-life-for-api-spark-io/50942):
>
> As of today, the Particle API can only be accessed through the api.particle.io domain. Access through the legacy domain api.spark.io has been disabled. I notified Particle users with web applications that made requests to the api.spark.io domain of this planned end of life by email one month ago. If you have a web application that stopped working because of the domain change, you must update it to make Particle API requests to the api.particle.io domain. No other change should be necessary in …

---

<div class="post-metadata">

**Author:** ![JL\_678](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jl_678/32/4391_2.png) [@JL\_678](https://community.particle.io/u/JL_678)\
**Post date:** [October 7, 2019, 2:10am UTC](https://community.particle.io/t/cannot-access-particle-variables-all-of-a-sudden/52550/5 "2019-10-07T02:10:04Z")

</div>

That was it! I did not update all my python apps to the new url, and I was using curl to go to the old end end point. Thank you!
