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

Cant insert address #76

Closed
mg-1999 opened this issue Sep 22, 2015 · 11 comments
Closed

Cant insert address #76

mg-1999 opened this issue Sep 22, 2015 · 11 comments
Labels

Comments

@mg-1999
Copy link
Contributor

mg-1999 commented Sep 22, 2015

When I try to add an address to an event, it says that it cant find the address. I've tried it in any format I could think off. How to fix this?

@cbellone
Copy link
Member

Hi @mg-1999,

Did you create and set the Google Maps' API Keys? (Both server and Browser)
If not, you can create an application here: https://console.developers.google.com/
then go under APIs & Auth -> Credentials and click on Add Credential -> API Key.
You must do it twice, one time for the Server API Key and the other for the Browser API Key (Client).

After doing that, do not forget to enable the following services under APIs & auth -> APIs:

  • Google Maps Geocoding API
  • Google Maps Time Zone API
  • Google Static Maps API

that's it. After adding the keys to the Alfio's configuration, you should be able to find an address and to show it on a map.

Celestino

@mg-1999
Copy link
Contributor Author

mg-1999 commented Sep 24, 2015

It works now. Only if I hit the 'save' button nothing happens, and no errors appear in config. Also every field has been filled in.

@cbellone
Copy link
Member

Which version are you using?
Il 24-set-2015 09:31 PM, "Matthijs" [email protected] ha scritto:

It works now. Only if I hit the 'save' button nothing happens, and no
errors appear in config. Also every field has been filled in.


Reply to this email directly or view it on GitHub
#76 (comment).

@mg-1999
Copy link
Contributor Author

mg-1999 commented Sep 24, 2015

Version 1.5, downloaded just a few days ago.

@cbellone
Copy link
Member

Please upgrade to 1.5.1 as 1.5 could have problems on some cloud
environments. However, this shouldn't have nothing to do with your problem.

Please could you open the browser dev toolbar (F12 on some browsers) click
again on the button and see if something strange happens?

Could you also answer the questions below?

  • Is the problem reproducible?
  • If yes, could you please explain in detail what exactly we should do to
    reproduce it?
  • Could you plese send us the alfio.log file? (please remove the
    auto-generated password first)

Thank you
Celestino
Il 24-set-2015 09:41 PM, "Matthijs" [email protected] ha scritto:

Version 1.5, downloaded just a few days ago.


Reply to this email directly or view it on GitHub
#76 (comment).

@mg-1999
Copy link
Contributor Author

mg-1999 commented Sep 24, 2015

I just fill everything in, add a category and hit save. Also the Chrome Dev Tools is giving an error in the console, I will attach it to this post.

The log:
[INFO ] 2015-09-24 15:23:18.013 [main] SpringBootLauncher - requested profiles
[INFO ] 2015-09-24 15:23:20.416 [main] SpringBootLauncher - Starting SpringBootLauncher on server.mg-dev.eu with PID 20878 (started by root in /root/alf)
[WARN ] 2015-09-24 15:23:22.827 [main] PathMatchingResourcePatternResolver - Skipping [/root/alf/alfio-1.5-boot.war] because it does not denote a directory
[INFO ] 2015-09-24 15:23:25.939 [main] DataSourceConfiguration - Detected DEFAULT cloud provider
[INFO ] 2015-09-24 15:23:35.873 [main] DataSourceConfiguration - Quartz scheduler configured to run!
[INFO ] 2015-09-24 15:23:40.022 [main] ConfigurationStatusChecker - performing migration from previous version, if any
[INFO ] 2015-09-24 15:23:40.202 [main] ConfigurationStatusChecker - done.
[INFO ] 2015-09-24 15:23:40.206 [main] ConfigurationStatusChecker - initialized alf.io version 1.5
[INFO ] 2015-09-24 15:23:40.478 [QuartzScheduler_Worker-8] FileUploadManager - removed 0 unused file_blob
[INFO ] 2015-09-24 15:23:40.564 [main] SpringBootLauncher - Started SpringBootLauncher in 22.061 seconds (JVM running for 26.467)
[INFO ] 2015-09-24 15:23:40.568 [main] SpringBootLauncher - active profiles: dev-psql, spring-boot
[WARN ] 2015-09-24 15:24:00.450 [qtp2138369213-18] PageNotFound - No mapping found for HTTP request with URI [/favicon.ico] in DispatcherServlet with name 'dispatcherServlet'

The errors in the console:
alf

@cbellone
Copy link
Member

Ok, this is why you don't see any error message in the page. Thank you.
Looks like there is something wrong with the content of the form.
Could you please open the "network" tab, clear the entries and then click
on the button?
It should appear an ajax "check" call.
Could you please export it as har and send it? (please remove all the
sensitive data, if any but leave dates as they are)
Il 24-set-2015 10:12 PM, "Matthijs" [email protected] ha scritto:

I just fill everything in, add a category and hit save. Also the Chrome
Dev Tools is giving an error in the console, I will attach it to this post.

The log:
[INFO ] 2015-09-24 15:23:18.013 [main] SpringBootLauncher - requested
profiles
[INFO ] 2015-09-24 15:23:20.416 [main] SpringBootLauncher - Starting
SpringBootLauncher on server.mg-dev.eu with PID 20878 (started by root in
/root/alf)
[WARN ] 2015-09-24 15:23:22.827 [main] PathMatchingResourcePatternResolver

  • Skipping [/root/alf/alfio-1.5-boot.war] because it does not denote a
    directory
    [INFO ] 2015-09-24 15:23:25.939 [main] DataSourceConfiguration - Detected
    DEFAULT cloud provider
    [INFO ] 2015-09-24 15:23:35.873 [main] DataSourceConfiguration - Quartz
    scheduler configured to run!
    [INFO ] 2015-09-24 15:23:40.022 [main] ConfigurationStatusChecker -
    performing migration from previous version, if any
    [INFO ] 2015-09-24 15:23:40.202 [main] ConfigurationStatusChecker - done.
    [INFO ] 2015-09-24 15:23:40.206 [main] ConfigurationStatusChecker -
    initialized alf.io version 1.5
    [INFO ] 2015-09-24 15:23:40.478 [QuartzScheduler_Worker-8]
    FileUploadManager - removed 0 unused file_blob
    [INFO ] 2015-09-24 15:23:40.564 [main] SpringBootLauncher - Started
    SpringBootLauncher in 22.061 seconds (JVM running for 26.467)
    [INFO ] 2015-09-24 15:23:40.568 [main] SpringBootLauncher - active
    profiles: dev-psql, spring-boot
    [WARN ] 2015-09-24 15:24:00.450 [qtp2138369213-18] PageNotFound - No
    mapping found for HTTP request with URI [/favicon.ico] in DispatcherServlet
    with name 'dispatcherServlet'

The errors in the console:
[image: alf]
https://cloud.githubusercontent.com/assets/6923382/10085376/29199ee4-6309-11e5-8627-1a1ca66a26a8.png


Reply to this email directly or view it on GitHub
#76 (comment).

@mg-1999
Copy link
Contributor Author

mg-1999 commented Sep 25, 2015

Got it:

{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2015-09-25T13:01:11.091Z",
"id": "page_1",
"title": "https://--------.eu/admin",
"pageTimings": {
"onContentLoad": 1698.4370000427589,
"onLoad": 1903.5539999604225
}
}
],
"entries": [
{
"startedDateTime": "2015-09-25T13:20:16.113Z",
"time": 61.96399999316782,
"request": {
"method": "POST",
"url": "https://--------.eu/admin/api/events/check",
"httpVersion": "HTTP/1.1",
"headers": [
{
"name": "Cookie",
"value": "__cfduid=de24cc9ab6e7e9c568ce3ae0ed40279331441012176; __uvt=; uvts=3Z4XyePvpvbjs4E2; JSESSIONID=8v8k8a9ndjsg1gkww400rixpe"
},
{
"name": "Origin",
"value": "https://--------.eu"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate"
},
{
"name": "X-CSRF-TOKEN",
"value": "9324d7dd-37e6-4b84-8963-d773652c4431"
},
{
"name": "Host",
"value": "https://--------.eu"
},
{
"name": "Accept-Language",
"value": "nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36"
},
{
"name": "Content-Type",
"value": "application/json;charset=UTF-8"
},
{
"name": "Accept",
"value": "application/json, text/plain, /"
},
{
"name": "Referer",
"value": "https://--------.eu/admin"
},
{
"name": "X-Requested-With",
"value": "XMLHttpRequest"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Content-Length",
"value": "1116"
},
{
"name": "DNT",
"value": "1"
}
],
"queryString": [],
"cookies": [
{
"name": "JSESSIONID",
"value": "8v8k8a9ndjsg1gkww400rixpe",
"expires": null,
"httpOnly": false,
"secure": false
},
{
"name": "__cfduid",
"value": "de24cc9ab6e7e9c568ce3ae0ed40279331441012176",
"expires": null,
"httpOnly": false,
"secure": false
},
{
"name": "__uvt",
"value": "",
"expires": null,
"httpOnly": false,
"secure": false
},
{
"name": "uvts",
"value": "3Z4XyePvpvbjs4E2",
"expires": null,
"httpOnly": false,
"secure": false
}
],
"headersSize": 709,
"bodySize": 1116,
"postData": {
"mimeType": "application/json;charset=UTF-8",
"text": "{"freeOfCharge":true,"begin":{"date":"2015-09-25","time":"15:00"},"end":{"date":"2015-09-25","time":"15:00"},"locales":2,"ticketCategories":[{"inception":{"date":"2015-09-25","time":"15:00"},"tokenGenerationRequested":false,"expiration":{"date":"2015-09-25","time":"15:00"},"sticky":true,"bounded":true,"dateString":"2015-09-25 15:00 / 2015-09-25 15:00","name":"Naam","maxTickets":99,"description":{"en":"NAAM"}}],"dateString":"2015-09-25 15:00 / 2015-09-25 15:00","displayName":"NAAM","shortName":"naam","organizationId":1,"location":"Grote Beemd 3, Boxtel","geolocation":{"timeZone":"Europe/Amsterdam","latitude":"51.5852824","longitude":"5.329255799999999","mapUrl":"https://maps.googleapis.com/maps/api/staticmap?center=51.5852824,5.329255799999999&key=AIzaSyACYmPIdsfGFSOYE14HLS6_3icU8rj9NUU&zoom=16&size=400x400&markers=color:blue%7Clabel:E%7C51.5852824,5.329255799999999"},"description":{"en":"OMG DIT IS ENGELS DIT KUNNEN WIJ NIET AAN"},"websiteUrl":"https://theaterklas-jrl.nl/","termsAndConditionsUrl":"https://theaterklas-jrl.nl/","imageUrl":"https://theaterklas-jrl.nl/img/logo.svg","availableSeats":100}"
}
},
"response": {
"status": 200,
"statusText": "OK",
"httpVersion": "HTTP/1.1",
"headers": [
{
"name": "Date",
"value": "Fri, 25 Sep 2015 13:19:50 GMT"
},
{
"name": "Server",
"value": "nginx/1.1.19"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Transfer-Encoding",
"value": "chunked"
},
{
"name": "Content-Type",
"value": "application/json;charset=UTF-8"
}
],
"cookies": [],
"content": {
"size": 123,
"mimeType": "application/json",
"compression": -11
},
"redirectURL": "",
"headersSize": 176,
"bodySize": 134,
"_transferSize": 310
},
"cache": {},
"timings": {
"blocked": 6.08700001612306,
"dns": -1,
"connect": -1,
"send": 0.8359999628737498,
"wait": 54.34400006197389,
"receive": 0.6969999521971175,
"ssl": -1
},
"connection": "17280",
"pageref": "page_1"
}
]
}
}

@mg-1999
Copy link
Contributor Author

mg-1999 commented Sep 29, 2015

Any progress?

@syjer
Copy link
Member

syjer commented Sep 29, 2015

Hi, @mg-1999

from the trace it seems the issue is caused by the dates (start/end) : they have all the same values: "2015-09-25 15:00 / 2015-09-25 15:00". This is not handled by alf.io, as he need an interval of time greater than 0 :)

An error message should appear but for some reason that we need to investigate it's not visibile.

@mg-1999
Copy link
Contributor Author

mg-1999 commented Oct 5, 2015

It is indeed fixed now, forgot to hit the apply button. Thanks for all the help you provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants