Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation error on shoutem push #166

Open
AprilPolubiec opened this issue Jan 24, 2024 · 0 comments
Open

Validation error on shoutem push #166

AprilPolubiec opened this issue Jan 24, 2024 · 0 comments

Comments

@AprilPolubiec
Copy link

AprilPolubiec commented Jan 24, 2024

I'm following the Getting Started tutorial and am unable to run the shoutem push command.

(base) aprilpolubiec@dhcp-892bcdbb girls-trip-shoutem % cd extensions/april-polubiec.restaurants 
(base) aprilpolubiec@dhcp-892bcdbb april-polubiec.restaurants % shoutem screen add                      
(node:88269) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
? Screen name: List
? Create a shortcut (so that screen can be added through the Builder)? Yes
? Shortcut name: Restaurants
? Shortcut title: Restaurants
? Shortcut description: A shortcut for List
app/screens/List.js created
app/extension.js modified:
  [+]  
  [+]  // screens imports
  [+]  import List from './screens/List';
  [+]  
  [+]  export const screens = {
  [+]    List
  [+]  };
  [+]  
extension.json modified:
  [-]    "platform": "1.0.*"
  [-]  
  [+]    "platform": "1.0.*",
  [+]    "screens": [
  [+]      {
  [+]        "name": "List"
  [+]      }
  [+]    ],
  [+]    "shortcuts": [
  [+]      {
  [+]        "name": "Restaurants",
  [+]        "title": "Restaurants",
  [+]        "description": "A shortcut for List",
  [+]        "screen": "@.List"
  [+]      }
  [+]    ]
  [+]  
Success
(base) aprilpolubiec@dhcp-892bcdbb april-polubiec.restaurants % shoutem push
(node:88296) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
DEPRECATED:
'shoutem push' is deprecated and will be removed with the next major version of the Shoutem CLI. Shoutem now supports release candidate versioning, which allows developers to 'shoutem publish', for example, 1.0.0-rc.0 versioned extensions which are labeled as "Beta" versions in the Shoutem Builder. App owners who update to RC versions also have the option to revert to the last "stable" (non-rc) version.
Uploading Restaurants:
Checking for required files...[OK]
Checking the extension code for syntax errors...[OK]
Building the server part... [OK]
Building the app part... [OK]
Packing extension... [OK]
Validation error

Use shoutem last-error for more information.
(base) aprilpolubiec@dhcp-892bcdbb april-polubiec.restaurants % shoutem last-error
(node:88352) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
message:    null
request: 
body: 
  errors: 
    - 
      status: 400
      title:  validation error
      code:   validation_default
response: 
statusCode: 400

If you think this error is caused by bug in the shoutem command, you can report the issue here: https://github.com/shoutem/cli/issues

and its the same error if I use shoutem publish:

(base) aprilpolubiec@dhcp-892bcdbb april-polubiec.restaurants % shoutem publish
(node:88528) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Uploading Restaurants:
Checking for required files...[OK]
Checking the extension code for syntax errors...[OK]
Building the server part... [OK]
Building the app part... [OK]
Packing extension... [OK]
Validation error

Use shoutem last-error for more information.
(base) aprilpolubiec@dhcp-892bcdbb april-polubiec.restaurants % shoutem last-error
(node:88566) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
message:    null
request: 
body: 
  errors: 
    - 
      status: 400
      title:  validation error
      code:   validation_default
response: 
statusCode: 400

If you think this error is caused by bug in the shoutem command, you can report the issue here: https://github.com/shoutem/cli/issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant