Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 17:32
    kushthedude commented #6447
  • 16:59
    kushthedude review_requested #6447
  • 16:58
    kushthedude synchronize #6447
  • 16:57
    kushthedude synchronize #6447
  • 04:26
    mrsaicharan1 commented #6432
  • 03:09
    kushthedude commented #6447
  • 03:08
    kushthedude synchronize #6447
  • 03:07
    kushthedude opened #6447
  • 01:29
    kushthedude commented #6432
  • 00:53
    kushthedude closed #6390
  • Sep 14 18:22
    iamareebjamal commented #5813
  • Sep 14 16:44
    asha15 commented #5813
  • Sep 14 07:25

    aviaryan on gh-pages

    [Auto] Updated API Docs (compare)

  • Sep 14 06:59
    dependabot-preview[bot] edited #6446
  • Sep 14 06:58

    iamareebjamal on pip

    (compare)

  • Sep 14 06:58

    iamareebjamal on development

    chore(deps): update stripe requ… (compare)

  • Sep 14 06:58
    iamareebjamal closed #6446
  • Sep 14 06:58
    dependabot-preview[bot] edited #6446
  • Sep 14 06:58

    iamareebjamal on pip

    (compare)

  • Sep 14 06:58

    iamareebjamal on development

    chore(deps): update sendgrid re… (compare)

Muhammad Arslan
@arslan_mecom_twitter
Ok thanks!
Ashwani Gupta
@ashwani99

I have one doubt here https://github.com/fossasia/open-event-server/blob/development/docker-compose.yml#L46

Why is the host port is 8080 here? When the container runs on production, shouldn't it be on port 80 for HTTP?

Areeb Jamal
@iamareebjamal
No, you should use nginx for reverse proxying
There are various reasons why should never run application processes on port 80 or 443, or any port in kernel space
Muhammad Arslan
@arslan_mecom_twitter
I have configured the paypal but when i click on the button i get "INVALID_RESOURCE_ID"
Ashwani Gupta
@ashwani99

@iamareebjamal @CosmicCoder96 I was working on fossasia/open-event-server#6392 and was having issues setting up the project. I see it got fixed here fossasia/open-event-server#6425

I understood that static_domain should be setup to avoid getting the localhost URLs. But, if this is not setup, shouldn't we parse that automatically? Here https://github.com/fossasia/open-event-server/blob/development/app/api/helpers/storage.py#L183 request.url is passed into create_url. I think there should be the actual request url from which the request originated. Shouldn't we pass the actual request URL in upload()? I am not sure what is the use of create_url method if we need to setup static_domain always?

If I do not have static_domain setup in the settings, I still get URLs in localhost
Areeb Jamal
@iamareebjamal
request.url will be localhost as it is behind reverse proxy. It needs to be setup using static_domain only
nitin
@jnitin
Hi i have one query regarding handling of special characters in DATABASE_URL . Currently i get error if i provided password with #
self.port = int(port)
ValueError: invalid literal for int() with base 10: 'root' .
please let me know if any suggestions
here i provided password as root# . if i removed # then it works fine.
as per my understanding percentage encoding is required , but even after that it did not worked and different errors came.
Areeb Jamal
@iamareebjamal
Tell the different errors, because they are the actual ones
Suneet Srivastava
@codedsun
hello, while I was setting up the open-event-server
I got this error
ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9t/46gpzxm54jlg7ynj3stnffgm0000gn/T/pip-install-a7usw_6h/librabbitmq/setup.py'"'"'; __file__='"'"'/private/var/folders/9t/46gpzxm54jlg7ynj3stnffgm0000gn/T/pip-install-a7usw_6h/librabbitmq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /private/var/folders/9t/46gpzxm54jlg7ynj3stnffgm0000gn/T/pip-install-a7usw_6h/librabbitmq/
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/9t/46gpzxm54jlg7ynj3stnffgm0000gn/T/pip-install-a7usw_6h/librabbitmq/setup.py", line 199
        except Exception, exc:
                        ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I ran pip3 install -r requirements.txt
and I m following the generic installation of the server
Areeb Jamal
@iamareebjamal
Use virtual environment. This error is dur to a Python 2 library in your environment
Suneet Srivastava
@codedsun
@iamareebjamal created a virtual envt and then to install the dependencies using the pip, getting the same error
Areeb Jamal
@iamareebjamal
Did you source into the virtualenv? Which command did you use to create virtualenv
Suneet Srivastava
@codedsun
virtualenv -p python3 venv
. venv/bin/activate
pip3 install -r requirements.txt
nitin
@jnitin

@iamareebjamal

Tell the different errors, because they are the actual ones

Flask application name app
C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_limiter\extension.py:113: UserWarning: Use of the default get_ipaddr function is discouraged. Please refer to https://flask-limiter.readthedocs.org/#rate-limit-domain for the recommended configuration
" for the recommended configuration", UserWarning
Bootstrap Flask application name app
Traceback (most recent call last):
File "D:/projects/projectdirectorystructure/Python/backend/drop_db.py", line 55, in <module>
db_drop_everything(db)
File "D:/projects/sds/adas/projectdirectorystructure/Python/backend/drop_db.py", line 16, in db_drop_everything
conn = db.engine.connect()
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_sqlalchemy__init.py", line 937, in engine
return self.get_engine()
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_sqlalchemy\
init.py", line 956, in get_engine
return connector.get_engine()
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_sqlalchemy\
init.py", line 559, in get_engine
sa_url = make_url(uri)
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\sqlalchemy\engine\url.py", line 229, in make_url
return _parse_rfc1738_args(name_or_url)
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\sqlalchemy\engine\url.py", line 288, in _parse_rfc1738_args
return URL(name, **components)
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\sqlalchemy\engine\url.py", line 71, in
init__
self.port = int(port)
ValueError: invalid literal for int() with base 10: 'root'

Areeb Jamal
@iamareebjamal
You have probably not encoded the password correctly. Still, I'll try to see what's wrong
@codedsun That should work. Travis is building it correctly each day. So there is no problem with the requirements. See which dependency is causing the problem
nitin
@jnitin

You have probably not encoded the password correctly. Still, I'll try to see what's wrong

Thanks for response. How i have to encode URL . I just execute drop_db.py with password having # in it . without # everything works fine. For percentage encoding i tried to use urllib.parse.quote but below errors came then

Flask application name app
C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_limiter\extension.py:113: UserWarning: Use of the default get_ipaddr function is discouraged. Please refer to https://flask-limiter.readthedocs.org/#rate-limit-domain for the recommended configuration
" for the recommended configuration", UserWarning
postgresql%3A//a%3Aroot%23%40127.0.0.1%3A5432/ab
Bootstrap Flask application name app
Traceback (most recent call last):
File "D:/projects/projectdirectorystructure/Python/backend/drop_db.py", line 55, in <module>
db_drop_everything(db)
File "D:/projects/projectdirectorystructure/Python/backend/drop_db.py", line 16, in db_drop_everything
conn = db.engine.connect()
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_sqlalchemy__init.py", line 937, in engine
return self.get_engine()
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_sqlalchemy\
init.py", line 956, in get_engine
return connector.get_engine()
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_sqlalchemy\
init__.py", line 559, in get_engine
sa_url = make_url(uri)
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\sqlalchemy\engine\url.py", line 229, in make_url
return _parse_rfc1738_args(name_or_url)
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\sqlalchemy\engine\url.py", line 291, in _parse_rfc1738_args
"Could not parse rfc1738 URL from string '%s'" % name
sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string 'postgresql%3A//a%3Aroot%23%40127.0.0.1%3A5432/ab'

Process finished with exit code 1

postgresql%3A//a%3Aroot%23%40127.0.0.1%3A5432/ab - This is the encoded URL
so we can see # is encoded as %23
Areeb Jamal
@iamareebjamal
That's a malformed URL. You just have to encode the password, or else how is the library going to parse the URL? postgresql://username:password@host:post/database. This is the format URL should be in. If there is any :/#? in password/username/host/post/database, it is going to throw off the parser. How will it correctly parse the URL. If you also encode the entire URL, still the parser won't be able to extract information from it
Mario Behling
@mariobehling
Dear @/all, please check out our job post about an emberJS/Python/Flask dev to work on eventyay/Open Event full time: https://twitter.com/fossasia/status/1171052091323944961
Suneet Srivastava
@codedsun
I successfully got this project setup, is their any dump of database available to import in my local machine. How do i get the tables and dummy data?
Prateek Jain
@prateekj117
The initials dump required to get the project running are itself applied if you would have followed the local installation README completely. You can enter more data using POSTMAN or setting up open-event-frontend.
Suneet Srivastava
@codedsun
It only says to create a user and db, no such dump of data available @prateekj117
how do i see the initial schema of database ? @prateekj117
Prateek Jain
@prateekj117
@codedsun There are some tables like settings, event_topics, etc. which get filled with some default values when you run python3 create_db.py.
For seeing that, you can maybe connect your db with the IDE you are using, and it will provide you with a UI to view your database. In my case, I use Pycharm, and it provides an awesome UI for it.
Suneet Srivastava
@codedsun
cool, got it. Thanks @prateekj117
Prateek Jain
@prateekj117
@codedsun No problem buddy. Happy contributing !!!
Tushar Gaurabh Jha
@ranjsa
Can anyone please tell me how to get user details from open event server
I was using postman to get user detalis but I got this error "error": "Invalid crypto padding"
Here is the Screenshot
https://drive.google.com/file/d/19mrk5zogfaLUh8LUStJ6GiiZiAQDxId0/view?usp=sharing
Prateek Jain
@prateekj117
@ranjsa You don't need to use {} in url params and <> in JWT param.
Saicharan Reddy
@mrsaicharan1

It only says to create a user and db, no such dump of data available @prateekj117

Use Flask-Admin

Tushar Gaurabh Jha
@ranjsa
@prateekj117
@prateekj117 Thanks for help.... It's working now
Prateek Jain
@prateekj117
@ranjsa Awesome.
Muhammad Arslan
@arslan_mecom_twitter
cannot be able to link stripe account, got 404, is this a known issue?
Ayush Mahajan
@ay2306
Hey Guys,
I am Ayush a pre final year student from India.
I am willing to contribute to open-event-server
Is Issue #6396 still being worked by someone. If not can I start working on it?
Thank you.
Prateek Jain
@prateekj117
@ay2306 You can go ahead with this issue.
Tushar Gaurabh Jha
@ranjsa

@prateekj117 Can you please help when I have favourited only 12 events using android app ,
https://drive.google.com/file/d/1064GyNKVSgljvIWp-G-OvZarW4pAdlhI/view?usp=sharing

then why I am getting 20 favourited events using GET request using postman

https://drive.google.com/file/d/1bcmMJt-U5Xyn0HV2s5DEntjtirqRBlSF/view?usp=sharing
https://drive.google.com/file/d/12f2AzLi1-khFOAP_pXJ0RmftjzGh_Tx-/view?usp=sharing

Prateek Jain
@prateekj117
@ranjsa For starters, always use https://open-event-api-dev.herokuapp.com as it's in sync with the development branch, or on localhost (if you want to contribute to open-event-server). Try with this and see if the problem persists, if it does, report an issue and we can discuss further over this.