NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jane

Pages: [1] 2 3 ... 27
1
Web Server - Ask For Help / Re: NetRefresh
« on: November 02, 2025, 12:14:04 PM »
Good job, Ron!

Every time I set up NetRefresh in an app I wind up forgetting some piece.  Once the pieces (global template, webserver template, specific browse template, websockets, etc.) are all working, it works really well as long as it knows about changes.

But when I run a process that changes stuff in an embed or a separate procedure, I need to do the setTableValue thing.

One other caveat.  Occasionally websockets doesn't work.  If I completely kill chrome.exe (not just close a tab) and reopen it, it works again.  That's rare and intermittent, but I have experienced it.

Jane

2
Web Server - Ask For Help / Re: NetRefresh
« on: October 31, 2025, 12:07:23 PM »
First thing would be to verify that you've got all the pieces of netrefresh working.

You could temporarily make a field on your browse EIP.  When you update the field, it should show on another browser.

Once that's working, read the section of the docs on triggering a refresh from the webserver (i.e., in handcode)  https://www.capesoft.com/docs/NetTalk14/NetTalkWebBasic.htm#NetRefresh

For example, for a browse using my umDischargeManagement table, after doing some processing I have

Code: [Select]
p_web.SetTableValue('umDischargeManagement',today() & '-' &clock())

3
Web Server - Ask For Help / Re: Proxy server for let's encrypt?
« on: September 07, 2025, 04:38:23 PM »
Thanks, Jeff.

I was concerned that your IT department might own the domain you're using, and thus control the DNS.
If you're able to register and own your own domain, that makes things a lot more flexible.

Glad you worked out a solution.

Jane

4
Web Server - Ask For Help / Re: NetWebClient - post data?
« on: September 03, 2025, 09:02:06 AM »
Install Fiddler?

Try getting it to work with the NetDemo program and look at the detailed log there.

Temporarily compile your app with
NetShowSend=>1
and maybe NetShowReceive=>1

5
Web Server - Ask For Help / Re: Proxy server for let's encrypt?
« on: September 02, 2025, 07:27:36 PM »
Jeff,

What DNS provider are you using with the challenge?

6
Web Server - Ask For Help / Re: 2Step process - Bearer token - OAuth?
« on: September 01, 2025, 02:24:28 PM »
The one system I've got in production doing that, Johan, I wrote 7+ years ago and did my own thing rather than whatever OAuth was available at that time.
It's been working fine since.
I guess the question would be whether each of your customers has his own credentials, or whether you are contacting the API as you.
I think a lot of the rationale for OAuth is when you're acting on behalf of somebody else.  In my app, that's not the case.

I have two generic procedures:
1. Checks the expiration of my existing token. Fetches a new token if the old one is within 5 minutes of expiry.
2. General API-calling NetTalk client.  It's called by something else.  It gets a token from the check-and-update-if-needed token procedure, then fills a StringTheory object with what's received from the API.

Then I have various procedures for individual API endpoints I need.
Each procedure constructs the URL with its parameters list.  Then passes the URL, a String Theory object, and anything else needed to the api-calling procedure.  When the latter has completed, the procedure parses the String Theory object and does its thing.

I posted more details a while back.
NOTE:  I've fixed this code since then. 
Instead of the custom header I was using in that old post, I now use ThisWebClient.Authorization

Code: [Select]
!    ThisWebClient.CustomHeader = 'Authorization: Bearer '&clip(pToken) !changed to ThisWebClient.Authorization 12/31/2024
    ThisWebClient.Authorization = 'Bearer ' & clip(pToken)

https://www.nettalkcentral.com/forum/index.php?topic=9562.msg39234#msg39234


7
Quote
Sv should opena Discord server !!!

Bruce has created one.  It's fairly active.

8
Confirming that I get the same error as David with driver kit 1.06 and NT 14.34.

Updating a record in the Movies desktop example app from the driver kit works fine, but David's NetTalk form complains of duplicate key.

I didn't chase any further.


9
Web Server - Ask For Help / Re: Let's Encrypt issues
« on: August 05, 2025, 12:05:44 PM »
That's what it looks like to me, Jeff.
 
If you click the "Notify Server Challenge is Ready" link from your log https://acme-staging-v02.api.letsencrypt.org/acme/chall/218067634/18813677063/luoqhA

It says... 
  "error": {
    "type": "urn:ietf:params:acme:error:connection",
    "detail": "131.247.221.208: Fetching http://bcdb.usfbreastresearch.org/.well-known/acme-challenge/0XtYAnuLqEvkaYcPwYxNTwSqiGltTG172l_VnoY7Ac0: Timeout during connect (likely firewall problem)",
    "status": 400

10
Web Server - Ask For Help / Re: How to debug this slow request?
« on: August 02, 2025, 05:02:21 PM »
I watched the webinar recording, Johan.

Helpful hint - Ctrl+Shift+X clears the log in debugview++

11
Web Server - Ask For Help / Re: How to debug this slow request?
« on: July 30, 2025, 07:12:20 AM »
Hi, Johan,
Not sure I'm understanding?  Do you have a browse with an EIP column and the browse itself is slow to load?

Is the browse page-loaded or file-loaded? How many items are in the EIP dropdown list?

I think that the browse with EIP populates all the EIP possibilities for the column for each row.  Which, if you have 15 rows in the browse, would mean it needs to process all of the rows for the EIP selections 15 times.  If file-loaded, then for the entire browse.  If you only have a few choices that might be reasonable, but if there's a long list there will be a lot of overhead.

When you use an update form, the EIP selections are only populated once when you open the form.


12
Web Server - Ask For Help / Re: Problem running from localhost
« on: July 18, 2025, 11:10:08 AM »
As a guess, your browser has decided to connect with TLS.
If you copy the address from the browser address bar and paste it into notepad, to you see http:// or https://  ?

Also try compiling the netdemo program and use its web client to verify that you can connect to your app with http


13
I don't know, Mike.

I suppose you could either
1. specify https://
2. set OptionDontRedirectHTTPtoHTTPS to FALSE

But you do realize that Obi Wan is nagging you - and deliberately put that error onto line 1780 in NetWww.clw  ;)

There's code in the few lines preceding that where he decides how to deal with something that doesn't have http:// or https://


14
The Themer example has code in the PageHeader xml to display the *current* theme using <!-- Net:s:_theme_ -->

But to get the default, you could try using  p_web.WebServer._SitesQueue.Defaults.DefaultTheme
   

Pages: [1] 2 3 ... 27