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

Duration (date format) issue #67

Closed
lucasredway opened this issue Jan 23, 2022 · 23 comments
Closed

Duration (date format) issue #67

lucasredway opened this issue Jan 23, 2022 · 23 comments

Comments

@lucasredway
Copy link

Uploading Képernyőkép 2022-01-23 122437.jpg…

@maximedrn
Copy link
Owner

I do not see the picture

@lucasredway
Copy link
Author

I do not see the picture

Képernyőkép 2022-01-23 122437

@maximedrn
Copy link
Owner

Please do not open 2 issues for the same thing.
#66 (comment)

@lucasredway
Copy link
Author

Please do not open 2 issues for the same thing. #66 (comment)

sorry. Here is my json file: https://www.mediafire.com/file/q5d0tuq52gf3044/_metadata.json/file

@maximedrn
Copy link
Owner

Your JSON file is correct. Did you select "upload only"?
You are using Python 3.10 and you get a Selenium exception that I don't know about. If it really doesn't work, try uninstalling Python and installing the 3.9.9 version I'm currently using. Python 3.10 is very bad when trying to ensure compatibility, especially with a module like Selenium that can be very quickly unstable.

@maximedrn maximedrn reopened this Jan 23, 2022
@lucasredway
Copy link
Author

Your JSON file is correct. Did you select "upload only"? You are using Python 3.10 and you get a Selenium exception that I don't know about. If it really doesn't work, try uninstalling Python and installing the 3.9.9 version I'm currently using. Python 3.10 is very bad when trying to ensure compatibility, especially with a module like Selenium that can be very quickly unstable.

Updatet, but same error. Please show video: https://www.youtube.com/watch?v=MYwT_5V2mNo

@maximedrn
Copy link
Owner

Is your path correct ?
"file_path": "C:/generate-nfts-main/biuld/images/1.png",
should be "file_path": "C:/generate-nfts-main/build/images/1.png",?

@maximedrn
Copy link
Owner

By the way I upload a version that show errors. So please show me the error with this new version.

@lucasredway
Copy link
Author

Is your path correct ? "file_path": "C:/generate-nfts-main/biuld/images/1.png", should be "file_path": "C:/generate-nfts-main/build/images/1.png",?

Yes correct!!

@lucasredway
Copy link
Author

By the way I upload a version that show errors. So please show me the error with this new version.

downloaded but getting this error: An error occured. Message: File doesn't exist or path is incorrect. but my path is good. please view in video: https://www.youtube.com/watch?v=ul_7-KsH0X4

@maximedrn
Copy link
Owner

"biuld" is correct in your path?

@lucasredway
Copy link
Author

"biuld" is correct in your path?

omg thanks :DDD

@maximedrn
Copy link
Owner

Bot never lies ahah 👍

@lucasredway
Copy link
Author

Bot never lies ahah 👍

New problem. After upload inserted 1 ethereum price. But my metadata.json file price is 0.0005. Why not inserted this value?

@maximedrn
Copy link
Owner

This is correct:

      "file_path": "C:/generate-nfts-main/biuld/images/1.png",
      "nft_name": "Crypto Mario #1",
      "external_link": "https://www.google.com/",
      "description": "Crypto Mario Collection",
      "collection": "Crypto Mario",
      "properties": [
        {
          "type": "Background",
          "name": "3"
        },
        {
          "type": "Body",
          "name": "White"
        },
        {
          "type": "Button",
          "name": "Purple"
        },
        {
          "type": "Eye",
          "name": "Black"
        },
        {
          "type": "Hair",
          "name": "Brown"
        },
        {
          "type": "Hat",
          "name": "Blue"
        },
        {
          "type": "Mustache",
          "name": "Green"
        },
        {
          "type": "Pants",
          "name": "Purple"
        },
        {
          "type": "Shoes",
          "name": "Black"
        },
        {
          "type": "T-Shirt",
          "name": "Green"
        }
      ],
      "levels": [],
      "stats": [],
      "unlockable_content": [],
      "explicit_and_sensitive_content": false,
      "supply": 1,
      "blockchain": "Polygon",

But this is not:

    "price": 0.005,
    "quantity": 1,
    "dna": "362212b635d21a556446821a254529648dce5eb0",
    "edition": 1,
    "date": 1642772373143,
    "compiler": "HashLips Art Engine"

In my code, price is the 14th element. In yours the 14th is the quantity which is equal to 1.
Please follow this format for the sale part:

    "sale_type": "",
    "price": 0.0005,
    "method": "",
    "duration": [
        "25-01-2022 14:20", "18-02-2022 17:40"
    ],
    "specific_buyer": "",
    "quantity": 1

@lucasredway
Copy link
Author

This is correct:

      "file_path": "C:/generate-nfts-main/biuld/images/1.png",
      "nft_name": "Crypto Mario #1",
      "external_link": "https://www.google.com/",
      "description": "Crypto Mario Collection",
      "collection": "Crypto Mario",
      "properties": [
        {
          "type": "Background",
          "name": "3"
        },
        {
          "type": "Body",
          "name": "White"
        },
        {
          "type": "Button",
          "name": "Purple"
        },
        {
          "type": "Eye",
          "name": "Black"
        },
        {
          "type": "Hair",
          "name": "Brown"
        },
        {
          "type": "Hat",
          "name": "Blue"
        },
        {
          "type": "Mustache",
          "name": "Green"
        },
        {
          "type": "Pants",
          "name": "Purple"
        },
        {
          "type": "Shoes",
          "name": "Black"
        },
        {
          "type": "T-Shirt",
          "name": "Green"
        }
      ],
      "levels": [],
      "stats": [],
      "unlockable_content": [],
      "explicit_and_sensitive_content": false,
      "supply": 1,
      "blockchain": "Polygon",

But this is not:

    "price": 0.005,
    "quantity": 1,
    "dna": "362212b635d21a556446821a254529648dce5eb0",
    "edition": 1,
    "date": 1642772373143,
    "compiler": "HashLips Art Engine"

In my code, price is the 14th element. In yours the 14th is the quantity which is equal to 1. Please follow this format for the sale part:

    "sale_type": "",
    "price": 0.0005,
    "method": "",
    "duration": [
        "25-01-2022 14:20", "18-02-2022 17:40"
    ],
    "specific_buyer": "",
    "quantity": 1

Price is good, but the date is not working. please view my video: https://www.youtube.com/watch?v=QLD2cyk8X7s

@maximedrn
Copy link
Owner

I see that the date format is different in your country. I uploaded a version where the default language of ChromeDriver is English. Now the date is set correctly. I'm sorry for that, I live in Europe and have the European date format, not the American one. :/

@maximedrn
Copy link
Owner

You should have a duration pop up like this with this format of date and time.
24h format is automatically changed to 12h by OpenSea.

Sans titre 1

@maximedrn maximedrn pinned this issue Jan 23, 2022
@lucasredway
Copy link
Author

You should have a duration pop up like this with this format of date and time. 24h format is automatically changed to 12h by OpenSea.

Sans titre 1

thank you working

@maximedrn maximedrn unpinned this issue Jan 25, 2022
@stackzwolle
Copy link

hi
im getting crazy here. everything works 1 week works, 1 month works but when i input date in doesnt work.
opensea date format is dd/mm/yy

and this my .json file date format

duration: [
  "06-02-2022 02:40", "05-08-2022 02:40"

],

@maximedrn
Copy link
Owner

Send me a video, I need to know when the bot crashes.

@maximedrn maximedrn reopened this Feb 6, 2022
@maximedrn maximedrn changed the title Error NFT upload Duration (date format) issue Feb 6, 2022
@maximedrn
Copy link
Owner

maximedrn commented Feb 6, 2022

hi im getting crazy here. everything works 1 week works, 1 month works but when i input date in doesnt work. opensea date format is dd/mm/yy

and this my .json file date format

duration: [
  "06-02-2022 02:40", "05-08-2022 02:40"
],

I tried with Polygon and Ethereum (Fixed Price & Timed Auction), 1 and 1+ supplies. It works great :/
Try using:

"duration": ["06-02-2022 02:40", "05-08-2022 02:40"],

(Change the date).

Edit: also send me an excerpt from your JSON file. You may have forgotten an element and therefore the duration does not match what you have.

@maximedrn maximedrn pinned this issue Feb 6, 2022
@stackzwolle
Copy link

Omg slept at 5am.
well thanks for reply. I nearly read all the issues :)
Been changing time a lot of times so tired I stop then woke up do it again and things just fine maybe cos opensea have some maintenance going on. And I found out you can set start date within a week only.

Thanks for the code
Great job cheers.

@maximedrn maximedrn unpinned this issue Feb 6, 2022
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

3 participants