Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error 22 Invalid value ''

ANSWERED

I'm having an odd issue the Studio I'm getting the following errors when running my app from Fitbit Studio:

  • [HOST][10:31:34 AM]App Closed
  • [10:31:34 AM]Error 2 Invalid path 'C:/Users/~/AppData/Local/Programs/@fitbitsimulator/resources/static/runjs-ionic/./resources/screens/@.�$� �\ew
  • [10:31:34 AM]Error 22 Invalid value ''
  • [HOST][10:31:34 AM]App Started

 

What caused the errors is I moved some of the my screens to a sub folder in resources (and updated the hrefs where needed). If I move the files out of the sub folder the messages stop.

 

Even with the messages the app works without issue on both the an actual Versa and in the Simulator.

And there are no build errors.

 

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

 

It seems like you were importing the same files repeatedly in many gui files. That seems to fix the error.

 

I have created a PR with a few other fixes. https://github.com/grumpy-coders/pointy/pull/1/files

View best answer in original post

Best Answer
0 Votes
10 REPLIES 10

Probably need to see the project structure and gui file contents. Can you put it on github?

Best Answer
0 Votes

I'll get it posted to Github this weeked.

Best Answer
0 Votes

I am getting the same error...

[4:15:13 PM]Error 60 Invalid path '/Applications/Fitbit OS Simulator.app/Contents/Resources/static/runjs-ionic.app/Contents/./resources/sty
[4:15:13 PM]Error 22 Invalid value ''
[4:15:13 PM]Error 60 Invalid path '/Applications/Fitbit OS Simulator.app/Contents/Resources/static/runjs-ionic.app/Contents/./resources/cir
[4:15:13 PM]Error 22 Invalid value ''
I have tried many things to make it disappear, and so far no luck...however, the app itself seems to run just fine on the simulator...
Best Answer
0 Votes

That makes at least two of us 🙂

I have posted my app to get hub ( https://github.com/grumpy-coders/pointy ).  It was requested above. I had planned on hosting it there anyways, but hadn't gotten to it yet.

Best Answer
0 Votes

I have posted it to get hub: https://github.com/grumpy-coders/pointy

Best Answer
0 Votes

 

It seems like you were importing the same files repeatedly in many gui files. That seems to fix the error.

 

I have created a PR with a few other fixes. https://github.com/grumpy-coders/pointy/pull/1/files

Best Answer
0 Votes

That worked great.
Just make sure I'm coding this correctly.

When using the same imported widget across multiple files the "link" should go into the widgets.gui and not in each of the gui files?

Best Answer
0 Votes

Yeah, import once and it's available everywhere.

Best Answer

Well, in my case, it is different. 
I have a clock face, and I made it available on Ionic and Versa. So, here is my widgets gui file:

<svg>
<defs>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="circles.css" />
<link rel="stylesheet" href="styles~300x300.css" />
<link rel="stylesheet" href="circles~300x300.css" />
<link rel="import" href="/mnt/sysassets/widgets_common.gui" />
</defs>
</svg>

And I get this error:

2:45:36 PM]Error -1 Invalid path '/mnt/assets/./resources/styles~300x300.css'
[2:45:36 PM]Error 22 Invalid value ''
[2:45:36 PM]Error -1 Invalid path '/mnt/assets/./resources/circles~300x300.css'
[2:45:36 PM]Error 22 Invalid value ''
What am I doing wrong? This has held me up for weeks : )
Best Answer
0 Votes

Ha! Replying to myself...finally figured out that I don't need to list BOTH sets of files in my widget.gui files. Whew! Duh...

It says so in the docs, but I guess my mind was wandering...

Works fine now!

Best Answer
0 Votes